MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: CounterBox and ValueBox

  • To: mathgroup at
  • Subject: [mg43109] Re: [mg42934] CounterBox and ValueBox
  • From: Omega Consulting <info at>
  • Date: Tue, 12 Aug 2003 04:43:20 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

At 01:04 AM 8/5/2003, Oliver Friedrich wrote:
>if I want to setup a footer like "Page xx of yy", xx is CounterBox["Page"]
>but which object stands for yy. Where do I get the number of pages of a
>Thank you
>Oliver Friedrich

See our ezine on counters:

As you note, there is a Page counter. Just like all counters, there is a 1 
argument form (which gives the current counter value) and a 2 argument form 
(which gives the counter value at a given CellTag).

So go to the last cell of your notebook and give that a CellTag (say 
LastCell). Then, use CounterBox["Page", "LastCell"] in your footer.

Omega Consulting
"The final answer to your Mathematica needs"

  • Prev by Date: X-windows display of Mathematica graphics run remotely on Mac OS X machine
  • Next by Date: Re: Locating errors
  • Previous by thread: CounterBox and ValueBox
  • Next by thread: Mathematica fonts