Is there a way to seamlessly integrate xindy with AUCTeX so that if I execute C-c C-c
repeatedly (or alternatively if I execute C-c C-a
once) the AUCTex engine will know the sequence of commands required to eventually produce a PDF file of my .tex source, including indices?
Consider the following LaTeX document:
\documentclass{amsart}
\usepackage[xindy]{glossaries}
\makeglossaries
\newglossaryentry{x}{name={world},description={the universe}}
\begin{document}
\title{The Title}
\maketitle
Hello, \gls{x}!
\printglossaries
\end{document}
If I run the following sequence, the resulting document doesn't contain a glossary (see below). Why? How can it be fixed?
C-c Latex
C-c Xindy
C-c Latex
C-c View
The resulting pdf file:
xindy
, but doesn't know when it has to run it. Ask the author of the package to issue a warning when it's necessary to runxindy
, so that AUCTeX will be able to catch the warning and run the program appropriately. – giordano May 15 '17 at 8:59xindy
is supported in the sense that it is in the list of commands that you can manually run with C-c C-c – giordano May 15 '17 at 9:25texindy filename-without-extension
, but probably that's wrong. It can be adjusted, but I don't know how, the manual ofxindy
isn't particularly illuminating. On which file you should runtexindy
on? – giordano May 15 '17 at 10:14man texindy
, that's why I couldn't find the information. Anyway, you should customizeTeX-command-list
withcustomize-variable RET TeX-command-list RET
and change the "Xindy" command withxindy -L english -C utf8 -I xindy -M %s -t %s.glg -o %s.gls %s.glo
, then click on the "Apply and save button". – giordano May 15 '17 at 10:29