From: Tim Li <timli2013@outlook.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Set layout for the first page of Chapters
Date: Thu, 9 May 2013 11:45:24 +0000 [thread overview]
Message-ID: <BLU152-W3654B330E16783C821AA26A9A40@phx.gbl> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 867 bytes --]
Hi,
when designing some documents, I hope I can set a global layout and
another layout for the first page of all chapters. I have defined two
layouts as follows:
\setuppagenumbering
[alternative=doublesided,
location=]
% global layout for the whole document
\setuplayout
[backspace=2.5cm,
width=16.5cm,
topspace=2cm,
height=25.2cm,
header=\lineheight,
headerdistance=\lineheight,
footer=0cm]
% layout for the first page of Chapters
\definelayout
[firstpage]
[height=26.2cm,
footerdistance=\lineheight,
footer=\lineheight]
\starttext
\chapter{First Chapter}
I am in the first page.
\page
I am in the second page.
\stoptext
my question is that how I can apply this `firstpage' layout
to the first page of the chapter `First Chapter' and switch back to
the global layout after the first page of this chapter?
Best Regards,Tim
[-- Attachment #1.2: Type: text/html, Size: 2994 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 reply other threads:[~2013-05-09 11:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 11:45 Tim Li [this message]
2013-05-09 17:32 ` Wolfgang Schuster
2013-05-10 1:42 ` Tim Li
2013-05-10 4:28 ` Wolfgang Schuster
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=BLU152-W3654B330E16783C821AA26A9A40@phx.gbl \
--to=timli2013@outlook.com \
--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).