From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78405 Path: news.gmane.org!not-for-mail From: Arne Runge Newsgroups: gmane.comp.tex.context Subject: Header-Footer-Layout Date: Sun, 23 Sep 2012 16:07:59 +0200 Message-ID: <505F17BF.70509@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348474044 23064 80.91.229.3 (24 Sep 2012 08:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2012 08:07:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 24 10:07:27 2012 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 1TG3hL-0003pw-5H for gctc-ntg-context-518@m.gmane.org; Mon, 24 Sep 2012 10:07:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB96C101E8; Mon, 24 Sep 2012 10:07:17 +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 HMitfqUXLpXG; Mon, 24 Sep 2012 10:07:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 26527101EA; Mon, 24 Sep 2012 10:07:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF7AE101E8 for ; Sun, 23 Sep 2012 15:59:08 +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 gwpNzxIpJpaU for ; Sun, 23 Sep 2012 15:59:08 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 10D2E101E2 for ; Sun, 23 Sep 2012 15:59:08 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id q8NDx4gb004534 for ; Sun, 23 Sep 2012 15:59:04 +0200 Original-Received: (qmail invoked by alias); 23 Sep 2012 13:59:03 -0000 Original-Received: from 37.wh-keltern.uni-ulm.de (EHLO [134.60.102.37]) [134.60.102.37] by mail.gmx.net (mp002) with SMTP; 23 Sep 2012 15:59:03 +0200 X-Authenticated: #3232339 X-Provags-ID: V01U2FsdGVkX1+wQP5z8hqwYIy8eOqJYtGO0TzHB6aT6ooXdi0H3/ 5p/hPkk4jnNup/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06I2BX4yo - 1f4513faca2e - 20120923 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Mailman-Approved-At: Mon, 24 Sep 2012 10:07:14 +0200 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:78405 Archived-At: Hi, I would like to have a doublesided layout with: - a titlepage with neither header nor footer, - a frontpart with pagesnumbers(left/right) in roman - a bodypart with pagesnumbers(left/right) in arabic - an appendix with pagesnumbers(left/right) in arabic - first page of a chapter should not have a header + underline - next page header(CHAPTER #: chapter) underlined - next page header(section) underlined - if there is no section then only the line. - if the next page is empty than only the pagenumber should be printed. Seems to be a common layout and I apologize for asking. Thanks in advance for any help. Regards, Arne My code: \mainlanguage[de] \setuppapersize[A4][A4] \setupsectionblock[frontpart][page=] \setupsectionblock[bodypart] [page=] \setupsectionblock[backpart] [page=] \setupsectionblock[appendix] [page=] \setuppagenumbering[alternative=doublesided] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] CHAPTER \getmarking[chapternumber]: \expanded{\uppercase{\fetchmark[chapter][first]}} \stopsetups \startsetups[text b] \getmarking[section] \stopsetups \setupheader[text][after=\hrule] \setuphead[chapter][header=empty] \setupfootertexts[][pagenumber] \starttext \startstandardmakeup \title{title} \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \completecontent \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \chapter{body} bla \stopbodymatter \startappendices \chapter{appendix} code \stopappendices \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________