Bug Tracker RSS feed

One or more errors has occurred:

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.

🔗Comment from Alexander Weber
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):

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***
Replying to Comment #1:

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=1