[OS X TeX] TeXShop features, AppleScripting

Norm Gall ngall at ucalgary.ca
Fri Jun 25 00:50:40 CEST 2004

On 24 Jun 2004, at 06:52, Maarten Sneep wrote:

> On 23 jun 2004, at 18:13, Kannan Moudgalya wrote:
>> A related question: I always feel uneasy when I have to come up with 
>> label
>> numbers.  This becomes especially bad when there are a lot of labels 
>> to
>> make.    I now label the equations as {eq:prefix_number}, where prefix
>> denotes the subject area and number is in increments of 100.  The 
>> idea is
>> that I can insert equations, if required, without worrying about what 
>> new
>> numbers to give for them.  I have the following questions:  (1) What
>> styles do others follow?  (2) Is there a code that can 
>> renumber/rename all
>> the labels in a consistent fashion?  Thanks.
> This topic is discusses once in a while on ctt, I suggest you hit 
> Google/Groups for more opinions than my own.
> I never use numbers in my labels, in part because they are so hard to 
> recall. I usually give my chapters a short name, say "intro". 
> equations then get a name like "intro:sect:eq:newtons-first-law". the 
> sect bit gets replaced by the section name (only for really long 
> chapters). Since I'm in physics, quite a number of equations have a 
> name, which makes referencing easy. Most of the time they relate two 
> quantities (at least the equations I use ;) and then I use the names 
> of the two quantities.

I have run into the same troubles. I have been writing multiple file 
documents (in emacs) and use a lot of references. However, RefTeX has a 
table of contents mode that tracks all of them. When you use the menu 
to insert a reference, a split screen opens with all of the references 
in all of the files that make up the document.

Similarly with citations. You hit C-c [ and you are asked for a string 
that matches the citation you want (or group of citations). A split 
screen opens and all of the references in you .bib file are displayed 
that match the string --- the whole bib entry is searched, not just the 
label. You choose the ones you want and they are entered with the \cite 
form you choose.

When TeXShop has similar features, I'll use it for my major projects. 
Until then, emacs beats the hell out of it.


> As to request 2: a perl filter might be able to do so, but I'm not 
> around to try it ;)
> Maarten
> -----------------------------------------------------
> Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
> Please see <http://www.esm.psu.edu/mac-tex/> for list
> guidelines, information, and LaTeX/TeX resources.

Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.

More information about the macostex-archives mailing list