Bug Tracker
I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)
ID | 1🔗 |
---|---|
Date: | 2012-09-30 09:10:18 |
Status | Closed (Fixed) |
Category | makeglossaries (Perl) |
Version | 1.7 |
Summary | Does not work with subdirectories |
Sign in to subscribe to notifications about this report.
Description
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...
MWE
No mwe.tex
Evaluation
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.)
Comments
1 comment.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=1
Date: 2013-05-06 20:25:00
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):
Here the message: