From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45030 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: picture before \chapter breaking \header \footer setup Date: Thu, 23 Oct 2008 09:40:22 -0400 (EDT) Message-ID: References: <49006F9F.8090104@jhnet.nl> 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: ger.gmane.org 1224775517 32006 80.91.229.12 (23 Oct 2008 15:25:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 15:25:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 23 17:26:06 2008 connect(): Connection refused 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 1Kt239-0001v6-OJ for gctc-ntg-context-518@m.gmane.org; Thu, 23 Oct 2008 17:24:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C4201FBF9; Thu, 23 Oct 2008 17:23:28 +0200 (CEST) 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 24015-07-23; Thu, 23 Oct 2008 17:22:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D63A01FC0B; Thu, 23 Oct 2008 17:21:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5010B1FB57 for ; Thu, 23 Oct 2008 17:21:23 +0200 (CEST) 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 27717-01-4 for ; Thu, 23 Oct 2008 17:20:40 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id A37021FC5A for ; Thu, 23 Oct 2008 15:40:24 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY tombraider.mr.itd.umich.edu ID 49007EC7.8304B.2117 ; 23 Oct 2008 09:40:23 -0400 In-Reply-To: <49006F9F.8090104@jhnet.nl> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:45030 Archived-At: On Thu, 23 Oct 2008, Jelle Huisman wrote: > Hi all, > > Another question, this time about \headers and \footers. On the first > page of the chapter I have the page number in the footer and on all > other pages they are in the header. This works fine, as expected. > However I have to include an \externalfigure *before* the \chapter > command and I discovered that I have to use \startcombination because > otherwise the \chapter moves to the next page. However, when I use > \startcombination ... etc \chapter is not longer the first thing on the > page and the special header/footer setup is not triggered (apparently > \chapter has to come first for that to happen). See sample code: You can try to play around with \setuphead[chapter][command=\something] and make sure that \something puts a figure where you want. You will need to specify the figure by other mechanism (define a command, pass two arguments trough one argument, etc). Aditya > % sample > \definetext[mychapter][footer][pagenumber] > \setuphead[chapter][header=high,footer=mychapter] > \showframe > \starttext > > %\startcombination[1*1]{\externalfigure}{ % uncomment to see problem > \chapter{first} > %}\stopcombination % uncomment to see problem > > \dorecurse{20}{\input tufte \relax} > \chapter{second} \dorecurse{20}{\input tufte \relax} % this works as > expected > \stoptext > % sample > > Is it possible to make this work? (maybe an extra \chapter command > before the combination that triggers the header-footer setup, but that > is not printed after all?) > > Thanks for any help. > > Jelle > ___________________________________________________________________________________ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________