Goal
I am trying to create a glossary with the following MWE:
\documentclass{article}
\usepackage{glossaries}
\makeglossaries
\loadglsentries{foo}
\begin{document}
\gls{foobar} is a strange animal
\gls{foo} is another strange animal
\printglossaries
\end{document}
where the glossary items reside in a separate foo.tex:
\newglossaryentry{foobar}{%
name={Foobar},
description={A strange animal, not to be confused with \gls{foo}}
}
\newglossaryentry{foo}{%
name={Foo},
description={A strange animal, not to be confused with \gls{foobar}}
}
Difficulty
The unique thing I have is I put all intermediate files (for example, .aux) into a separate build/ directory, which makes my directory looks like the following:
.
├── build
├── foo.tex
└── test.tex
The following are the commands I use
xelatex -synctex=1 -interaction=nonstopmode -shell-escape -output-directory=build %.texmakeglossaries build/%- Build & View:
txs:///compile | txs:///makeglossaries | txs:///compile | txs:///view
However, I observed the following
- When I pressed
F5, no glossaries were generated and the following error messages prompted:
Process started: makeglossaries build/"test"
*Call to makeindex failed* Possible cause of problem: Style file not found. (Have you used \noist by mistake?) Check 'build/test.glg' for details
Process exited with error(s)
Process started: xelatex -synctex=1 -interaction=nonstopmode -shell-escape -output-directory=build "test".tex
Index style file test.ist not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
system returned with code 256
Process exited normally
- When I went into the
build/directory,makeglossaries test, and thenF5, the glossaries could be generated but error messages persisted.
Did I set use the makeglossaries command incorrectly? What do I have to do to resolve this issue?
.gitignorefor version control. – Mr.Robot Jul 27 '22 at 22:44