Tag Info

New answers tagged

9

The purpose can be achieved with CellFrameLabels. Cell-expressions and Boxes can be used directly here, so styling can be done with StyleBox, alignment can be done with PanelBox etc. The counter mechanics is exact as Simon demonstrated in the linked Q/A in OP. Here is an example: cellFrameLabelFunc uses PanelBox with Alignment to align label lbl from left ...


2

Ok so I fixed it: Cell[StyleData[StyleDefinitions -> "Default.nb"], CellMargins->{{21, 3}, {4, 4}}] Cell[StyleData[All], ShowGroupOpener->False, FontFamily->"Avenir"] Cell[StyleData["Title"], CellMargins->{{10, 3}, {4, 4}}, FontColor-> RGBColor[0,0.0,0.6], CellGroupingRules->{"SectionGrouping", 9}] Cell[StyleData["Section"], ...


1

This is not a full response, but I have some info that might be helpful. The subsection issue is caused by the Stylesheet entry for Subsubsection, changing it to the default of 50 should fix it, or anything >40. Cell[ StyleData["Subsubsection"], CellGroupingRules -> {"SectionGrouping", 50} ] The issue is that the default for SectionGrouping ...


2

You have 3 separate definitions for "Output" so only the first one will be used therefore the 2nd and 3rd that contain the dingbat and background are ignored. SetOptions[EvaluationNotebook[], StyleDefinitions -> Notebook[{ Cell[StyleData[StyleDefinitions -> "Default.nb"]], Cell[StyleData[All, "Printout"], ShowCellLabel -> False], ...


2

Syntax highlighting is controlled by the ShowAutoStyles option for Cells. But for inline cells with style "Input" syntax highlighting does not work. Manual addition of the option ShowAutoStyles -> True does not help. Moreover, even for inline cells with style "Input" placed inside of an Input cell syntax highlighting does not work. So the conclusion is ...


3

The Mathematica equivalent of a LaTeX environment is called a cell style. You will need to define a new cell style in your notebook, or better yet, define a new stylesheet with having your new style as one its styles. I found google-ing on site:mathematica.stackexchange.com notebook styles turned up a number of relevant discussions on building stylesheets. ...


2

I don't think so. Syntax highlighting is a property peculiar to input cells and doesn't pertain to a StyleBox, which is what your get when you apply the style Input to a selection made in a text cell.


2

Use the Option Inspector to change the DefaultNewCellStyle to Input in your stylesheet notebook.


5

The FE always opens the stylesheet named in the DefaultStyleDefinitions option at the global level. In certain failsafe cases, it will fall back to this stylesheet if style definitions can't be found anywhere else. The one case I know for certain(*) where this happens is if the FE followed a stylesheet chain all the way to the end looking for stylename, ...



Top 50 recent answers are included