Using this source:

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.

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

  • 2
    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

Including geometry fixed it:


Or by setting pdfpage sizes:

\pdfpagewidth 8.5in
\pdfpageheight 11in
| improve this answer | |
  • 1
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.