|Summary||Does not work with subdirectories|
ReportI 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***
Evaluationmakeglossaries 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.)
CommentsIf 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.) 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.