From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42543 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: \setuphheadertexts for titles. Date: Thu, 17 Jul 2008 16:19:54 +0200 Message-ID: <115224fb0807170719k59200f1cpd36b40a5f8c67e8@mail.gmail.com> References: <200807171002.08341.john@wexfordpress.com> 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 1216304523 32300 80.91.229.12 (17 Jul 2008 14:22:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 14:22:03 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 17 16:22:51 2008 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 1KJUNT-0003xY-VW for gctc-ntg-context-518@m.gmane.org; Thu, 17 Jul 2008 16:22:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DFE5C1FD1B; Thu, 17 Jul 2008 16:21:42 +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 09193-02-2; Thu, 17 Jul 2008 16:20:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F6AD1FC91; Thu, 17 Jul 2008 16:20:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3F5941FC84 for ; Thu, 17 Jul 2008 16:20:46 +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 08699-01-7 for ; Thu, 17 Jul 2008 16:20:00 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.145]) by ronja.ntg.nl (Postfix) with ESMTP id C11FA1FCD9 for ; Thu, 17 Jul 2008 16:19:57 +0200 (CEST) Original-Received: by qw-out-1920.google.com with SMTP id 9so602443qwj.38 for ; Thu, 17 Jul 2008 07:19:55 -0700 (PDT) Original-Received: by 10.150.205.13 with SMTP id c13mr498814ybg.183.1216304394762; Thu, 17 Jul 2008 07:19:54 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Thu, 17 Jul 2008 07:19:54 -0700 (PDT) In-Reply-To: <200807171002.08341.john@wexfordpress.com> Content-Disposition: inline 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:42543 Archived-At: On Thu, Jul 17, 2008 at 4:02 PM, John Culleton wrote: > Here is my current \setupheadertexts > \setupheadertexts[text] > [chapter][pagenumber][pagenumber][Don't Leave Your Company's Money on > the Table] > > It works fine for chapters. I have a few titles that I want to have > running heads for also, such as Preface, Introduction and so on. I > tried using a special \setupheadertexts locally with the entire text > enclosed in brackets thus: > {\setupheadertexts[text] > [Introduction][pagenumber][pagenumber][Don't Leave Your Company's > Money on the Table] > (text) > ... > } > but that didn't work. > > Changing the second field to > {chapter,title] just gave me the words "chapter,title". > Somehow there must be a way to change the current chapter marking but > I can't figure it out. You could try (untested): \setupheadertexts [\doiftextelse{\getmarking[title]}{\getmarking[title]}{\getmarking[chapter]}] [pagenumber] [pagenumber] [Don't Leave Your Company's Money on the Table] Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________