From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82438 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Set layout for the first page of Chapters Date: Fri, 10 May 2013 06:28:43 +0200 Message-ID: <654573CD-013D-40A8-A883-F6ED3B9AD1E8@gmail.com> References: , Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: multipart/mixed; boundary="===============0445292837==" X-Trace: ger.gmane.org 1368160136 23118 80.91.229.3 (10 May 2013 04:28:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 May 2013 04:28:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 10 06:28:57 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uaeww-0003g7-8c for gctc-ntg-context-518@m.gmane.org; Fri, 10 May 2013 06:28:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63ADF101EE; Fri, 10 May 2013 06:28:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zeP-uYrCmXgo; Fri, 10 May 2013 06:28:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7835C101E8; Fri, 10 May 2013 06:28:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3B17101E8 for ; Fri, 10 May 2013 06:28:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0dasPM7E6zzo for ; Fri, 10 May 2013 06:28:49 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id D9985101E0 for ; Fri, 10 May 2013 06:28:38 +0200 (CEST) Original-Received: from mail-ea0-x22b.google.com (mail-ea0-x22b.google.com [IPv6:2a00:1450:4013:c01::22b]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4A4Sc3t032639 for ; Fri, 10 May 2013 06:28:38 +0200 Original-Received: by mail-ea0-f171.google.com with SMTP id b15so157492eae.16 for ; Thu, 09 May 2013 21:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:message-id:mime-version:subject:date :references:to:in-reply-to:x-mailer; bh=WakbKPHYtOOZKn2Fn9uRel4bw4U8LQQ6R1mWV+FRQx8=; b=YyI7AmfUir5glaD5x05cEA23ZiIV7/PDI5aQQ9/z5lnmMMVh38Hsk8IXWOsv4tKN+h bVCFuEfLT1CsmCMAa1RMLAOqOLmjdU4HrZbcdV3Za12q6f80rlEHBSLrb8t4sGPGsuFv fpScGq7sRjvEbyAwLsztyQV6UH6zs5pC9sESdYyTZwCgf3x1oxTZDola5ZMyh0XithqA /n69jcsQJxBP8r2DkS9NxYv3lEhtosk4XKIdO9ujWT1/G/7+2NqEBBWt7miA+tKm0OCO TWN1dwT5HCJh1ZDxqmBBz7hcvRGwjr+Olve2Zlg6e43BnIQSSJk5kwGzgatbW49qHKST l9TA== X-Received: by 10.15.23.69 with SMTP id g45mr36687322eeu.25.1368160118017; Thu, 09 May 2013 21:28:38 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf9041.pool.mediaWays.net. [77.191.144.65]) by mx.google.com with ESMTPSA id y10sm1097789eev.3.2013.05.09.21.28.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 21:28:37 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Jy4sCeB - fe321eb1f8d9 - 20130510 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82438 Archived-At: --===============0445292837== Content-Type: multipart/alternative; boundary="Apple-Mail=_8F0D3739-C9D3-4C8F-BC04-2F4C3D83C961" --Apple-Mail=_8F0D3739-C9D3-4C8F-BC04-2F4C3D83C961 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=GB2312 Am 10.05.2013 um 03:42 schrieb Tim Li : > Hi, Wolfgang, >=20 > 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. >=20 > 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(=3D\baselineskip?), footerdistance = \lineheight. Other keys are the same with the global layout. >=20 > 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=3D] [footer] % location of the text, can be =A1=B0header=A1=B1 or = =A1=B0footer=A1=B1 [pagenumber] % takes the same arguments as \setupheadertexts \setuphead [chapter] [header=3Dempty, % don=A1=AFt show any text in the header on chapter = pages footer=3Dchapter] \starttext \dorecurse{4} {\expanded{\chapter{Chapter \recurselevel}} \dorecurse{12}{\input knuth\par}} \stoptext Wolfgang= --Apple-Mail=_8F0D3739-C9D3-4C8F-BC04-2F4C3D83C961 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=GB2312
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(=3D\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=3D<name>]
  [footer]   =   % location of the text, can be =A1=B0header=A1=B1 or = =A1=B0footer=A1=B1
  [pagenumber] % takes the same = arguments as = \setupheadertexts

\setuphead
  = [chapter]
  [header=3Dempty, % don=A1=AFt show any text = in the header on chapter pages
  =  footer=3Dchapter]

\starttext

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

\stoptext

<= div>Wolfgang= --Apple-Mail=_8F0D3739-C9D3-4C8F-BC04-2F4C3D83C961-- --===============0445292837== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0445292837==--