From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TEXpage filename
Date: Wed, 1 May 2013 16:16:07 +0200 [thread overview]
Message-ID: <CAF=dkzx3Qnc5d6a7U5gLqNii7SJ9j8Lww31=-xR-+1uWk+RzGw@mail.gmail.com> (raw)
In-Reply-To: <20130501121645.561d2d21@iram-hb-003386.extra.cea.fr>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-05-01 14:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 10:16 Alan BRASLAU
2013-05-01 14:16 ` Sietse Brouwer [this message]
2013-05-01 21:11 ` Alan BRASLAU
2013-05-01 21:02 ` Wolfgang Schuster
2013-05-02 6:44 ` Wolfgang Schuster
2013-05-04 11:50 ` Alan Bowen
2013-05-04 16:00 ` Wolfgang Schuster
2013-05-05 12:27 ` Alan Bowen
2013-05-05 12:39 ` Thomas A. Schmitz
2013-05-08 12:00 ` Alan Bowen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAF=dkzx3Qnc5d6a7U5gLqNii7SJ9j8Lww31=-xR-+1uWk+RzGw@mail.gmail.com' \
--to=sbbrouwer@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).