MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Author index with apacite, subject index and hyperref
Author index with apacite, subject index and hyperref
I have the following problem. I would like to create hyperlinks in the subject index while additionally having the author index in the document. I generate the author index with a bib file and apacite with the option index or emindex. The subject index is generated with the makeidx package. As a result, the entries in the author index as well as in the reference list are linked with the corresponding points in the text. However, links in the subject index are not activated. If I enable the options for making author index in apacite, everything works alright, i.e. links in the subject index are active.
Enclosed, please find a short sample file example.tex, lit.bib and the generated example.pdf where you can see how I proceeded. I would be very grateful if you could give me any hint how to make the links in the subject index active too.
Best
- Attachments
-
- example.pdf
- (74.9 KiB) Downloaded 1044 times
-
- lit.bib
- (154 Bytes) Downloaded 794 times
-
- example.tex
- (595 Bytes) Downloaded 947 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Author index with apacite, subject index and hyperref
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Author index with apacite, subject index and hyperref
welcome to the board!
Besides
Code: Select all
makeindex -o example.and example.adx
Code: Select all
makeindex example
Re: Author index with apacite, subject index and hyperref
many thanks for your response. I have tried what you did but unfotunately I still obtain the same as before. Links in the subject index are not activated. I have no idea where the problem lies. Could you tell me which steps you exactly do while compiling the tex file?
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Author index with apacite, subject index and hyperref
There are packages for creating multiple indexes, such as index, imakeidx, splitindex, multind. apacite may use index. However, it's probably not compatible with other multi-index packages and hyperref regarding multiple linking.
Stefan
Author index with apacite, subject index and hyperref
for all of you who are interested in the solution: loading of package index seems to do the trick. Attached you can find the new tex file example.tex that produces the desired output.
Code: Select all
\documentclass[a4paper,12pt]{article}\usepackage[english]{babel}\usepackage[T1]{fontenc}\usepackage[ansinew]{inputenc}\usepackage{makeidx}\makeindex\usepackage{index}\usepackage[hyperindex=true]{hyperref}\usepackage[emindex]{apacite}\bibliographystyle{apacitex}\makeindex%****************************************\begin{document}This is a book by \citeA{HK}.\newpageThis is a very famous approach.\index{approach}\newpageThis is a very powerful function.\index{function}\newpage\bibliography{lit}\newpage\printindex[autx]\newpage\printindex\end{document}
- Attachments
-
- example.tex
- (619 Bytes) Downloaded 844 times
Re: Author index with apacite, subject index and hyperref
Author index with apacite, subject index and hyperref
Hi and welcome to the forum. It seems to me you have a new question (albeit related to this one). Would you mind opening a new thread with aharwijn wrote:I've been trying the same with this MWE but the author index fails to print. It seems there's no input of authors in the .ind. Any ideas what went wrong? Normal index works fine.

Regards
Author index with apacite, subject index and hyperref
I'm super new to latex and just trying to set up myself a kind of template for my masterthesis.
I'm using the apacite package and struggle with the author index.
I read the pdf of apacite, but I actually have no clue how the step that you describe as well shall work. Where shall I put the code "makeindex -o example.and example.adx" in?
I work with Mac and TeXShop. As far as I could get through googling over a day was that TeXShop has no command line in which it should normally go, so I typed the command in Terminal, which tells me "Input index file APAciting.adx not found." It does definitely exist in it's folder. If anyone could give me a step by step description, that would be great, I cannot find much over google and the forums seem to link to each other in a circle if it comes to this problem.
Kind regards,
Vanessa
Stefan Kottwitz wrote:Hi,
welcome to the board!
Besidesrun also standard makeindex, i.e.Code: Select all
makeindex -o example.and example.adxWhen I did that, I got the normal index with hyperlinks as well:Code: Select all
makeindex example
index.png
Stefan
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Author index with apacite, subject index and hyperref
This thread is very old. Would you mind opening a new thread? Right now, I am not quite sure what you are trying to achieve.