Latest news 2026-10-18: New blog post: Coming Soon: Alternative History Crime Thriller The Fourth Protectorate.

Bug Tracker RSS feed

ID 322🔗
Submitted by: Rebecca McCabe
Date: 2026-11-11 20:46:22
Last update: 2026-11-11 21:12:51
Status Open
Sign in if you want to bump this report.
Category glossaries-extra
Version 2.1
Summary automake + latexmk with auxdir causes quoting error

Return to Search Results

Sign in to subscribe to notifications about this report.

Description

If compiling with latexmk and an aux directory, latexmk passes the aux directory with quotes into the pdflatex command.
$latexmk -pdf -cd  -interaction=nonstopmode pubs/mwe/mwe.tex -auxdir=aux
Rc files read (in order):
  NONE
Latexmk: This is Latexmk, John Collins, 9 March 2026. Version 4.88.
Latexmk: Changing directory to 'pubs/mwe/'
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Changed files or newly in use/created:
  mwe.tex
Category 'changed_user':
  mwe.tex

------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -interaction=nonstopmode -recorder -output-directory="aux"  "mwe.tex"'
When makeglossaries obtains this quoted directory and uses it to prepare the makeindex command, it incorrectly handles the quoting, causing the makeindex command to fail with the following error:
runsystem(makeindex -s "aux"/mwe.ist -t "aux"/mwe.glg -o "aux"/mwe.gls "aux"/mw
e.glo)...quotation error in system command.
I was able to patch this bug as follows. The glsquote argument must be both the \l_glossaries_output_dir_tl and #1, not just the \l_glossaries_output_dir_tl as in the current source code:
\makeatletter
\ExplSyntaxOn
\cs_set:Npn \@gls@run@output@file #1
  {
    \glsquote
      { \l_glossaries_output_dir_tl / #1 }
  }
\ExplSyntaxOff
\makeatother

MWE

Download (527B)

%% compile this with either:
%% 1) `latexmk -pdf -cd  -interaction=nonstopmode pubs/mwe/mwe.tex -auxdir=aux`
%% or
%% 2) `latexmk -pdf -cd  -interaction=nonstopmode pubs/mwe/mwe.tex -r pubs/mwe/.latexmkrc`, if there is a .latexmkrc file containing `$aux_dir = 'aux';`

\documentclass{article}

\usepackage[automake]{glossaries-extra}

\makeglossaries

\newglossaryentry{sample}{
    name={sample},
    description={An example glossary entry}
}

\begin{document}

This is a \gls{sample} document.

\printglossary

\end{document}

Evaluation

Comments

0 comments.


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. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

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=322

Return to Search Results