2
$\begingroup$

If one picks the menu option Format->Edit Stylesheet and then one opens the "Default.nb" link, the newly opened notebook has a header that reads "Deafult.nb" style definitions. In one navigates down in the page, that header stays in place. However, none of the header styles defined in Default.nb produce that specific header.

What is the style to produce that type of static header? What are the menu commands (if any) to dock cells?

$\endgroup$
  • 2
    $\begingroup$ It is a DockedCell. $\endgroup$ – rm -rf Sep 26 '13 at 19:16
  • $\begingroup$ @rm-rf: I selected the cell, pressed Ctrl+Shit+E, changed the cell style to DockedCell, pressed Ctrl+Shift+E again. The cell did change the style but it does not stay docked. On second thought, there must be more to it that changing the style. Somehow, it must be specified to the notebook (Options maybe). I have edited the question. $\endgroup$ – Hector Sep 26 '13 at 19:23
  • 2
    $\begingroup$ It's not a style (well, kind of), but an option to the notebook. The docs for DockedCells has a simplified example and there are some more examples here. $\endgroup$ – rm -rf Sep 26 '13 at 19:31
6
$\begingroup$

When you find a notebook with a docked cell evaluate

Options[EvaluationNotebook[], DockedCells]

to see what has been added to the docked cell option. Please read the docs and the link @rm -rf provided but a quick way to add a docked cell:

SetOptions[EvaluationNotebook[], 
 DockedCells -> {ToBoxes@
    Pane["Final Episode of Breaking Bad. Check your local guides", 
     BaseStyle -> Directive[FontFamily -> "arial", 16]]}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.