1

How can I change the four margins differently using the geometry package ?

Currently I have got

{\geometry{
   paperwidth=21cm, paperheight=21cm
   textwidth=20cm,  textheight=20cm}}
5
  • 1
    Remove the outer braces around your \geometry setting. If this doesn't solve your problem, please provide more detail.
    – Werner
    Sep 21, 2023 at 20:59
  • By "change the four margins differently", do you mean wanting to set asymmetric margins? Please advise.
    – Mico
    Sep 21, 2023 at 21:10
  • Also, note that there are two different meanings for the word margins. One meaning: Header and footer sit within the top and bottom margin areas, and text in the side margins is also possible.. Other meaning: Nothing sits within the margin areas, because nothing may be printed there. The geometry package documentation has a diagram.
    – rallg
    Sep 21, 2023 at 21:35
  • Have you looked at the documentation?
    – cfr
    Sep 22, 2023 at 0:20
  • Have looked at it but found it overwhelming, so many settings and variable names.
    – Veak
    Sep 22, 2023 at 10:24

1 Answer 1

1

The instruction

\geometry{ paperwidth=21cm, paperheight=21cm,
           textwidth=20cm,  textheight=20cm}

can also be expressed as

\geometry{ paperwidth=21cm, paperheight=21cm, margin=5mm }

To set asymmetric vertical and/or horizontal margins, you could run, say,

\geometry{ paperwidth=21cm, paperheight=21cm, 
           left=3mm, right=7mm, top=4mm, bottom=6mm }
3
  • 2
    Note that the effect of top and bottom change with noheadfoot. Sep 21, 2023 at 22:58
  • @JohnKormylo - Thanks. I'm still hoping the OP will clarify what, precisely, is meant by "change the four margins differently".
    – Mico
    Sep 21, 2023 at 23:02
  • Correct, applying asymmetric margins.
    – Veak
    Sep 22, 2023 at 10:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .