With geometry it’s possible to adjust the page layout. The most basic setup sets the margins to 2.5cm:
{geometry: margin=2.5cm}
Allowed measurments:
- Centimeter (cm)
- Millimeter (mm)
- Inch (in)
- Point (pt)
Parameters:
- landscape : switch to landscape
- portrait : switch to portrait
- twoside : left and right margins are aligned symmetrical for uneven pages
- reversemp : side notes are displayed on left margin instead or right (default)
- nohead : no reserved space for header
- nofoot : no reserverd space for footer
- noheadfoot : both of two items above
- a4paper, a5paper : define paper format
- paperwidth : size of the width. paperwidth=value
- paperheight : size of the height. paperheight=value
- width : size of the text body. width=value or totalwidth=value.
- height : size of the text body. height=value
- left : left edge. left=value
- right : right edge. right=value
- top : top edge. top=value
- bottom : bottom edge. bottom=value
- margin : all edges. margin=value
- textwidth : width of the text. textwidth=value
- textheight : height. textheight=value
- marginpar : size of the margin notes. marginpar=value
- marginparsep : space between margin note and the textbody. marginparsep=value
- head : size of the head. head=value
- headsep : space between head and textbody. headsep=value
- foot : size of the foot. foot=value
Examples:
Set the text body to 10 inch and bottom margin 2cm.
{geometry:height=10in,bottom=2cm}
or same result with:
{geometry:height=10in}
{geometry:bottom:=2cm}
Set left, right, top margins and remove header.
{geometry:left=3cm,right=2cm, nohead,top=2.5in}
or same result with:
{geometry:left=3cm}
{geometry:right=2cm}
{geometry:nohead}
{geometry:top=2.5in}
Set the margin note to 3 cm.
{geometry:marginpar=3cm}
Set the paper size to A5 and orientation to landscape
{geometry:a5paper, landscape}