Hi, I use 'texexec --batch --pages=1:2' and "Page \pagenumber\ of \totalnumberofpages". What I get is: "Page 1 of 1" and "Page 2 of 2". I of cause like to see: "Page 1 of 2". Any ideas how to get this? Tobias
Does "pagenumber\ of \lastpage" help? Thomas On Dec 7, 2005, at 11:16 AM, Tobias Burnus wrote:
Hi,
I use 'texexec --batch --pages=1:2' and "Page \pagenumber\ of \totalnumberofpages".
What I get is: "Page 1 of 1" and "Page 2 of 2". I of cause like to see: "Page 1 of 2".
Any ideas how to get this?
Tobias
Hi, Thomas A. Schmitz wrote:
Does "pagenumber\ of \lastpage" help? No: I still get "Page 1 of 1" and "Page 2 of 2"
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". Tobias
Tobias Burnus wrote:
Hi,
Thomas A. Schmitz wrote:
Does "pagenumber\ of \lastpage" help?
No: I still get "Page 1 of 1" and "Page 2 of 2"
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?) Hans
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);
Hi, Hans Hagen wrote: 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. Tobias
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
participants (3)
-
Hans Hagen
-
Thomas A. Schmitz
-
Tobias Burnus