[OS X TeX] New TeXShop macro: "Insert reference"

Josep M.Font pepf54 at tiscali.es
Tue Aug 24 00:11:52 CEST 2004


El 23 ago 2004, a las 19:43, Matthew Hills escribió:

> Try converting:
>
>> set find_label_lines to ("grep -h '\\\\label' " & searchtexfiles) as 
>> string
>
> to:
>
>> set find_label_lines to ("cat " & searchtextfiles & " | tr '\\r' 
>> '\\n'  | grep '\\\\label' " & searchtexfiles) as string
>
> This will take care of both Mac and PC-encoded files, without harming 
> the unix-encoded
> files.

AppleScript complains that "the variable searchtexfiles is not 
defined". I replaced "searchtextfiles" by "texfiles_tosearch" and it 
restarted to work as before --with the same problems.

On the other hand, Nicolas Martignioni said:

> I too get some lines of code in the list. I've this definition in one 
> of my tex files
>
>> \renewenvironment{thebibliography}[1]
>>      {\section{\refname}%
>>       \@mkboth{\refname}{\refname}%
>>       \list{\@biblabel{\@arabic\c at enumiv}}%
>>            {\settowidth\labelwidth{\@biblabel{#1}}%
>>             \leftmargin\labelwidth
>> ...<snip>
>
> and get some funny lines at the end of the listing of all the labels.

It's funny that I too have a definition in the preamble where 
\labelwidth and \labelsep appear... but the first piece of code 
mistaken as a \label is above it...

JMaF


--------------------- 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