From: Albert Retey on
Am 13.04.2010 05:01, schrieb ebaugh(a)illinois.edu:
> 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.

What you are looking for is the option DockedCells that you can set at
Stylesheet level. If you create a new notebook, give it the confidential
report style and evaluate:

CurrentValue[EvaluationNotebook[], DockedCells]

to see the corresponding cell expression. To include it into a
stylesheet you would add a DockedCells option at notebook level.

Note that it is very well possible to remove such headers, just evaluate
the following in a notebook with confidential report style to delete the
header:

SetOptions[EvaluationNotebook[], DockedCells -> {}]


hth,

albert

From: Simon on
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[{{ "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"]]

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...(a)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


From: Murray Eisenberg on
Could you try resending the Input cell shown below. It is obviously
garbled, as a number of lines end with a hyphen (and, strangely,
continuation lines begin with a double-level e-mail reply symbol >> ).

On 4/14/2010 5:15 AM, Simon 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[{{ "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"]]
>
> 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...(a)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
>
>

--
Murray Eisenberg murray(a)math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305

From: Simon on
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...(a)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...(a)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