[OS X TeX] PrettyRef

Herb Schulz herbs at wideopenwest.com
Thu Mar 10 22:06:22 CET 2005


On 3/10/05 2:07 PM, "Sergei Mariev" <serguei.mariev at campus.lmu.de> wrote:

> I think I know the problem. I am working on a critical edition where
> I use hundreds (if not thousands) crossreferences. Thinking up a new
> lable is quite hard, and it is even harder to remember if you have
> already used the label or not, to avoid multiple labels. What I did
> in my dissertation was to write a perl script which generates random
> labels. Every time it generates a new label, it appends it to file.
> Every time it generates a lable itfirst  looks into the file to see
> if this number has been in use. Then I wrote a macro in the TexShop
> which asks the perl script to generate a label and pastes it at the
> current cursor position. This way I can generate a new label without
> thinking much about it and I know that this lablel is unique. Is this
> something you are looking for?
> 
> Regards,
> 
> sergei mariev
> 

Howdy,

If the labels are going to be meaningless then why do you have to generate
them randomly? Just use some simple algorithm and then you only need to keep
track of the last one you generated. In English why not
a,...,z,aa,...,az,ba,...,bz,... ?

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list