[metapost] nonstopmode interaction
Taco Hoekwater
taco at elvenkind.com
Thu Oct 13 16:24:39 CEST 2011
On 10/13/2011 04:14 PM, Troy Henderson wrote:
> Is it possible to keep processing a MetaPost file even when errors
> occur? For example, consider the following code:
>
> prologues:=3;
> verbatimtex
> %&latex
> \documentclass{minimal}
> \begin{document}
> etex
> beginfig(0);
> draw origin--(144,0) dashed evenly;
> label.top(btex Hello etex,origin);
> label(btex $x axis etex,origin);
> label.bot(btex World etex,origin);
> endfig;
> end
>
> Notice that the second label command has intentionally been made to
> cause an error. Is there an interaction mode that will allow the draw
> command and the two error-free label commands to be processed so that
> the resulting figure shows all but the second label?
No. All labels are collected into a single TeX input file that is then
processed, and the return value of that run is used to decide the
validity of all labels.
Best wishes,
Taco
More information about the metapost
mailing list