From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68985 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Context.exe and --result=... Date: Wed, 08 Jun 2011 16:04:31 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307541912 7673 80.91.229.12 (8 Jun 2011 14:05:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 14:05:12 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 08 16:05:04 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUJNY-0007jV-93 for gctc-ntg-context-518@m.gmane.org; Wed, 08 Jun 2011 16:05:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39C4CCAD99; Wed, 8 Jun 2011 16:05:02 +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 3E2nYDgA-tgJ; Wed, 8 Jun 2011 16:04:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3436BCAD72; Wed, 8 Jun 2011 16:04:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDAB7CAD72 for ; Wed, 8 Jun 2011 16:04:57 +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 ZpNPc6ggbayX for ; Wed, 8 Jun 2011 16:04:45 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id AD494CAD55 for ; Wed, 8 Jun 2011 16:04:45 +0200 (CEST) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p58E4ip4016651 for ; Wed, 8 Jun 2011 16:04:45 +0200 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Wed, 8 Jun 2011 16:04:42 +0200 User-Agent: Opera Mail/11.11 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xERq4IMd - d419029f0f4d - 20110608 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68985 Archived-At: Hello, I have the following situation. One source file is to be converted by Ctx normally and secondly with a spec= ial mode, e.g. "--mode=3DPageOneOnly". I'd like to get two result with: (1) Context.exe source.mkiv -> should give 'Source.pdf', (2) Context.exe source.mkiv --mode=3DPageOneOnly --result=3DSource-Pg1.pdf = -> to give 'Source-Pg1.pdf'. The problem is that the option "--result=3D..." just renames the result; it= means, if the 'Source.pdf' has been created by (1), it would be OVERWRITTE= N by (2), as (2) normally processes 'source.mkiv' to 'source.pdf' in the fi= rst phase and renames it after. So the question is - is there a better way which would PRESERVE the .= pdf if .mkiv is to be processed and '--result=3D' is be= ing used? Or (question for developers) - wouldn't be better to work directly with an = output stream(s) name based on '--result=3D...' option, and to take the sou= rce file name for the output stream name ONLY in case that '--result=3D...'= was not specified? (This would also mean to create other support file(s), like 'Source-Pg1.log= ', 'Source-Pg1.tuc' - IMHO this would be OK.) Best regards, Lukas -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________