ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Set layout for the first page of Chapters
@ 2013-05-09 11:45 Tim Li
  2013-05-09 17:32 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Li @ 2013-05-09 11:45 UTC (permalink / raw)
  To: ntg-context


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-10  4:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-09 11:45 Set layout for the first page of Chapters Tim Li
2013-05-09 17:32 ` Wolfgang Schuster
2013-05-10  1:42   ` Tim Li
2013-05-10  4:28     ` Wolfgang Schuster

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).