Bug Tracker 
| 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 |
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
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=322
