margin bigger than backspace pushes it outside the edge
![](https://secure.gravatar.com/avatar/2199bb31385192a59c16024ff34313d2.jpg?s=120&d=mm&r=g)
Hi all, I've been struggling with basic page layout. The left margin extends outside the left edge of the page. Example (from the wiki): \setuppapersize[A4][A4] % this is the default and may be omitted \setuplayout[backspace=20mm, width=110mm, topspace=20mm, header=0mm, footer=0mm, height=250mm] \starttext \showlayout \stoptext Another example: \setuppapersize[A5][A4] \setuplayout[location=middle] \usemodule[ipsum] \starttext \showframe \ipsum \stoptext Thanks, Jean-Guillaume
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Jigé via ntg-context schrieb am 10.12.2023 um 11:30:
Hi all, I've been struggling with basic page layout.
The left margin extends outside the left edge of the page. Example (from the wiki):
\setuppapersize[A4][A4] % this is the default and may be omitted \setuplayout[backspace=20mm,
leftmargin=10mm, leftmargindistance=5mm,
width=110mm, topspace=20mm, header=0mm, footer=0mm, height=250mm] \starttext \showlayout \stoptext
Wolfgang
![](https://secure.gravatar.com/avatar/2199bb31385192a59c16024ff34313d2.jpg?s=120&d=mm&r=g)
Thanks Wolfgang.
Is this expected behavior? I'm very much confused with my second example:
\setuppapersize[A5][A4]
%\setuplayout[location=middle]
\setuplayout[location=middle,width=middle]
%\setuplayout[location=middle,width=middle,backspace=2.5cm]
\usemodule[ipsum]
\starttext
\showframe
Hello
\stoptext
With just \setuplayout[location=middle] the left margin gets outside the left edge, there's also a gap to the right of the right margin and, to the eye, it seems that the sum leftmargin+leftmargindistance+textwidth+rightmargindistance+rightmargin doesn not match the page width.
With \setuplayout[location=middle,width=middle] all is symmetrical but the two margins go outside the edges.
With e.g. \setuplayout[location=middle,width=middle,backspace=2.5cm] I can fit everything by manually adjusting the backspace to I'm not sure what the right value.
I couldn't adjust the page layout on some more complex document, so I'm going back to the most basic layout and trying to make it work on the simplest document possible.
JG Le dimanche 10 décembre 2023 à 11:53:07 UTC+1, Wolfgang Schuster
Hi all, I've been struggling with basic page layout.
The left margin extends outside the left edge of the page. Example (from the wiki):
\setuppapersize[A4][A4] % this is the default and may be omitted \setuplayout[backspace=20mm,
leftmargin=10mm, leftmargindistance=5mm,
width=110mm, topspace=20mm, header=0mm, footer=0mm, height=250mm] \starttext \showlayout \stoptext
Wolfgang
![](https://secure.gravatar.com/avatar/e0f8d84b235b67d60a3c7fd0e326db8d.jpg?s=120&d=mm&r=g)
On 10 Dec 2023, at 10:30, Jigé via ntg-context
I've been struggling with basic page layout.
The left margin extends outside the left edge of the page. Example (from the wiki):
I don't know why it is like this but changing it now would probably break a lot of documents that rely on the defaults. I suspect that most people, me included, simply adjust margin sizes until they have a pleasing result. This would only become a problem if margin text is used a lot. The following corrects for the left margin starting off the page for both single and doublesided documents. The remainder of the settings will need adjusting to suit your specific circumstances. \setuppapersize[A4][A3] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \setuplayout[backspace=30.8mm] \starttext \showlayout[4,pt,cm] \stoptext — Bruce Horrocks Hampshire, UK
participants (3)
-
Bruce Horrocks
-
Jigé
-
Wolfgang Schuster