Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. With[{myCell =
  2. Cell[BoxData[
  3. RowBox[{ToBoxes[
  4. Text[Style["My banner", 24, Italic, FontFamily -> "Times",
  5. Background -> Yellow]]]}]], "DockedCell"]},
  6. nb = NotebookCreate[
  7. ScreenStyleEnvironment -> "SlideShow",
  8. DockedCells ->
  9. Dynamic[If[
  10. CurrentValue[EvaluationNotebook[], ScreenStyleEnvironment] ===
  11. "SlideShow",
  12. {Inherited, myCell}, myCell]]]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement