7

To keep my main folder clean, have redirected the auxiliary files using the -aux-directory=.\auxiliaries command in LaTeX and PdfLaTeX (1). However, when making the glossaries, TeXstudio gives the following message:

Auxiliary file 'main.aux' doesn't exist. Have you run LaTeX?

Pasting the same command into the Makeglossaries field yields the same result.

How can i make glossaries find the aux files?

Minimal working example that works when the aux files are in the main directory, but not when the aux files are redirected into a subfolder:

\documentclass[12pt, twoside, a4paper, english]{report}
\usepackage[toc,symbols,nomain]{glossaries}
\newglossaryentry{pi}{type=symbols,name={\ensuremath{\pi}},sort=pi, description={ratio of circumference of a circle to its diameter}}
\makeglossaries

\begin{document}
\printsymbols[title=List of Symbols]
\section{Text}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\gls{pi}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\end{document}

[compilation commands in TeXstudio]1

3
  • Coud you post a minimal (non-) working example?
    – Bernard
    Commented Apr 13, 2016 at 14:20
  • @Bernard i updated my question with a working example.
    – FredrikH-R
    Commented Apr 13, 2016 at 14:44
  • 1
    my guess is, you have to expand the searchpath.
    – naphaneal
    Commented Apr 13, 2016 at 14:47

1 Answer 1

7

Running on the command line makeglossaries --help one can see the options it knows. Beside other the -d switch:

enter image description here

So add -d auxiliaries to the call.

2
  • I didn't know that you could do that. Thank you, it works perfectly now!
    – FredrikH-R
    Commented Apr 13, 2016 at 15:02
  • Hi. did you solve this problem? Can you send back the example? Commented Aug 28, 2018 at 18:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .