On 12/25/2021 12:22 PM, Marco Patzer via ntg-context wrote:
On Sat, 25 Dec 2021 11:55:31 +0100
Hans Hagen <j.ha...@xs4all.nl> wrote:
>mtxrun --autogenerate --script context --autopdf "oeps.tex"
....
mkiv lua stats > runtime: 0.485 seconds, 1 processed pages, 1
shipped pages, 2.062 pages/second
mtx-context | fatal error: return code: 1
so ... an error ... that's the most i can do
I did some more checking. It seems to return 1 on *some* errors, but
not on all the ones supported by --errors. This example e.g.
compiles with return code 0:
%% enables logging of errors
\enabledirectives [logs.errors]
%% missing font
\definefontfamily [foo] [serif] [no font here really]
\setupbodyfont [foo]
\starttext
%% missing characters
𝒜
%% missing figure
\externalfigure [foo]
%% missing references
See \in{section}[sec:none].
\stoptext
because these are not errors in the sense of 'quit' ... for instance
missing references can be resolved in a second run
you need to be explicit:
\enabledirectives [logs.errors={missing references,missing characters}]
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________