Free Software
Recent news (2017-03-24): texosquery v1.2 released.

Bug Tracker

ID 1
Status Closed (fixed)
Category makeglossaries (Perl)
Version 1.7
Interpreter N/A
Summary Does not work with subdirectories


I like to use pdflatex with its output-directory parameter, which puts all generated files into the directory supplied to this parameter. When I then call 'makeglossaries output/thesis' where "output" is the directory containing the aux, ist, acr etc. files, makeglossaries fails to add "output/" in front of the -s parameter, it calls makeindex like this:
makeindex  -s "thesis.ist" -t "output/thesis.alg" -o "output/thesis.acr" "output/thesis.acn"
whereas it should do it like this:
makeindex  -s "output/thesis.ist" -t "output/thesis.alg" -o "output/thesis.acr" "output/thesis.acn"
Sadly, neither my Tex nor my Perl skills are sufficient to provide a mergeable fix, but I was able to fix it by deriving the pathname in sub makeindex by adding:
   my $path = dirname($out);
   $ist = "$path/$ist";
(and adding a use File::Basename; clause of course).

This produces a small artifact when no directory is used. In that case dirname adds "./" to the istfile name, but that's just a cosmetic nuisance. :)

Another way to fix this may be to include the path name in the .aux file, but I have no idea how to gather the directory in Tex...

Comment from Alexander Weber
Date: 2013-05-06 14:25:21 CDT

I'm using Version 2.06. If I use the "-d" argument, it still produces the same error.
Everything is fine but the "-s" argument at the makeindex call.

This is my commandline (were ./H is my aux-directory):

makeglossaries -d E:/THESIS/H/ E:/THESIS/H/MyFile

Here the message:
makeglossaries version 2.06 (2013-04-21)

added glossary type 'main' (glg,gls,glo)

makeindex  -s "MyFile.ist" -t "E:/THESIS/H/MyFile.glg" -o "E:/THESIS/H/MyFile.gls" "E:/THESIS/H/MyFile.glo"

***Call to makeindex failed***


makeglossaries v2.05 now has a -d option to specify the path in which to run makeindex/xindy.

(I think this is a more platform-independent solution to the problem.)

Watch This Report

If you would like to be notified whenever updates are made to this report, please fill in your email address in the box below and click on "Notify Me of Changes". (Please ensure the address is valid.) Your details won't be passed on to third parties in line with this site's Privacy Policy.


If you would like to add a comment regarding this bug report, please fill in the form below, but don't use it for a different bug or feature request, even if it's related. Instead fill out a new bug report or feature request. (If you want to link it to this report, make a note of the ID number at the top of the page.)

Name (Optional)

You can use the following markup:

[pre]Displayed verbatim[/pre]
[tt]monospace font[/tt]
[url]web address[/url]

which will be converted to:

<pre>Displayed verbatim</pre>
<tt>monospace font</tt>
<a href="web address">
web address</a>

I'm sorry, some spammers have cracked the captcha and genuine comments were being hidden in the midst of spam, so I've replaced the captcha with this test: Please enter the ID number of this report in the confirm ID box below.

Confirm ID: (The number at the top of this page.)

Return to Search Results

The free software provided here (including my class files and packages on CTAN) are funded by my book sales. While I'm keen to remove bugs from my code, book production has to take priority over bug fixes, so please don't expect a rapid response.

Version numbers that end with "b" indicate a beta (prototype) release. Version numbers that end with "a" indicate an alpha (unstable) release.

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Site Map FAQs