Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4451

Re: setting header options in another nb with code

From Armand Tamzarian <mike.honeychurch@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: setting header options in another nb with code
Date 2011-08-18 07:25 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j2ieor$bl5$1@smc.vnet.net> (permalink)
References <j2g39s$1fe$1@smc.vnet.net>

Show all headers | View raw


On Aug 17, 7:57 pm, Phil Hammond <p...@hammondo.org> wrote:
> In a Notebook I have:
>
> nb = CreateDocument[]
>
> and then:
>
> SetOptions[nb, FirstPageHeader -> True, FirstPageFooter -> True,
>  PageHeaders -> {{Cell[quizDate, 14], Cell[teacher, 14],
>     Cell[hdrName, 14]}, {Cell[hdrName, 14], Cell[teacher, 14],
>     Cell[quizDate, 14]}}]
>
> where quizDate, teacher, and hdrName are Strings to be placed left,
> center, right in the header.
>
> The target nb gets the Strings in the right places in the header, but
> their font size is not 14. Also, the first page header is unset.
>
> Help please?? Thanks-

Try this:

SetOptions[nb,
  PrintingStartingPageNumber -> 1,

  PageHeaders -> {{Cell[quizDate, FontSize -> 14],
     Cell[teacher, FontSize -> 14],
     Cell[hdrName, FontSize -> 14]}, {Cell[hdrName, FontSize -> 14],
     Cell[teacher, FontSize -> 14], Cell[quizDate, FontSize -> 14]}},

  PageFooters -> {{None, None, None}, {None, None, None}},
  PrintingOptions -> {
    FirstPageHeader -> True,
    FirstPageFooter -> True}];


Mike

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

setting header options in another nb with code Phil Hammond <phil@hammondo.org> - 2011-08-17 09:57 +0000
  Re: setting header options in another nb with code Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-08-18 07:25 +0000

csiph-web