Prev: A question about string patterns
Next: Mathematica- Use a previous equation into the function Function
From: Scot T. Martin on 1 Aug 2010 04:57 I want to get a label like "B.i" for a cell. It seems I can only get "ii.i" or "B.A." That is, I cannot mix CounterFunction[] types. I didn't find much in the documentation on this. Anyone know how to do it? Here is an example of the cell expression: Cell[TextData[StyleBox["Instantaneous Drag Force", FontSlant->"Italic"]], "Subsubsubsection", CellChangeTimes->{3.4895729829194045`*^9}] On the StyleSheet for "Subsubsubsection": CellDingBat->Cell[TextData[{CounterBox["Subsubsection"], ".", CounterBox["Subsubsubsection"], "."}], CellSize -> {32, Inherited}, TextAlignment -> Right] CounterFunction->RomanNumeral
From: John Fultz on 2 Aug 2010 07:02
On Sun, 1 Aug 2010 04:57:55 -0400 (EDT), Scot T. Martin wrote: > I want to get a label like "B.i" for a cell. It seems I can > only get "ii.i" or "B.A." That is, I cannot mix CounterFunction[] types. I > didn't find much in the documentation on this. Anyone know how to do it? > > Here is an example of the cell expression: > > Cell[TextData[StyleBox["Instantaneous Drag Force", FontSlant->"Italic"]], > "Subsubsubsection", CellChangeTimes->{3.4895729829194045`*^9}] > > > On the StyleSheet for "Subsubsubsection": > > CellDingBat->Cell[TextData[{CounterBox["Subsubsection"], ".", > CounterBox["Subsubsubsection"], "."}], CellSize -> {32, Inherited}, > TextAlignment -> Right] > > CounterFunction->RomanNumeral The CounterFunction option can be passed directly to the CounterBox. So, any individual counter can use any counter function you like. Sincerely, John Fultz jfultz(a)wolfram.com User Interface Group Wolfram Research, Inc. |