I would like to create an index of persons. I have used the nameauth package and I am working in a memoir class. I did not manage to completely obtain the results I want. I have also tried to fiddle around with glossaries and imakeidx, but to be honest I am not so good at customization.
What I am trying to do:
- Forward referencing to the names in the index, preferably with a simple command as in my MWE. The nameauth package is missing forward references, although it does do correct backwards references.
- A description field for the index only. Preferably life dates included in the first occurrence of the name, but not the rest of the description. In my MWE I have tried to circumvent the problem by putting it in the "affix" part, but this is of course not satisfactory.
- In my MWE there is a small problem of spacing after the command of a name is being used. How do I solve this?
- Lastly, I want to have hyperrefs in the descriptions in the index, i.e.
MWE of what I have now:
\documentclass[a4paper,oneside]{memoir}
\usepackage{geometry}
\usepackage{nameauth}
\usepackage[hidelinks]{hyperref} % For hyperlinks in the PDF
\makeindex
\begin{document}
\pagestyle{plain}
\begin{nameauth}
\< Bosscha & Johannes & Bosscha, Jr. (1831-1911) & >
\< BosschaSr & Johannes & Bosscha, Sr. (1784-1874) & >
\< Someone & Mister & Someone, (1812-1911) & >
\end{nameauth}
\chapter{test}
And I want to test \Bosscha, or either is it \BosschaSr. So the second
time it is called we get: \Bosscha and \BosschaSr. Another test is
\Someone and \Name[Mister]{Someone2}{ (1812-1911), and some text}.
Lastly, I could try a manual \href{www.google.nl}{\Bosscha (1831-1911)},
although I'm not sure this is a solution to my problem.
\printindex
\end{document}
What I want to achieve:
In text first occurrence [in smallcaps]:
Johannes van Bosscha Jr. (1831-1911) was born in etc.
This is going correct. I would like to change the later occurrences to smallcaps:
In his later life, Van Bosscha Jr. did such and such.
In the index:
Bosscha, Johannes van, Jr. (1831-1911), description of person, p. 1, 3, 5.
Where somewhere I have a hyperlink inside.
The nameauth partly already has what I need concerning ordering and backreferences, but I lack the freedom to edit the part inside the index for the description and hyperreferences and there is no forward referencing. How can I solve this?
glossaries. I'll check – Feb 15 '17 at 17:22- Create a difference between first and later occurences, and while we're at it make them in smallcaps.
- Get the sorting right with names like "van Bosscha" sorted at the B, similar problems with affixes such as Jr. to display them correctly in the index.
- Add a hyperlink in the index entry (I know, this request is a bit over the top).
– Thagusta Feb 16 '17 at 11:54