From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82224 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: TEXpage filename Date: Wed, 1 May 2013 16:16:07 +0200 Message-ID: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1367417812 5575 80.91.229.3 (1 May 2013 14:16:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 14:16:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 01 16:16:53 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 1UXXq1-0000k1-2R for gctc-ntg-context-518@m.gmane.org; Wed, 01 May 2013 16:16:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90028101EE; Wed, 1 May 2013 16:16:52 +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 7zZZsA+BZHln; Wed, 1 May 2013 16:16:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E8310101E6; Wed, 1 May 2013 16:16:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16778101E6 for ; Wed, 1 May 2013 16:16:49 +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 JEB0bbE+Zfe6 for ; Wed, 1 May 2013 16:16:48 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 2A5D3101E5 for ; Wed, 1 May 2013 16:16:38 +0200 (CEST) Original-Received: from mail-ea0-x233.google.com (mail-ea0-x233.google.com [IPv6:2a00:1450:4013:c01::233]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r41EGbOh031733 for ; Wed, 1 May 2013 16:16:37 +0200 Original-Received: by mail-ea0-f179.google.com with SMTP id h10so659282eaj.38 for ; Wed, 01 May 2013 07:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=om/ogtvbrXm+zMDgo3AwqULUzpO9PHL2Ck4v6iMyHBs=; b=HZmkZUR2LTLbzZNozJS+9TLU1Ph2QB2n/cMV+JDzaWBRqRM9L5qIZfgIbi4YZEkJav JQcLNlYkuAcMcNBjfRd97Mc2NdWbxAoVS15081Hp3ohS3tfmOIT3kQxQVJNwMgyvaB1W NwrZ8qq9zALEZWu9WKBL+0biEuyfo6sZ68QwC/EeLK4LPPYM6EbmhsYzyngfUDvz4lq/ 4wNlxpogJam4zcj4hlkr/ABedSB9rNUmMpKmn5CUvA24eByOVwxElFfkkl6ylZ+bhUyj n0H3JPNooGBEmxnZwLaRbVRL3EVkBR0xnizko2mzj/KtJvkJ4XbneKMVyjfkcGm19Syp Qe4w== X-Received: by 10.15.27.195 with SMTP id p43mr8696039eeu.8.1367417797172; Wed, 01 May 2013 07:16:37 -0700 (PDT) Original-Received: by 10.15.110.3 with HTTP; Wed, 1 May 2013 07:16:07 -0700 (PDT) In-Reply-To: <20130501121645.561d2d21@iram-hb-003386.extra.cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JuCgBEX - b7c1798131c9 - 20130501 (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:82224 Archived-At: Alan wrote: > 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. It might be easier to place the figure code in a separate file, with some conditional code: * if the figure file is being compiled directly, execute a \startTEXpage ... \stopTEXpage at start and end * if the figure file is not the compilation target, i.e. it is being \input, skip the \startTEXpage and just include the figure code. The MWE below *ought* to work, but it doesn't, and I can't get it debugged. Perhaps \doifinputfileelse and \input don't play well together? Assistance welcome! Cheers, Sietse %%%% mwe-mode-text.tex % 2013-05-01 \doifinputfileelse{mwe-mode-text.tex}{ \startTEXpage This is standalone compilation: \jobname }{\relax} \placefigure[][fig:cow] {This is a cow} {\externalfigure[cow]} \doifinputfileelse{mwe-mode-text.tex}{ \stopTEXpage }{\relax} %%%% mwe-mode-text-parent.tex \setuppapersize[A6] \starttext \section{Hello hello} \input mwe-mode-text \jobname \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________