[OS X TeX] \langle does not display as such in the Index

Alain Schremmer schremmer.alain at gmail.com
Mon Feb 1 22:48:28 CET 2016


On , at 2016 Feb 1,3:57 PM, Herbert Schulz wrote:

>> On Feb 1, 2016, at 11:43 AM, Alain Schremmer <schremmer.alain at gmail.com> wrote:
>> 
>> 
>> On , at 2016 Feb 1,11:50 AM, Herbert Schulz wrote:
>> 
>>>> On Feb 1, 2016, at 10:24 AM, Alain Schremmer <schremmer.alain at gmail.com> wrote:
>>>> 
>>>> 
>>>> On , at 2016 Feb 1,11:01 AM, Herbert Schulz wrote:
>>>> 
>>>>>> On Feb 1, 2016, at 9:20 AM, Alain Schremmer <schremmer.alain at gmail.com> wrote:
>>>>>> 
>>>>>> 
>>>>>> On , at 2016 Feb 1,7:35 AM, Herbert Schulz wrote:
>>>>>> 
>>>>>>>> On Jan 31, 2016, at 11:04 PM, Alain Schremmer <schremmer.alain at gmail.com> wrote:
>>>>>>>> 
>>>>>>>> Sorry it took me so long to respond: The problem turned out actually to be more complicated than I had thought and I hope that the attached "minimal example" will clarify the circumstances under which \cup works while \langle does not.
>>>>>>>> 
>>>>>>>> Best regards
>>>>>>>> --schremmer
>>>>>>>> 
>>>>>>>> 
>>>>>>>> <MakeindedVsShowindex.tex.zip>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On , at 2016 Jan 23,9:03 PM, Herbert Schulz wrote:
>>>>>>>> 
>>>>>>>>>> On Jan 23, 2016, at 7:23 PM, Alain Schremmer <schremmer.alain at gmail.com> wrote:
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On , at 2016 Jan 23,7:31 PM, Herbert Schulz wrote:
>>>>>>>>>> 
>>>>>>>>>>>> On Jan 23, 2016, at 5:39 PM, Alain Schremmer <schremmer.alain at gmail.com> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> I am proofreading a bit and just noticed that: 
>>>>>>>>>>>> 
>>>>>>>>>>>> \langle displays correctly under showidx but under makeidx displays   hA   
>>>>>>>>>>>> and 
>>>>>>>>>>>> \rangle displays correctly under showidx but under makeidx  displays   A with a little cup on top followed by B
>>>>>>>>>>>> 
>>>>>>>>>>>> Similarly, 
>>>>>>>>>>>> 
>>>>>>>>>>>> \left \langle displays correctly with showidx but under makeidx displays CircleCross A
>>>>>>>>>>>> and
>>>>>>>>>>>> \right \rangle displays correctly under showidx but under makeidx displays a dropped A with a little cup on top followed by B
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> I am using
>>>>>>>>>>>> 
>>>>>>>>>>>> 			\let\oldopenparen\(%
>>>>>>>>>>>> 			\let\oldcloseparen\)%
>>>>>>>>>>>> 			\newcommand{\INDEX}[1]{\def\({\protect\oldopenparen}\def\){\protect\oldcloseparen}\index{#1}}
>>>>>>>>>>>> 
>>>>>>>>>>>> which works fine with every other symbols.
>>>>>>>>>>>> 
>>>>>>>>>>>> Puzzled regards
>>>>>>>>>>>> --schremmer
>>>>>>>>>>> 
>>>>>>>>>>> Howdy,
>>>>>>>>>>> 
>>>>>>>>>>> What are you trying to do?
>>>>>>>>>> 
>>>>>>>>>> Indexing math symbols which works fine except for \rlangle and \langle
>>>>>>>>>> 
>>>>>>>>>>> Are you including the \rlangle and \langle in math mode?
>>>>>>>>>> 
>>>>>>>>>> Yes
>>>>>>>>>> 
>>>>>>>>>> Regards
>>>>>>>>>> --schremmer
>>>>>>>>> 
>>>>>>>>> Howdy,
>>>>>>>>> 
>>>>>>>>> Have you tried
>>>>>>>>> 
>>>>>>>>> \index{{\(\angle\)}} or \index{$\langle$}? It seems to work fine for the makeidx package for me.
>>>>>>>>> 
>>>>>>>>> %%!TEX TS-program = pdflatexmk
>>>>>>>>> \documentclass{article}
>>>>>>>>> \usepackage{makeidx}
>>>>>>>>> \makeindex
>>>>>>>>> \begin{document}
>>>>>>>>> Here's an indexed item; \(\langle\)\index{\(\langle\)}.
>>>>>>>>> \printindex
>>>>>>>>> \end{document}
>>>>>>>>> 
>>>>>>>>> Good Luck,
>>>>>>>>> 
>>>>>>>>> Herb Schulz
>>>>>>>>> (herbs at wideopenwest dot com)
>>>>>>> 
>>>>>>> Howdy,
>>>>>>> 
>>>>>>> In part B I commented out the usepackage showidx and uncommented Michael Sharpe's code. When I compile the index entry, Heiko Oberdiek, is NOT hyperlinked as you say it should be. I'm stopping there for now.
>>>>>> 
>>>>>> As my father used to tell me "Le mieux est l'ennemi du bien." which, on this side of the water, translates as "Keep it simple, you idiot."
>>>>>> Either way, I have attached what I first had. Look at the third entry in the Index.
>>>>>> Apologetic regards
>>>>>> 
>>>>>> <MakeindedVsShowindexESSENTIAL.tex.zip>
>>>>> 
>>>>> Howdy,
>>>>> 
>>>>> I did go further in your original document and saw the B entry, etc. I could fix things by removing the INDEX command and making sure all those object are defined using \protect. See the enclosed version:
>>>>> 
>>>> <MakeindedVsShowindexESSENTIAL.tex.zip>
>>>>> 
>>>> 
>>>> The Index is indeed beautiful but, sometimes, the protection racket can be too expensive: look at the margin entries. ;-))
>>>> 
>>>> Best regards
>>>> --schremmer
>>> 
>>> Howdy,
>>> 
>>> I see the “ instead of the \ but I see that for the \cup and \cap too and they haven't been re-defined so that has nothing to do with the \protect.
>> 
>> Confusing, isn't it? Take a look at the attached NEXT. Hope it's ... simpler.
>> 
>> 
>> <MakeindedVsShowindexNEXT.pdf>
>> 
>> Best regards
>> --schremmer
> 
> Howdy,
> 
> I haven't looked at showidx.sty or how the information is passed to that package. It seems that the definition of \INDEX will reset the definition of \( and \) on each execution; I took those out and then the definition of \INDEX simply becomes
> 
> \newcommand{\INDEX}[1]{\index{#1]}
> 
> which seems like it's doing nothing

It sure looks that way to me. (But who am I to say?)

> but \newcommand seems to build a better protected definition. 

Protection, protection, ...  Seems the name of the game.

> Also note that Heiko's magic seems to load showidx in a special way so you shouldn't load it separately.

Indeed, it was commented out so as not to load.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: MakeindedVsShowindexESSENTIAL.tex.zip
Type: application/zip
Size: 1501 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20160201/164243b5/attachment.zip>
-------------- next part --------------
> 
> 
> The enclosed file ALWAYS uses \INDEX

I had been using \index only for reference.

> and all seems well now.

I don't understand any of it but, indeed, so it does.

Your

	\let\oldlangle\langle
	\def\langle{\protect\oldlangle}
	\let\oldrangle\rangle
	\def\rangle{\protect\oldrangle}

though, is ...  "ad angulum".

Well, if it does nothing to help me comprehend where that B came from (remember, every other mathematical symbol worked by itself), no question about it, you resolved my current difficulty!

Grateful, if puzzled, regards
--schremmer

-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.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


More information about the macostex-archives mailing list