MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Author index with apacite, subject index and hyperref
Author index with apacite, subject index and hyperref
Hello,
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
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 1022 times
-
- lit.bib
- (154 Bytes) Downloaded 774 times
-
- example.tex
- (595 Bytes) Downloaded 933 times
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Author index with apacite, subject index and hyperref
Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to goLaTeX and MrUnix (two German LaTeX forums).
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Author index with apacite, subject index and hyperref
Hi,
welcome to the board!
Besides
run also standard makeindex, i.e.
When I did that, I got the normal index with hyperlinks as well:
Stefan
welcome to the board!
Besides
Code: Select all
makeindex -o example.and example.adx
Code: Select all
makeindex example
LaTeX.org admin
Re: Author index with apacite, subject index and hyperref
Hi Stefan,
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?
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: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Author index with apacite, subject index and hyperref
Well, there are some steps (pdfLaTeX, bibtex, pdfLaTeX twice, separate makeindex runs), I hardly remember now which produced all hyperlinks. Maybe it's a workaround to produce the apacite index, remove it from the document source (exept its \printindex line), run makeindex normally and compile again. This could be what I made during testing.
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
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
LaTeX.org admin
Author index with apacite, subject index and hyperref
Hi,
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.
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}.
\newpage
This is a very famous approach.\index{approach}
\newpage
This is a very powerful function.\index{function}
\newpage
\bibliography{lit}
\newpage
\printindex[autx]
\newpage
\printindex
\end{document}
- Attachments
-
- example.tex
- (619 Bytes) Downloaded 828 times
Re: Author index with apacite, subject index and hyperref
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.
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
site moderator & package author
Author index with apacite, subject index and hyperref
Hi Stefan or anyone else who might help me out,
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
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.adx
When 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
Welcome to the forum.
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.
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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.