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.

nov1943
  • 111

1 Answers1

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.

nov1943
  • 111