Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question
2  
It is a DockedCell. –  rm -rf Sep 26 '13 at 19:16
    
@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. –  Hector Sep 26 '13 at 19:23
2  
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. –  rm -rf Sep 26 '13 at 19:31

1 Answer 1

up vote 4 down vote accepted

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]]}]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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