From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82241 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: TEXpage filename Date: Wed, 1 May 2013 23:02:48 +0200 Message-ID: <32A90BEC-D99D-424B-9E1F-87887A13D31F@gmail.com> References: <20130501121645.561d2d21@iram-hb-003386.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367442188 5435 80.91.229.3 (1 May 2013 21:03:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 21:03:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 01 23:03:07 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 1UXeB8-0006Ry-Fh for gctc-ntg-context-518@m.gmane.org; Wed, 01 May 2013 23:03:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0DF9101E9; Wed, 1 May 2013 23:03:05 +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 oPDcqdUh+jVS; Wed, 1 May 2013 23:03:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 08AB0101EC; Wed, 1 May 2013 23:03:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B67C101EC for ; Wed, 1 May 2013 23:02:58 +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 9bwyWnDrOdE8 for ; Wed, 1 May 2013 23:02:54 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 58A56101E9 for ; Wed, 1 May 2013 23:02:44 +0200 (CEST) Original-Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r41L2hrU026107 for ; Wed, 1 May 2013 23:02:43 +0200 Original-Received: by mail-ee0-f53.google.com with SMTP id d17so791981eek.26 for ; Wed, 01 May 2013 14:02:43 -0700 (PDT) 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=baMSghK2x81O3doC5+El3abP5HfvImkAtVuSEjVWe8U=; b=Y9PwB3Iom2DS8KGM9DvJ/FhYqSm65gEkoQRNjopcMK+uuEejNGfK8ApS9X0lmNrQ3z PQnM1hKITfGk1gFKZL83T/Qnhq4CNot4YYwja6lCHV2mNSAXQ8Np8ALmdM9ke7vxajB0 Csa7XfS0q4ASiu1QbwdRcYlJQo2Komw//4YO9M+lKmtc1S8nmgUGolp0MatQwOne2jlp qARgW7xxOBOCL76Hm1UgjBLMnUaUlNcMNDOaEe+CJcqPclBy/oebJbC/qo23wnYJdQ3T 8Wf/51jZwtTC+8RzB5KIK69WdFAmaV80nGU4FO+bo60WBlg/QNjPcpqW+gwdSngYxHPI soFg== X-Received: by 10.15.35.71 with SMTP id f47mr12411317eev.15.1367442163689; Wed, 01 May 2013 14:02:43 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbfbc2e.pool.mediaWays.net. [77.191.188.46]) by mx.google.com with ESMTPSA id r10sm5678913eez.10.2013.05.01.14.02.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 14:02:43 -0700 (PDT) In-Reply-To: <20130501121645.561d2d21@iram-hb-003386.extra.cea.fr> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.53; 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: 0QJuJ2HQl - 140ec41cae4a - 20130501 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:82241 Archived-At: Am 01.05.2013 um 12:16 schrieb Alan BRASLAU : > Hello, > = > In the production of (scientific) articles for journal submissions, > one is often expected to supply the figures as separate files. > = > One workflow can be through the use of \startTEXpage\stopTEXpage > followed by an external extraction of single pdf pages to separate > files. > = > However, is it possible or would it be possible to directly output to a > named file, as in: > \startTEXpage{figure1.pdf} > \stopTEXpage > or perhaps > \startTEXpage [file=3Dfigure1.pdf] > \stopTEXpage > ? (I could not find an answer looking at the source.) > = > One could then (optionally) reinclude the figure in a review copy of > the full text through the use of \externalfigure [figure1] You can put each graphic in a separate document and tell context to create a pdf with the \typesetfile command. Creating a new environment which does all of this itself isn=92t hard because most of the stuff which is needed can be seen in the example below. % the external file \startbuffer[figure-1] \startTEXpage \blackrule[width=3D4cm,height=3D4cm,color=3Dblue] \stopTEXpage \stopbuffer \savebuffer[list=3Dfigure-1,file=3Dfigure-1.tex,prefix=3Dno] % process the external file at runtime \starttext \placefigure{External file}{\typesetfile[figure-1]} \stoptext 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 ___________________________________________________________________________= ________