From: Philipp Gesang <gesang@stud.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Page with minimum margins, maximum text width/textheight
Date: Sat, 14 Jan 2012 01:20:33 +0100 [thread overview]
Message-ID: <20120114002033.GA32629@phlegethon> (raw)
In-Reply-To: <C25B300E-A110-4F66-A117-60E16E8B9820@rna.nl>
[-- Attachment #1.1: Type: text/plain, Size: 2529 bytes --]
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@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@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
[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-01-14 0:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-13 22:59 Gerben Wierda
2012-01-13 23:06 ` Aditya Mahajan
2012-01-13 23:43 ` Gerben Wierda
2012-01-14 0:20 ` Philipp Gesang [this message]
2012-01-14 0:31 ` Gerben Wierda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120114002033.GA32629@phlegethon \
--to=gesang@stud.uni-heidelberg.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).