Re: How to make style sheet with header
- To: mathgroup at smc.vnet.net
- Subject: [mg109154] Re: How to make style sheet with header
- From: Simon <simonjtyler at gmail.com>
- Date: Wed, 14 Apr 2010 05:15:41 -0400 (EDT)
- References: <hq0mq2$k0l$1@smc.vnet.net>
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... 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