Hi Paul,
I have a formatting question. I have created some authoring tools for myself for lectures. I have created code following in the footsteps of Eric Schulz in this video here. It's taken be awhile to work through it, but I now have most of the tools I need to create my lectures and modify the format using a stylesheet in an effective and efficient way.
However, I do have a question regarding auto numbering. I've managed to create a palette that prints out '"Example" + (number)'. It works perfectly. Here it is...
ActionMenu["Boxes", {
"Example" :> {SelectionMove[InputNotebook[], After, Cell],
NotebookWrite[InputNotebook[],
Cell[
TextData[{StyleBox["Example ", "ExampleFont"],
StyleBox[CounterBox["ItemNumbered"], "ExampleFont"], "\t",
StyleBox["Title", FontWeight -> "Bold"], "\nContent"}],
"Example"], After],
SelectionMove[InputNotebook[], Previous, Cell],
SelectionMove[InputNotebook[], Before, CellContents],
SelectionMove[InputNotebook[], Next, Word, 2],
SelectionMove[InputNotebook[], All, Word]}},
ImageSize -> Full]
It uses the numbering I created in my stylesheet. My only concern is that if I change my palette code above to something else like "Example" + (number)+ (some text)' then I'll have to go back and change every notebook to include the extra 'some text'. In other words I have to decide right now what all of my Example cells are going to look like. I'm wondering if there is a way to create a stylesheet that includes the text '"Example" + (number)'. Then if I wanted to make changes later on down the road I can just change this part of the stylesheet. In other words... can stylesheets be used to include actual text as well as styles?
I hope I made this clear. I am a fairly new, so I apologize if this is a dumb question. I do learn quick though. : )
Mike
Btw... I am very much enjoying your book Paul. I was the one that spoke with you about using 10.1 with your Mathematica book. You very quickly updated your resources to your book to include compatibility with 10.1. Thank you!