MakeIndex, Nomenclature, Glossaries and AcronymsAuthor index with apacite, subject index and hyperref

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
butfilter
Posts: 3
Joined: Mon Aug 06, 2012 2:37 pm

Author index with apacite, subject index and hyperref

Post by butfilter »

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
Attachments
example.pdf
(74.9 KiB) Downloaded 1021 times
lit.bib
(154 Bytes) Downloaded 773 times
example.tex
(595 Bytes) Downloaded 932 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Author index with apacite, subject index and hyperref

Post by localghost »

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
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Author index with apacite, subject index and hyperref

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Besides

Code: Select all

makeindex -o example.and example.adx
run also standard makeindex, i.e.

Code: Select all

makeindex example
When I did that, I got the normal index with hyperlinks as well:
index.png
index.png (3.77 KiB) Viewed 24192 times
Stefan
LaTeX.org admin
butfilter
Posts: 3
Joined: Mon Aug 06, 2012 2:37 pm

Re: Author index with apacite, subject index and hyperref

Post by butfilter »

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?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Author index with apacite, subject index and hyperref

Post by Stefan Kottwitz »

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
LaTeX.org admin
butfilter
Posts: 3
Joined: Mon Aug 06, 2012 2:37 pm

Author index with apacite, subject index and hyperref

Post by butfilter »

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.

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 827 times
harwijn
Posts: 1
Joined: Sun Aug 23, 2015 6:45 pm

Re: Author index with apacite, subject index and hyperref

Post by harwijn »

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.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Author index with apacite, subject index and hyperref

Post by cgnieder »

harwijn 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.
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 a Infominimal working example showing what doesn't work? (If the background is needed you can easily link to this thread for information)

Regards
site moderator & package author
vanessaca
Posts: 5
Joined: Thu Sep 06, 2018 10:45 am

Author index with apacite, subject index and hyperref

Post by vanessaca »

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


Stefan Kottwitz wrote:Hi,

welcome to the board!

Besides

Code: Select all

makeindex -o example.and example.adx
run also standard makeindex, i.e.

Code: Select all

makeindex example
When I did that, I got the normal index with hyperlinks as well:
index.png

Stefan
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Author index with apacite, subject index and hyperref

Post by Johannes_B »

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply