# [OS X TeX] separators in label names

Murray Eisenberg murrayeisenberg at gmail.com
Sun Oct 6 17:33:54 EDT 2019

Thanks for the suggestion.

Alas, the underscore in labels is also not robust, causing the same error with babel-french and some macros built up from crossreftools functions.

Also, even if it works, I think it would be a nightmare with TeXShop, where by default typing _ automatically inserts _{} and moves the cursor back between the pair of braces. I certainly want to preserve that behavior given my need for multi-character subscripts.

> On 6 Oct2019, at 1:04 PM, Ettore Aldrovandi <ealdrov at math.fsu.edu> wrote:
>
> Why not an underscore?
>
> 	\label{thm_law-lare-numbers}
>
> But I feel the pain: Emacs + AUCTeX automatically uses a colon (by default) as a separator.
>
> —Ettore
>
> Ettore Aldrovandi
> Department of Mathematics, Florida State University
> 1017 Academic Way                *   http://www.math.fsu.edu/~ealdrov <http://www.math.fsu.edu/~ealdrov>
> Tallahassee, FL 32306-4510, USA * * aldrovandi at math dot fsu dot edu
>
>> On Oct 5, 2019, at 15:24, Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
>>
>> From George Grätzer’s “More Math into LaTeX” (or earlier versions of it), I adopted the convention of using as label names phrases of the form “type:description”, e.g.:
>>
>> 	\label{thm:law-lare-numbers}
>> 	\label{eq:prod-of-sums}
>>
>> For a book, I’m using, among many other packages, babel and crossreftools. Recently I’ve discovered that the “french” option to babel gives a conflict with mnay commands from crossreftools when label names include colons. (The trouble is caused by babel-french.ldf, where the colon is made an active character along with semicolon, exclamation mark, and question mark.)
>>
>> I could replace those colons by hyphens, but then that destroys the visual distinction between the type of object (theorem, equation, etc.) being labeled and the description, including hyphens, of the particular object of that type.
>>
>> The colon was, for me, the perfect separator to use, as it nicely separates the two parts of the label names yet is not obtrusive.
>>
>> Do you have any recommendation for what character to use —  one that is suitable for the purposes my use of it as author yet is safe in that it is unlikely to be made active by some package and thereby cause the same clash as the colon?
>>
>> I considered the vertical bar “|” but am concerned that something could make it active as well as that it is somewhat obtrusive.
>>
>> (For reference, please see https://tex.stackexchange.com/questions/511030/another-babel-french-incompatibility-with-crossreftools <https://tex.stackexchange.com/questions/511030/another-babel-french-incompatibility-with-crossreftools> and the other posts it references.)
>>
>> ---
>> Murray Eisenberg			murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>
>> 503 King Farm Blvd #101	Home (240)-246-7240
>> Rockville, MD 20850-6667	Mobile (413)-427-5334
>>
>>
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>>                https://email.esm.psu.edu/pipermail/macosx-tex/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20191006/e35b05d6/attachment.htm>


More information about the MacOSX-TeX mailing list