From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80355 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Simple question: how do I get the filename in the footer Date: Sun, 20 Jan 2013 18:06:48 +0100 Message-ID: <508A9BFB-C4AC-4577-B121-AF36A52CC20D@rna.nl> References: <1CEBB444-2C26-4EC4-9D35-93A6EADCA5DC@rna.nl> <20130120115750.GA1285@phlegethon.router_intern> <5CA35152-641F-41AE-A7BA-5427C6852CD4@rna.nl> <20130120150928.GC1285@phlegethon.router_intern> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358701616 3226 80.91.229.3 (20 Jan 2013 17:06:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 17:06:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 18:07:14 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 1TwyMT-0003c8-4u for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 18:07:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4951101E2; Sun, 20 Jan 2013 18:06:55 +0100 (CET) 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 jieLzHoPUYEn; Sun, 20 Jan 2013 18:06:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 643F7101E5; Sun, 20 Jan 2013 18:06:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94AB4101E5 for ; Sun, 20 Jan 2013 18:06:52 +0100 (CET) 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 0dAXrRFCiqxF for ; Sun, 20 Jan 2013 18:06:51 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id F2CCB101E2 for ; Sun, 20 Jan 2013 18:06:50 +0100 (CET) Original-Received: from smtpq1.gn.mail.iss.as9143.net (smtpq1.gn.mail.iss.as9143.net [212.54.34.164]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KHLH6g013026 for ; Sun, 20 Jan 2013 18:21:17 +0100 Original-Received: from [212.54.34.136] (helo=smtp5.gn.mail.iss.as9143.net) by smtpq1.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1TwyM5-0008Md-HG for ntg-context@ntg.nl; Sun, 20 Jan 2013 18:06:49 +0100 Original-Received: from d57d7632.static.ziggozakelijk.nl ([213.125.118.50] helo=mail.rna.nl) by smtp5.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1TwyM5-0002rE-2Y for ntg-context@ntg.nl; Sun, 20 Jan 2013 18:06:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id B293FF8B6A2 for ; Sun, 20 Jan 2013 18:06:48 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lqNI+HBMdBAJ for ; Sun, 20 Jan 2013 18:06:47 +0100 (CET) Original-Received: from luna-wifi.rna.nl (luna-wifi.rna.nl [192.168.2.89]) by mail.rna.nl (Postfix) with ESMTPSA id E1185F8B693 for ; Sun, 20 Jan 2013 18:06:47 +0100 (CET) In-Reply-To: <20130120150928.GC1285@phlegethon.router_intern> X-Mailer: Apple Mail (2.1283) X-Ziggo-spambar: -- X-Ziggo-spamscore: -2.9 X-Ziggo-spamreport: ALL_TRUSTED=-1, BAYES_00=-1.9, MIME_QP_LONG_LINE=0.001, RP_MATCHES_RCVD=-0.001 X-Ziggo-Spam-Status: No X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.54.34.164; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01IOhlh7X - c499d70d6be6 - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:80355 Archived-At: On 20 Jan 2013, at 16:09, Philipp Gesang wrote: > =B7=B7=B7=B7=B7=B7=B7=B7= =B7 > = >> On 20 Jan 2013, at 12:57, Philipp Gesang wrote: >> = >>> Hi Gerben, >>> = >>> =B7=B7=B7=B7=B7=B7=B7=B7= =B7 >>> = >>>> how do I get the filename (full path not needed) in the footer >>>> of my document? I want it there while writing the book and remove >>>> it in the final stages. I am using MKII (TeXLive 2011 still) >>> = >>> if the name of the main file suffices, then the TeX command >>> \jobname is what you are looking for. >> = >> Thanks but that is not the one. Because I use the standard project setup= , and the job is always to typeset the file prd_book.tex, but I want the ch= apter file names (e.g. "chapter1.tex") in the footer. >> = >> So, prd_book contains: >> = >> \startbodymatter >> \component chapter1 >> \component chapter2 >> \component chapter3 >> \stopbodymatter >> = >> And I want "chapter1.tex" (maybe full path) in the footer. > = > If the component identifier matches the file name (e.g. if you > use the asterisk instead of a name), you can use > \currentcomponent. So the main file foo.tex would look like: > = > \setuppagenumbering[location=3D] > %% footer: main file->component file > \setupfootertexts[pagenumber][{\jobname->\currentcomponent}] > \startproduct * > \input ward \page > \component bar > \stopproduct > = > And bar.tex: > = > \startcomponent * > \input knuth \page > \stopcomponent Hi Philipp, that runs into the problem that the file name might contain characters that= TeX does not like, e.g. underscore. Is there a command to catch that? (./c_loosely.tex ! Missing $ inserted. = $ = _ \currentcomponent ->c_ loosely Thanks, G > = > Hth > Philipp > = > = > = > -- = > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________