From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80364 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 21:41:54 +0100 Message-ID: <2B65D10C-44D0-4340-9540-2B5FBD2F950A@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> <508A9BFB-C4AC-4577-B121-AF36A52CC20D@rna.nl> 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 1358714520 13607 80.91.229.3 (20 Jan 2013 20:42:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 20:42:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 21:42:19 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 1Tx1ib-00062S-R2 for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 21:42:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBE16101F2; Sun, 20 Jan 2013 21:42:00 +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 onFDrHkribfD; Sun, 20 Jan 2013 21:41:58 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B5186101E5; Sun, 20 Jan 2013 21:41:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0354101E5 for ; Sun, 20 Jan 2013 21:41:57 +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 wKqG4mzltwgu for ; Sun, 20 Jan 2013 21:41:56 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 2BF3D101E2 for ; Sun, 20 Jan 2013 21:41:56 +0100 (CET) Original-Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KKftlh023931 for ; Sun, 20 Jan 2013 21:41:55 +0100 Original-Received: from [212.54.42.133] (helo=smtp2.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Tx1iF-0002mK-CW for ntg-context@ntg.nl; Sun, 20 Jan 2013 21:41:55 +0100 Original-Received: from d57d7632.static.ziggozakelijk.nl ([213.125.118.50] helo=mail.rna.nl) by smtp2.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Tx1iE-00016j-RP for ntg-context@ntg.nl; Sun, 20 Jan 2013 21:41:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 4BDDEF8BB83 for ; Sun, 20 Jan 2013 21:41:54 +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 yPzgFBsA6ME1 for ; Sun, 20 Jan 2013 21:41:53 +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 C2667F8BB76 for ; Sun, 20 Jan 2013 21:41:53 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1283) X-Ziggo-spambar: -- X-Ziggo-spamscore: -2.9 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,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.42.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: 0NIOkFTQO - 60e8868a019c - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:80364 Archived-At: On 20 Jan 2013, at 18:34, Wolfgang Schuster wrote: > = > Am 20.01.2013 um 18:06 schrieb Gerben Wierda : > = >> 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 set= up, and the job is always to typeset the file prd_book.tex, but I want the = chapter 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 t= hat TeX does not like, e.g. underscore. Is there a command to catch that? > = > You can add the \nonknuthmode to your document which makes _ and ^ normal= characters for text mode. Is that limited to a {}-scope? And more importantly, that catches ^ and _, = but what about whitespace etc. Isn;t there a true verbatim that I can use o= n a macro like \currentcomponent? Something along the lines of \verbatimexp= and{\currentcomponent}? G > = > 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-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 ___________________________________________________________________________= ________