MathGroup Archive 2010

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

Search the Archive

Re: automatically include automatic numbering in a

  • To: mathgroup at
  • Subject: [mg111578] Re: automatically include automatic numbering in a
  • From: Murray Eisenberg <murray at>
  • Date: Fri, 6 Aug 2010 06:56:19 -0400 (EDT)

At this point I'm not asking for anything that fancy. My primary request 
is a way to create a cell style that automatically inserts the automatic 
numbering option.

And a secondary request is to include automatically some boiler-plate 
within the cell when it is created.

This is not to deny the utility of a hook into a database of examples or 
exercises, or whatever.

On 8/4/2010 5:50 AM, David Park wrote:
> What is really needed is a method, perhaps in Workbench, for users to design
> their own paclet data structures. Then you could build a data file of
> exercises, a data file of citations you might use, and other personally
> useful data files.
> Then you could, for example, draw randomly from an exercise file, number
> them, format them differently if you wish and maybe do some processing such
> as selecting random values and computing the answers on the side.
> David Park
> djmpark at
> From: Murray Eisenberg [mailto:murray at]
> I have a cell style, Exercise, in a style sheet that's just a variant of
> Text style. Its definition includes option CounterIncrements->"Exercise".
> That style sheet is applied to a notebook where I'm going to use that
> style. Three questions:
> (1) Is there some way of automatically having the number appear at the
> beginning of any such cell when I create it -- without using menu item
> Insert>  Automatic Numbering.
> (2) Is there some way of automatically having such a cell begin with the
> text "Exercise"?
> (3) Is there some way of automatically having such a cell begin with
> "Exercise n. " where n is an actual automatic numbering counter value?

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Suggestions
  • Next by Date: Re: Can't get Mathematica to evaluate correctly a
  • Previous by thread: Re: Suggestions
  • Next by thread: Rearrange equation II