MathGroup Archive 2005

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

Search the Archive

Re: Text Manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58038] Re: Text Manipulation
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Thu, 16 Jun 2005 06:43:56 -0400 (EDT)
  • References: <d8jm1p$t2h$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Garry Helzer wrote:
> I spend a lot of time using Input > Create Automatic Numbering  
> Object . . .  to create references of the form : Proposition 3.7.9.  
> The relevant part of the cell expression is something like
> 
> TextData[{
>    "Propostion\[NonBreakingSpace]",
> 
>    CounterBox["Title", "foo"],
>    ".",
> 
>    CounterBox["Section", "foo"],
>    ".",
> 
>    CounterBox["Proposition", "foo"]
> }]
> 
> Here "foo" is a cell label and "Proposition" is a defined cell style.
> 
> I would like a more efficient way to do this. What I have in mind is  
> something like a function propref["foo"] which when evaluated in  
> place changes to Proposition 3.7.9, or a button, or a palette, or  
> something.
> 
> Any suggestions of the best way to go about this?
> 
> Garry Helzer
> gah at math.umd.edu
> 
Hello,

This question is a bit vague, but I think you might find CellPrint 
useful - you can create a cell with any structure you like.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: For Loop and Array related
  • Next by Date: Re: How to rotate a PolarPlot?
  • Previous by thread: Re: Text Manipulation
  • Next by thread: Write/WriteString -- writing delimited txt to a stream?