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=figure1.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’t 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=4cm,height=4cm,color=blue] \stopTEXpage \stopbuffer \savebuffer[list=figure-1,file=figure-1.tex,prefix=no] % process the external file at runtime \starttext \placefigure{External file}{\typesetfile[figure-1]} \stoptext Wolfgang