# Text is off center with \begin{center}

Using this source:

\documentclass{article}
\begin{document}
\begin{center}
Lorem ipsum dolor sit amet, vim omnes munere at, no affert appetere
cotidieque ius. Quo nulla elaboraret cu. Nec petentium maiestatis
accommodare at, velit perfecto accommodare cu eos. Quo natum explicari te,
duo ei facilis maiorum. Nonumes dolorem pro ad, quo te quod maiorum.
\end{center}
\end{document}


The left margin is about 30 pixels more than the right margin. How can I make it truly centered, or at least closer?

• I'm guessing you are in Europe so using A4 paper? In that case, \documentclass[a4paper]{article}: the standard layout settings are for letter paper, but the stock size depends on your installation choices. – Joseph Wright Mar 13 '16 at 15:38
• For test add to your MWE \usepackage{showframe} and than look, if your text is in center between shown text borders – Zarko Mar 13 '16 at 15:40
• @StevenPenny In that case, add letterpaper as an option and load graphicx: again, this will make sure any installation settings aren't interfering. – Joseph Wright Mar 13 '16 at 15:50
• @StevenPenny \documentclass[letterpaper]{article}\usepackage{graphicx} – Joseph Wright Mar 13 '16 at 15:51

\usepackage{geometry}

\pdfpagewidth 8.5in

• If you use TeX Live, you can configure your installation via tlmgr` to recognize whether letterpaper or A4 should be the default. – jon Mar 20 '16 at 4:55