Re: Header/Footer settings in StyleSheets
- To: mathgroup at smc.vnet.net
- Subject: [mg16819] Re: Header/Footer settings in StyleSheets
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Tue, 30 Mar 1999 02:35:19 -0500
- Organization: University of Western Australia
- References: <7ct7da$8b5@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Johan Gunnarsson wrote:
> Headers and footers can be specified by e.g., the Option Inspector
> and the values stored for each notebook.
>
> How can I make this settings from a StyleSheet?
>
> Or in other words.
>
> How to make notebook option settings dependent on which
> stylesheet I use?
If you have a look at, say, the Default StyleSheet, Default.nb, and
unformat (Format | Show Expression) the Notebook Style you will see that
the PageHeaders are listed:
Cell[StyleData["Notebook"],
PageHeaders->{{Cell[
TextData[ {
CounterBox[ "Page"]}], "PageNumber"], None, Cell[
TextData[ {
ValueBox[ "FileName"]}], "Header"]}, {Cell[
TextData[ {
ValueBox[ "FileName"]}], "Header"], None, Cell[
TextData[ {
CounterBox[ "Page"]}], "PageNumber"]}},
CellFrameLabelMargins->6,
StyleMenuListing->None]
Editing this cell can do what you want.
Cheers,
Paul
____________________________________________________________________
Paul Abbott Phone: +61-8-9380-2734
Department of Physics Fax: +61-8-9380-1014
The University of Western Australia
Nedlands WA 6907 mailto:paul at physics.uwa.edu.au
AUSTRALIA http://www.physics.uwa.edu.au/~paul
God IS a weakly left-handed dice player
____________________________________________________________________