4

I've noticed that my left margin is slightly larger than my right margin while making a document. Here's an MWE of what I'm describing:

\documentclass[11pt]{article}

\usepackage[
  showframe,
  marginparwidth=0cm,
  marginparsep=0cm,
  margin=0.75in]{geometry}

  \begin{document}
  \begin{center}
    \Huge lallalalalalal\\
  \end{center}
\end{document}

And here's an image of the rendered PDF output:

Is there any way to make the left and right margins perfectly equal? I'm using LuaLaTeX.

4
  • I don't see the difference with your MWE, compiled with pdflatex from texlive2016. Feb 20 '17 at 18:14
  • 2
    Your margin length settings can be combined into a single margin=0.75in.
    – Werner
    Feb 20 '17 at 18:18
  • Remember to pass also the paper format, probably you want paper=letter.
    – egreg
    Feb 20 '17 at 18:22
  • @samcarter I used lualatex to compile this document which has this problem. You're right, pdflatex displays the document properly.
    – nov1943
    Feb 20 '17 at 18:43
7

This issue affects the geometry package when used with the LuaLaTeX engine. Based on browsing the mailing lists, the geometry package has not been updated to work with the latest versions of LuaTeX.

The fix is to add a \RequirePackage{luatex85} to the preamble of the document, which fixes the margins and gives the expected output.

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.