[NTG-context] \totalnumberofpages & texexec --pages=1:2
Hans Hagen
pragma at wxs.nl
Wed Dec 7 17:03:33 CET 2005
Tobias Burnus wrote:
> Hi,
>
> Hans Hagen wrote:
>
>>> I tried now:
>>> texexec --texutil --runs=2 --batch --pages=1:2
>>> which runs only once (= tex once and then texutil once).
>>>
>>> If one then manually runs texexec again (same options) it finally
>>> shows "Page 1 of 3".
>>
>>
>> so there is a problem with your file (missing structure?)
>
> Well, the problem is that the file is longer (e.g. three pages with a
> long less interesting log) than I want to have it (one sheet/2 pages);
> thus I use --pages=1:2, which seems to interfer with multiple runs
> (--pages seems to cause an implicit --once).
> Otherwise, if I run without --pages it works fine.
in that case:
\the\numexpr\lastpage-2\relax
may help
Hans
More information about the ntg-context
mailing list