From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82131 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Fwd: Is it possible to set the output file name in the script Date: Fri, 26 Apr 2013 21:08:05 +0200 Message-ID: References: <517AA765.8070406@wxs.nl> <517AB17E.8030104@wxs.nl> <517AB56C.6070907@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367003293 14276 80.91.229.3 (26 Apr 2013 19:08:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 19:08:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 26 21:08:18 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 1UVo0H-0007Dj-Nl for gctc-ntg-context-518@m.gmane.org; Fri, 26 Apr 2013 21:08:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D34E2101E9; Fri, 26 Apr 2013 21:08:16 +0200 (CEST) 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 3P89gsPL+Im6; Fri, 26 Apr 2013 21:08:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B5673101E4; Fri, 26 Apr 2013 21:08:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A515F101E4 for ; Fri, 26 Apr 2013 21:08:12 +0200 (CEST) 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 kGRFUAZeEbfd for ; Fri, 26 Apr 2013 21:08:11 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 7ECFE101E0 for ; Fri, 26 Apr 2013 21:08:11 +0200 (CEST) Original-Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3QJ86mH004872 for ; Fri, 26 Apr 2013 21:08:06 +0200 Original-Received: by mail-we0-f179.google.com with SMTP id u7so176044wey.10 for ; Fri, 26 Apr 2013 12:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=b8ABe5mkALe2nsAQKhAs52PUK59IzhWWx3Hcqp+bV/w=; b=fafuw8XkwmwTU/AH+5ZxI2vukSsAEHIMcuhmDrXel4VE+72+iCWLWsTkbV8rZsJv5z LOoV2jOJV1b2xzPm7s8jCLJTwo4cCk/MLobk6bYHuNYjjqTXUv05vMp+XVJSQDu+kgMA IElEXM3CeAsSXxi8x3y7JMVBWXSYoM5GfpzE9t9X3LlI++1Konn2AvenWHSoGy8ggGht pgR3CNCNbrLVkvV18vKB0I0t+QJxrzggIpTX/eV8ttfKy4h5nuZ1isAlEVWRpKmBxaL0 lth4oe//dK/ioaTKAscXFTvaUi7+ItgyL14WvQOod0Hmk0/RuBbEfJzbtJQkfKDzRaGB FDSA== X-Received: by 10.194.143.50 with SMTP id sb18mr84105369wjb.44.1367003285993; Fri, 26 Apr 2013 12:08:05 -0700 (PDT) Original-Received: by 10.194.109.233 with HTTP; Fri, 26 Apr 2013 12:08:05 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JsH86d7 - fe95a3e1b425 - 20130426 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:82131 Archived-At: Again to Hans instead of to the list. I =91hate=92 gmail. ---------- Forwarded message ---------- From: Cecil Westerhof Date: 2013/4/26 Subject: Re: [NTG-context] Is it possible to set the output file name in the script To: Hans Hagen 2013/4/26 Hans Hagen : > On 4/26/2013 7:01 PM, Cecil Westerhof wrote: >> >> 2013/4/26 Hans Hagen : >>> >>> On 4/26/2013 6:50 PM, Cecil Westerhof wrote: >>>> >>>> >>>> 2013/4/26 Hans Hagen : >>>>> >>>>> >>>>> On 4/26/2013 5:34 PM, Cecil Westerhof wrote: >>>>>> >>>>>> >>>>>> >>>>>> I am using a command line parameter to change the generated output. = Is >>>>>> it also possible to set the output file name depending on the >>>>>> parameter? >>>>> >>>>> >>>>> >>>>> >>>>> --result=3Dsomename >>>> >>>> >>>> >>>> That is on the command line. Then you need to give two parameters. Not >>>> a very big problem, but I would prefer one parameter. I like DRY. Less >>>> that can go wrong. >>> >>> >>> >>> not possible but you can access the outputfilename at the tex and lua e= nd >> >> >> What do mean with that? > > > just grep for outputfile in lua and mkiv files I have now (I need to use jobfilename, because I get an error when I use outputfilename): \def\outputfilename{\jobfilename -\getvariable{meta}{type}} \def\outputfilenametwo{\jobfilename -\getvariable{meta}{type}} When displaying outputfilenametwo I see that it is filled with the correct value, but the output is still written to the same file. -- Cecil Westerhof -- = Cecil Westerhof ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________