ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Set layout for the first page of Chapters
Date: Fri, 10 May 2013 06:28:43 +0200	[thread overview]
Message-ID: <654573CD-013D-40A8-A883-F6ED3B9AD1E8@gmail.com> (raw)
In-Reply-To: <BLU152-W9E0C9832A9F6166B2F6E6A9A50@phx.gbl>


[-- Attachment #1.1: Type: text/plain, Size: 1237 bytes --]


Am 10.05.2013 um 03:42 schrieb Tim Li <timli2013@outlook.com>:

> Hi, Wolfgang,
> 
> I am reading a book desinged by Springer-Verlag, whose size if 152mm X 226mm. Its backspace is 25mm, width 107mm, topspace 20mm, height 181 mm, this is the global layout. And the page number lies in the header, but no footers.
> 
> The chapter page in this book has a different layout, whose footer in not empty and the page number of the chapter page is in the footer. the height is 191mm, footer \lineheight(=\baselineskip?), footerdistance \lineheight. Other keys are the same with the global layout.
> 
> If I want to achieve the layouts like this book, do I need the two layouts in my codes? In my view, I need them, but I don't know if there is a better method.

\definetext
  [chapter]    % name, used for \setuphead[...][footer=<name>]
  [footer]     % location of the text, can be “header” or “footer”
  [pagenumber] % takes the same arguments as \setupheadertexts

\setuphead
  [chapter]
  [header=empty, % don’t show any text in the header on chapter pages
   footer=chapter]

\starttext

\dorecurse{4}
  {\expanded{\chapter{Chapter \recurselevel}}
   \dorecurse{12}{\input knuth\par}}

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2324 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
___________________________________________________________________________________

      reply	other threads:[~2013-05-10  4:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 11:45 Tim Li
2013-05-09 17:32 ` Wolfgang Schuster
2013-05-10  1:42   ` Tim Li
2013-05-10  4:28     ` Wolfgang Schuster [this message]

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=654573CD-013D-40A8-A883-F6ED3B9AD1E8@gmail.com \
    --to=schuster.wolfgang@gmail.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).