Re: [NTG-context] margin text
On Thu, Mar 25, 2010 at 12:00 PM,
....yes . I have these line \setuppapersize[A4][A3] \setuplayout[location=middle] right to show that default layout --- and it's the default layout from 10years at least --- perhaps is not adeguate to your needs; you need to setup* something.
align (and ragged align) have always confused me, and I suspect that here aligns are corrects.
-- luigi
and
Yes, it is even a FAQ item. See here for why:
http://wiki.contextgarden.net/Right_and_left
In short: use flushleft or flushright. This gives the opposite behavior of left and right, and avoids ambiguity.
Best wishes, Taco
Thank you, Luigi and Taco, for your almost instantaneous replies. The answer to the left-right question, the recommended use of flushright and flushleft, is clear now. But the eccentricity of what apparently is the default layout is still a problem for me. What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything. Thanks in advance for any help. Best regards, Robert Blackstone
On Thu, Mar 25, 2010 at 1:00 PM, Robert Blackstone
What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything. hm, strange, try
\setuppapersize[A4][A3] \setuplayout[location=middle, backspace=23mm, margin=15mm,margindistance=3mm, width=fit, ] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \showlayout \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }} %% override blue, but not for frame \inleft{\tfx A small note in this margin. But we need to setup something before \ldots } \stoptext -- luigi
Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso
wrote: What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything. hm, strange, try
\setuppapersize[A4][A3] \setuplayout[location=middle, backspace=23mm, margin=15mm,margindistance=3mm, width=fit, ] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \showlayout \starttext ..... -- luigi
Thank you, Luigi. This code gives a nice result with the page sitting neatly centered on the paper. However, when I increase the margin width to 25mm all gets shifted to the left. Both margins get 25 width, the right margin stays within the boundaries of the A4 paper, the left one is pushed outside. One would have expected that with width=fit, the increase of marginwidth would go at the expense of textwidth and that location=middle will still dictate the overall position. But no, it does not work that way apparently. Setting margin=20mm is about the limit. Even setting textwidth to a small size, for example 10 cm, does not work to keep the page inside the paper. The extra white space all shows up at the right side as an enormously wide rightedge while the left margin is still partly outside the paper. In other words: location=middle does not work. Strange indeed. Is there anything that could be done about this? And would it be possible to different margin width for the right and left margin? Thanks in advance for any advice. Best regards, Robert Blackstone
On Fri, Mar 26, 2010 at 9:56 AM, Robert Blackstone
Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso
wrote:
wrote: What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything. hm, strange, try
\setuppapersize[A4][A3] \setuplayout[location=middle, backspace=23mm, margin=15mm,margindistance=3mm, width=fit, ] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \showlayout \starttext ..... -- luigi
Thank you, Luigi. This code gives a nice result with the page sitting neatly centered on the paper.
However, when I increase the margin width to 25mm all gets shifted to the left. Both margins get 25 width, the right margin stays within the boundaries of the A4 paper, the left one is pushed outside. One would have expected that with width=fit, the increase of marginwidth would go at the expense of textwidth and that location=middle will still dictate the overall position. But no, it does not work that way apparently. Setting margin=20mm is about the limit. Even setting textwidth to a small size, for example 10 cm, does not work to keep the page inside the paper. The extra white space all shows up at the right side as an enormously wide rightedge while the left margin is still partly outside the paper. In other words: location=middle does not work. Strange indeed. for expected behavior must be backspace >= margin + margindistance Try backspace=23mm,margin=21mm,margindistance=2mm, backspace=23mm,margin=23mm,margindistance=0mm, backspace=23mm,margin=18mm,margindistance=0mm, backspace=23mm,margin=2mm,margindistance=21mm,
Is there anything that could be done about this? And would it be possible to different margin width for the right and left margin?
yes there are right and left dimensions, but you should definitely experiments with them -- luigi
Hi! Robert Blackstone a écrit :
Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso
wrote:
wrote: What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything.
hm, strange, try
\setuppapersize[A4][A3] \setuplayout[location=middle, backspace=23mm, margin=15mm,margindistance=3mm, width=fit, ] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \showlayout \starttext
.....
-- luigi
Thank you, Luigi. This code gives a nice result with the page sitting neatly centered on the paper.
However, when I increase the margin width to 25mm all gets shifted to the left. Both margins get 25 width, the right margin stays within the boundaries of the A4 paper, the left one is pushed outside. One would have expected that with width=fit, the increase of marginwidth would go at the expense of textwidth and that location=middle will still dictate the overall position. But no, it does not work that way apparently. Setting margin=20mm is about the limit. Even setting textwidth to a small size, for example 10 cm, does not work to keep the page inside the paper. The extra white space all shows up at the right side as an enormously wide rightedge while the left margin is still partly outside the paper. In other words: location=middle does not work. Strange indeed.
Is there anything that could be done about this? And would it be possible to different margin width for the right and left margin?
When I tested some of the page layout possibilities I did read in * that the margin and the text are *not* at the same level, so the margins can be *under* the text. This also means that changing the margin will not affect the text width, and so on. Alain see ConTeXt wiki Layout: http://wiki.contextgarden.net/Layout and perhaps also ConTeXt the manual cont-enp.pdf
Thanks in advance for any advice.
Best regards, Robert Blackstone ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Alain Delmotte
-
luigi scarso
-
Robert Blackstone