[NTG-context] Page with minimum margins, maximum text width/textheight
Philipp Gesang
gesang at stud.uni-heidelberg.de
Sat Jan 14 01:20:33 CET 2012
Hi Gerben!
On 2012-01-14 00:43, Gerben Wierda wrote:
> but I forgot how to do something like width=\paperwidth-2cm (not
> like that obviously, but I have forgotten how to do simple
> addition and subtraction with dimensions in TeX)
See TeXbook p. 118f.
> So, how do I set a margin of 1cm all around the makeup area?
Does the following fit your needs?
·································································
\newdimen\myborderoffset \myborderoffset=1cm
\definelayout[mypage][page]
\setuplayout [mypage][
backspace=\myborderoffset,
topspace=\myborderoffset,
]
\setuplayout[mypage]
\showframe
\def\docowpage{%
\rotate[rotation=90]{\externalfigure[cow][width=\vsize,height=\hsize]}\page%
}
\starttext
\dorecurse{5}{\docowpage}
\stoptext
·································································
Regards, Philipp
>
> G
>
> On 14 Jan 2012, at 00:06, Aditya Mahajan wrote:
>
> > On Fri, 13 Jan 2012, Gerben Wierda wrote:
> >
> >> How do I create a page with maximum text width, text height? I tried using \setuplayout with stuff like [textwidth=\pagewidth-1cm], but nothing happens. I need empty pages with minimum margins, just to be able to put other PDF's in that space.
> >
> > \setuplayout[page], or if you want to do this for only one page, \adaptlayout[page]
> >
> > Aditya
> > ___________________________________________________________________________________
> > If your question is of interest to others as well, please add an entry to the Wiki!
> >
> > maillist : ntg-context at 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
> > ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120114/cf64bb53/attachment-0001.pgp>
More information about the ntg-context
mailing list