Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: How to make style sheet with header

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109193] Re: How to make style sheet with header
  • From: Simon <simonjtyler at gmail.com>
  • Date: Fri, 16 Apr 2010 05:52:24 -0400 (EDT)
  • References: <hq0mq2$k0l$1@smc.vnet.net> <hq413l$3b2$1@smc.vnet.net>

It was pointed out to me that the code I sent last time got garbled...
hopefully this is a bit better:

SetOptions[EvaluationNotebook[],
 DockedCells -> Cell[BoxData[GridBox[{{"Left", "Centered Title",
"Right"}}]],
   GridBoxOptions -> {GridBoxAlignment -> {"Columns" -> {{Left,
Center, Right}}},
     GridBoxItemSize -> {"Columns" -> {Scaled[0.15], Scaled[0.70],
Scaled[0.15]}}},
   "Title", FontSize -> 10, CellSize -> {100, 18}, Background ->
LightBlue,
   CellMargins -> {{0, 0}, {0, 0}}, CellTags -> "DockedTitle"]]

Simon

On Apr 14, 5:15 pm, Simon <simonjty... at gmail.com> wrote:
> Hi Jason,
>
> This one is easy when you know how.  It is controlled by a notebook
> option called DockedCells.  This can be set up in the stylesheet, like
> in the "Confidential Report" style -- or on the notebook level using,
> eg, SetOptions.  Also see the example in the help files for
> DockedCells.
>
> Here's an example that will give you a left, centered and right object
> in a docked Title cell:
> SetOptions[EvaluationNotebook[],DockedCells->Cell[BoxData[GridBox[{{ "Lef=
t","Centered Title"   ,"Right" }}]],
>
>     GridBoxOptions->{GridBoxAlignment->{"Columns"->{{Left,Center,Righ=
t}}},GridBoxItemSize->{"Columns"-
> >{Scaled[0.15],Scaled[0.70],Scaled[0.15]}}}, "Title",FontSize->10,
>
> CellSize -> {100, 18}, Background -> LightBlue, CellMargins -> {{0,
> 0}, {0, 0}}, CellTags -> "DockedTitle"]]
>
> For use in all of your companies notebooks, you should probably set up
> a company stylesheet.   Look at the one for "Confidential Report" to
> see how it is done.
>
> Hope that helps,
>
> Simon
>
> On Apr 13, 11:01 am, eba... at illinois.edu wrote:
>
> > I have been trying unsuccessfully to make a style sheet with a
> > header. I am not talking about a header that appears when you
> > print the notebook. I am talking about a header that is on the
> > notebook itself.
> > An example of what I am talking about is the "Confidential Report"
> > style sheet that is available with Mathematica. It says
> > "Confidential" at the top, and you can't just delete or close it.
>
> > I would like a header for use in my company, where all company
> > notebook files would have the company logo as a header on top.
>
> > Thanks all,
> > Jason Ebaugh



  • Prev by Date: Re: Locator appearance
  • Next by Date: Re: How to make style sheet with header
  • Previous by thread: Re: How to make style sheet with header
  • Next by thread: Re: How to make style sheet with header