ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \totalnumberofpages & texexec --pages=1:2
@ 2005-12-07 10:16 Tobias Burnus
  2005-12-07 10:58 ` Thomas A. Schmitz
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2005-12-07 10:16 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \totalnumberofpages & texexec --pages=1:2
  2005-12-07 10:16 \totalnumberofpages & texexec --pages=1:2 Tobias Burnus
@ 2005-12-07 10:58 ` Thomas A. Schmitz
  2005-12-07 13:04   ` Tobias Burnus
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas A. Schmitz @ 2005-12-07 10:58 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 333 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 1582 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \totalnumberofpages & texexec --pages=1:2
  2005-12-07 10:58 ` Thomas A. Schmitz
@ 2005-12-07 13:04   ` Tobias Burnus
  2005-12-07 13:49     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2005-12-07 13:04 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \totalnumberofpages & texexec --pages=1:2
  2005-12-07 13:04   ` Tobias Burnus
@ 2005-12-07 13:49     ` Hans Hagen
  2005-12-07 14:10       ` Tobias Burnus
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2005-12-07 13:49 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \totalnumberofpages & texexec --pages=1:2
  2005-12-07 13:49     ` Hans Hagen
@ 2005-12-07 14:10       ` Tobias Burnus
  2005-12-07 16:03         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Burnus @ 2005-12-07 14:10 UTC (permalink / raw)


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.

Tobias

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \totalnumberofpages & texexec --pages=1:2
  2005-12-07 14:10       ` Tobias Burnus
@ 2005-12-07 16:03         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2005-12-07 16:03 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-07 16:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-07 10:16 \totalnumberofpages & texexec --pages=1:2 Tobias Burnus
2005-12-07 10:58 ` Thomas A. Schmitz
2005-12-07 13:04   ` Tobias Burnus
2005-12-07 13:49     ` Hans Hagen
2005-12-07 14:10       ` Tobias Burnus
2005-12-07 16:03         ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).