For slide show, the default cell style (when it is created) is Text
. However, I would like to change that default style to Input
. How can I change this?
-
$\begingroup$ Ah, it seems you are using Journal stylesheet or something. $\endgroup$– Kuba ♦May 10, 2016 at 12:55
1 Answer
Quick fix is to use
SetOptions[ EvaluationNotebook[], DefaultNewCellStyle -> "Input"]
if you want to restrict changes only to SlideShow
environment put or edit your stylesheet with:
Cell[StyleData["Notebook","SlideShow"],
DefaultNewCellStyle->"Section"
]
assuming your StyleDefinitions
are in form of a _String/FileName
not a Notebook
you can set DefaultNewCellStyle
for given environment:
SetOptions[
EvaluationNotebook[],
StyleDefinitions - >Notebook[{
Cell[StyleData[StyleDefinitions -> CurrentValue[
EvaluationNotebook[],StyleDefinitions]
]],
Cell[StyleData["Notebook","SlideShow"],
DefaultNewCellStyle->"Section"
]
}]
]
Evaluate it in that notebook or replace EvaluationNotebook[]
with a _NotebookObject
pointing to your notebook.
-
$\begingroup$ This doesn't seem to be working (and it seems to mess up the font styles etc in my current slide show). The comment that you posted under my question did work. Why did you delete it? Please put it back. $\endgroup$ May 10, 2016 at 14:29
-
-