From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82138 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: Is it possible to set the output file name in the script Date: Fri, 26 Apr 2013 22:24:15 +0200 Message-ID: <87fvydujkg.fsf@micropit.couberia.selfip.net> 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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1367007862 29321 80.91.229.3 (26 Apr 2013 20:24:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 20:24:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 26 22:24:26 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 1UVpBx-0007RO-78 for gctc-ntg-context-518@m.gmane.org; Fri, 26 Apr 2013 22:24:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 593A0101EE; Fri, 26 Apr 2013 22:24:24 +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 S5iwc-hJt3r2; Fri, 26 Apr 2013 22:24:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 85CED101E4; Fri, 26 Apr 2013 22:24:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1214F101E4 for ; Fri, 26 Apr 2013 22:24:21 +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 SFKrLfQUJemw for ; Fri, 26 Apr 2013 22:24:19 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D4AE0101E0 for ; Fri, 26 Apr 2013 22:24:19 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3QKOIE8029061 for ; Fri, 26 Apr 2013 22:24:19 +0200 Original-Received: from micropit.couberia.selfip.net ([2.2.9.149]) by mwinf5d31 with ME id UkQJ1l0083CvuJi03kQJuv; Fri, 26 Apr 2013 22:24:18 +0200 Original-Received: by micropit.couberia.selfip.net (Postfix, from userid 1000) id 42BFCA60BF1; Fri, 26 Apr 2013 22:24:15 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: (Cecil Westerhof's message of "Fri, 26 Apr 2013 21:49:33 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.130; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JsIoj2y - a77018c3cf03 - 20130426 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:82138 Archived-At: On Fri, Apr 26 2013, Cecil Westerhof wrote: > The following script does what I want: Or shorter: --8<---------------cut here---------------start------------->8--- #!/usr/bin/env bash context --result=cv-${1:-cecil} CV-Cecil-Westerhof --8<---------------cut here---------------end--------------->8--- In CV-Cecil-Westerhof.tex you can check the result file: --8<---------------cut here---------------start------------->8--- \starttext output file: \systemparameter{file} or \cldcontext{document.arguments.result} \stoptext --8<---------------cut here---------------end--------------->8--- > There is only one problem. If I first generate the default one and > after that a specific one, the default one does not exist anymore. A known bug: http://www.ntg.nl/pipermail/ntg-context/2008/035125.html You could add it to the tracker: http://tracker.luatex.org/ -- Peter ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________