[NTG-context] Migrations: exactly LaTeX margins --> ConTeXt margins

xancorreu xancorreu at gmail.com
Tue Aug 31 18:33:19 CEST 2010


Al 31/08/10 12:22, En/na Wolfgang Schuster ha escrit:
> \definelayout
>    [latex10]
>    [width=\ifdim\dimexpr\paperwidth-2in\relax>345pt\relax 345pt\else\dimexpr\paperwidth-2in\relax\fi, % \paperwidth-2in or 345pt, use the smaller value
>     backspace=\dimexpr(\paperwidth-\textwidth)/2-1in\relax,
>     leftmargindistance=7pt,
>     leftmargin=,
>     topspace=,
>     header=12pt,
>     headerdistance=.25in,
>     height=,
>     footer=,
>     footerdistance=,]
>
>    
Thank you very much for your effort, but it does not work for me:

! Missing number, treated as zero.
<to be read again>
                    \global
\dorecalculatelayout ...ter \c!leftmargin \global
                                                   \rightmarginwidth 
\layoutp...

\dosetuplayout ...#1}}}\fi \fi \recalculatelayout
                                                   \checkcurrentlayout 
\prese...
<to be read again>
                    \par
l.36

? x
No pages of output.
Transcript written on arxiv.log.


For now, I use
% Margins
\setuplayout[topspace=3cm,leftmargin=3cm,rightmargin=3cm,header=2cm,footer=2cm,width=middle,height=fit,backspace=4.4cm]

with approximate the latex in 10.



More information about the ntg-context mailing list