From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32434 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: A couple of questions on heads. Date: Tue, 2 Jan 2007 20:20:31 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167787271 28491 80.91.229.12 (3 Jan 2007 01:21:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 01:21:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 03 02:21:06 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H1uoI-0001ox-Hg for gctc-ntg-context-518@m.gmane.org; Wed, 03 Jan 2007 02:20:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6EB901FE6B; Wed, 3 Jan 2007 02:18:16 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14355-08; Wed, 3 Jan 2007 02:18:09 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 302FF1FE4A; Wed, 3 Jan 2007 02:18:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C7FAA1FE4B for ; Wed, 3 Jan 2007 02:18:03 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14536-02-2 for ; Wed, 3 Jan 2007 02:17:58 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id EE61C1FE47 for ; Wed, 3 Jan 2007 02:17:57 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 459B04E0.AFCCC.4868 ; 2 Jan 2007 20:20:33 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32434 Archived-At: On Tue, 2 Jan 2007, Elliot Clifton wrote: > I'm typesetting a journal. I use \chapter to divide it into articles. > I've defined my own heads, and I need to redefine \appendix, however > despite reading the manual I cant get them behave as I want. > > Problems: > > 1. Each article may have appendices. I've tried defining my own > 'appendix' head to replace the default one, but I can't decide which > to use, should I derive from chapter or section? The problem with > using section as the base, is that the count from my previous sections > is inherited. I don't want numbers of the form 1.1, 1.2, etc, either. > I want to number my appendices independently, starting from 1 without > the chapter number. Also, I would like to use roman numerals. You can separate the appendices by a section block. For example % appendix is already a section block. By default, a section % block starts a new page, you may not want that in a journal \setupsectionblock[appendix][page=] % Change the conversion for sections in appendices. \setupsection [section-3] [appendixconversion=Romannumerals] \starttext \section{Test} \startappendices \section{An Appendix} \stopappendices \stoptext > 2. I derived \Author from \section with expectation that > \setupheadertexts[Papertitle][Author] would yield a header containing > the author's name and the paper's title, however I get the title of > the most recent section instead of the author. What can I do about > this? You need not redrive \Author from section. You can use use totally different markings, as shown below. % Define your own marking. \definemarking[Papertitle] \definemarking[Author] % Set that marking. \marking[Papertitle]{This is a \CONTEXT\ example} \marking[Author]{Aditya Mahajan} % Allow ConTeXt to do the rest :-) \setupheadertexts[Papertitle][Author] \starttext test \stoptext HTH, Aditya