From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80356 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Simple question: how do I get the filename in the footer Date: Sun, 20 Jan 2013 18:34:02 +0100 Message-ID: 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 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358703257 17058 80.91.229.3 (20 Jan 2013 17:34:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 17:34:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 18:34:36 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 1Twymw-0001k5-6P for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2013 18:34:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D949F101EB; Sun, 20 Jan 2013 18:34:16 +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 HYo3+DUbA2Cr; Sun, 20 Jan 2013 18:34:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id F3C3C101E5; Sun, 20 Jan 2013 18:34:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F2FEF101E5 for ; Sun, 20 Jan 2013 18:34:12 +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 kEbYMgCK+L+8 for ; Sun, 20 Jan 2013 18:34:12 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id E8AA9101E2 for ; Sun, 20 Jan 2013 18:34:11 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0KHY4ux025710 for ; Sun, 20 Jan 2013 18:34:04 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so2704674bkc.28 for ; Sun, 20 Jan 2013 09:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=CDRxpciARf/kAAD8CNbW116AqcVUJFLa+ZDy1OwxF1E=; b=DcMM43XceDPsImuDNLTHURfdqlaL8WsiDr5dcNxM3/pUwdiI9hwK13hYaScKRPDeL9 feNac9E6GFk0JkYoIYe3sq+dQfvhJzVXqkIBT0CUTs4vjpXTYERIjXJz1MVUxeCs/mpw KzJFN14LLfGZtFOIJVQZVzh6dGE0GQlxX6DLLjhMLdHYW3lBFEJ3K9zsOQ12bdcJPbPw 60hnSBRfEPKD1Tsxm8qyyctV7Mo7oZ7JUrnKpqjCHoNDWjrqdPtuLhiQbWSbGftP2p4b X5pAYjxRGRcJez/Urw2WXFYbv1xhb9VbLHm3NnsNb3zvDJ25qQjiKDf0bv2W5oWGKP9x 7qLQ== X-Received: by 10.204.156.11 with SMTP id u11mr4214252bkw.106.1358703243899; Sun, 20 Jan 2013 09:34:03 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe5d00.pool.mediaWays.net. [77.190.93.0]) by mx.google.com with ESMTPS id s10sm4098583bkw.3.2013.01.20.09.34.02 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jan 2013 09:34:02 -0800 (PST) In-Reply-To: <508A9BFB-C4AC-4577-B121-AF36A52CC20D@rna.nl> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RIOhy4dV - 92eeb19f5660 - 20130120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:80356 Archived-At: 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 setu= p, and the job is always to typeset the file prd_book.tex, but I want the c= hapter 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 th= at 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 c= haracters for text mode. Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________