MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: CounterBox[] & CounterFunction[] & DingBat

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111448] Re: CounterBox[] & CounterFunction[] & DingBat
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Mon, 2 Aug 2010 07:02:34 -0400 (EDT)

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 at wolfram.com
User Interface Group
Wolfram Research, Inc.


  • Prev by Date: Re: AxesLabel parallel to 3D axes?
  • Next by Date: Re: Kernels dying on parallel code
  • Previous by thread: CounterBox[] & CounterFunction[] & DingBat
  • Next by thread: classroom combinatorics