Re: [NTG-context] the meaning of cutspace
Hello,
Don't use both backspace and cutspace at the same time.
From http://wiki.contextgarden.net/Layout: backspace \backspace javascript:show_command('backspace') from left rim of paper to left rim of main text area cutspace \cutspace javascript:show_command('cutspace') from right rim of paper to right rim of main text area Either the description is wrong, or... the thoughts stop here :)) Regards, Vyatcheslav
On Mon, 16 Nov 2009, Vyatcheslav Yatskovsky wrote:
Hello,
Don't use both backspace and cutspace at the same time.
From http://wiki.contextgarden.net/Layout:
backspace \backspace javascript:show_command('backspace') from left rim of paper to left rim of main text area
cutspace \cutspace javascript:show_command('cutspace') from right rim of paper to right rim of main text area
Either the description is wrong, or... the thoughts stop here :))
\setuplayout[backspace=1.5cm, cutspace=5cm, width=middle] \setuppagenumbering[alternative=doublesided] \showframe \starttext \showlayout \stoptext I am using big space so that it is easy to see the difference. Aditya
Am 16.11.2009 um 21:48 schrieb Aditya Mahajan:
\setuplayout[backspace=1.5cm, cutspace=5cm, width=middle] \setuppagenumbering[alternative=doublesided] \showframe \starttext \showlayout \stoptext
I am using big space so that it is easy to see the difference.
Another old example from me but i wonder if the output from your example is correct, when i set 'width=middle' i expect the same margin on both sides (i.e. the backspace setting) and the cutspace value is ignored. \definelayout[1][backspace=4cm,width=12cm] \definelayout[2][backspace=5cm,cutspace=7cm,width=fit] \definelayout[3][backspace=3cm,width=middle] \showframe \starttext \dorecurse{3} {\starttabulate \NC backspace \EQ \PtToCm\backspace \NC\NR \NC textwidth \EQ \PtToCm\textwidth \NC\NR \NC cutspace \EQ \PtToCm\cutspace \NC\NR \stoptabulate \page} \stoptext Wolfgang
Am 16.11.2009 um 22:29 schrieb Wolfgang Schuster:
Am 16.11.2009 um 21:48 schrieb Aditya Mahajan:
\setuplayout[backspace=1.5cm, cutspace=5cm, width=middle] \setuppagenumbering[alternative=doublesided] \showframe \starttext \showlayout \stoptext
I am using big space so that it is easy to see the difference.
Another old example from me but i wonder if the output from your example is correct, when i set 'width=middle' i expect the same margin on both sides (i.e. the backspace setting) and the cutspace value is ignored.
After reading the source 'width=middle' make sense, when both backspace and cutspace are set the width of the textarea is 'paperwidth - backspace - cutspace' but when cutspace is set to 0pt the textarea is 'paperwidth - 2*backspace'. Wolfgang
On Mon, 16 Nov 2009, Wolfgang Schuster wrote:
After reading the source 'width=middle' make sense, when both backspace and cutspace are set the width of the textarea is 'paperwidth - backspace - cutspace' but when cutspace is set to 0pt the textarea is 'paperwidth - 2*backspace'.
Hello Wolfgang, I'm sorry, I still don't understand... When width=middle adjusts the width to "paperwidth - backspace - cutspace", what should width=fit then do? What does "middle" mean, in the middle of *what*? I suggest, that specifying backspace + cutspace + width=middle should output an error or warning, and backspace + cutspace + width=fit should do it right... Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
Am 17.11.2009 um 11:40 schrieb Peter Münster:
I'm sorry, I still don't understand... When width=middle adjusts the width to "paperwidth - backspace - cutspace", what should width=fit then do? What does "middle" mean, in the middle of *what*?
I suggest, that specifying backspace + cutspace + width=middle should output an error or warning, and backspace + cutspace + width=fit should do it right...
The first thing context does is to check the value of width: (the width of the textarea is stored in \makeupwidth, not \textwidth) 1. width=middle if cutspace=0pt then cutspace=backspace endif makeupwidth = paperwidth - backspace - cutspace 2. width=fit when i look at the source i don't know if anyone want this setting because very complicated and the calculation is makeupwidth = paperwidth - (backspace - leftmargin - leftmargindistance - leftedge - ...) - (cutspace - rightmargin - ...) 3. width=<dimen> makeupwidth = <dimen> Example: \definelayout[1][backspace=4cm,width=12cm] \definelayout[2][backspace=5cm,cutspace=7cm,width=middle] \definelayout[3][backspace=3cm,cutspace=0pt,width=middle] \definelayout[4][backspace=4cm,width=fit] \definelayout[5][backspace=4cm,leftmargin=3cm,width=fit] \definelayout[6][backspace=4cm,leftmargin=4cm,width=fit] \definelayout[7][backspace=4cm,leftmargin=2cm,width=fit] \definelayout[8][backspace=4cm,leftmargin=2cm,rightmargin=3cm,width=fit] \definelayout[9][backspace=4cm,leftmargin=2cm,rightmargin=4cm,width=fit] \definelayout[10][backspace=4cm,leftmargin=2cm,rightmargin=2cm,width=fit] \showframe \starttext \dorecurse{10} {\starttabulate \NC backspace \EQ \PtToCm\backspace \NC\NR \NC textwidth \EQ \PtToCm\textwidth \NC\NR \NC cutspace \EQ \PtToCm\cutspace \NC\NR \stoptabulate \page} \stoptext Wolfgang
The first thing context does is to check the value of width: (the width of the textarea is stored in \makeupwidth, not \textwidth)
1. width=middle
if cutspace=0pt then cutspace=backspace endif
makeupwidth = paperwidth - backspace - cutspace
2. width=fit
when i look at the source i don't know if anyone want this setting because very complicated and the calculation is
makeupwidth = paperwidth - (backspace - leftmargin - leftmargindistance - leftedge - ...) - (cutspace - rightmargin - ...)
3. width=<dimen>
makeupwidth = <dimen>
Example:
\definelayout[1][backspace=4cm,width=12cm] \definelayout[2][backspace=5cm,cutspace=7cm,width=middle] \definelayout[3][backspace=3cm,cutspace=0pt,width=middle] \definelayout[4][backspace=4cm,width=fit] \definelayout[5][backspace=4cm,leftmargin=3cm,width=fit] \definelayout[6][backspace=4cm,leftmargin=4cm,width=fit] \definelayout[7][backspace=4cm,leftmargin=2cm,width=fit] \definelayout[8][backspace=4cm,leftmargin=2cm,rightmargin=3cm,width=fit] \definelayout[9][backspace=4cm,leftmargin=2cm,rightmargin=4cm,width=fit] \definelayout[10][backspace=4cm,leftmargin=2cm,rightmargin=2cm,width=fit]
\showframe
\starttext
\dorecurse{10} {\starttabulate \NC backspace \EQ \PtToCm\backspace \NC\NR \NC textwidth \EQ \PtToCm\textwidth \NC\NR \NC cutspace \EQ \PtToCm\cutspace \NC\NR \stoptabulate \page}
\stoptext
Wolfgang
to wikify ... where ? -- luigi
On Tue, Nov 17, 2009 at 1:54 PM, Taco Hoekwater
OK, I will wait until this evening and then I will do it . -- luigi
On Tue, Nov 17, 2009 at 1:54 PM, Taco Hoekwater
luigi scarso wrote:
to wikify ... where ?
done -- luigi
participants (6)
-
Aditya Mahajan
-
luigi scarso
-
Peter Münster
-
Taco Hoekwater
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster