Hi there, Reading the wiki I saw that \index{keyword}keyword should be used rather than keyword\index{keyword}. How should I proceed for names? For example \defineregister[person][people] Albert \person{Einstein, Albert}Einstein vs. \index{Einstein, Albert}Albert Einstein What happens in either case? Oliver
Oliver Buerschaper wrote:
Hi there,
Reading the wiki I saw that
\index{keyword}keyword
should be used rather than
keyword\index{keyword}.
How should I proceed for names? For example
\defineregister[person][people]
Albert \person{Einstein, Albert}Einstein
vs.
\index{Einstein, Albert}Albert Einstein
What happens in either case?
it depends on where you want the index to point to ... normally to the beginning of the entry, just think of \index{Einstein, Albert}Albert Ein-<pagebreak>stein Albert Ein-<pagebreak>stein\index{Einstein, Albert} in the second case the index points to 'stein' and if no Einstein is on that page the user might wonder where the index entry pointed to Ok, one could end up on Albert but as the user expects "Albert Einstein" that's ok Albert~Einstein\index{Einstein, Albert} might be an alternative Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
it depends on where you want the index to point to ... normally to the beginning of the entry, just think of
\index{Einstein, Albert}Albert Ein-<pagebreak>stein
Albert Ein-<pagebreak>stein\index{Einstein, Albert}
in the second case the index points to 'stein' and if no Einstein is on that page the user might wonder where the index entry pointed to
Ok, one could end up on Albert but as the user expects "Albert Einstein" that's ok
Albert~Einstein\index{Einstein, Albert}
might be an alternative
I see. That's exactly what I wanted to know. Many thanks! Oliver
participants (2)
-
Hans Hagen
-
Oliver Buerschaper