The following code (found here on stack exchange) creates a docked cell which contains a slider that can be used to change the magnification of the entire notebook.
SetOptions[EvaluationNotebook[],
DockedCells ->
Cell[BoxData[
ToBoxes[DynamicModule[{m = 1},
Slider[Dynamic[m,
SetOptions[EvaluationNotebook[],
Magnification -> (m = #)] &], {0.5, 2.0}]]]], "DockedCell"]]
I would like to modify this to a slider that controls the magnification of the output cells only. Everything else in the document should remain the same.
I'm not sure how to isolate the cells with "Output" style only. Any ideas?
Slider[...]
toSlider[Dynamic[ m, (NotebookFind[EvaluationNotebook[], "Output", All, CellStyle]; SetOptions[NotebookSelection[], Magnification -> (m = #)]; SelectionMove[EvaluationNotebook[], Before, Notebook]) &], {0.5, 2.0}]
? $\endgroup$NotebookInformation
. $\endgroup$