Closed Kaniee closed 3 years ago
I think your problem is independent of acro
and probably due to a result of using \include
rather than \input
(see https://tex.stackexchange.com/a/250 for some of the distinction) which tries (and fails due to the attempt to mirror the root folder structure in the -output-directory
) to create an independent aux
file for the \include
d tex file. The same error occurs even with
\documentclass{article}
\begin{document}
\include{sub/acronyms}
\end{document}
where sub/acronyms.tex
just contains plain text.
Probably your acronyms.tex
file is a list of \DeclareAcronym
s, in which case it should use \input
and no additional aux
file is created (this is not only simpler but likely desired). If acronyms.tex
does contain section-like material it would be reasonable to not keep it in a subfolder in which case the manual creation of the aux/sub
folder is unnecessary as the acronyms.aux
file will go in the root of the -output-directory
folder.
Sound reasonable. That would explain the issue.
I'll try it with \input
instead of \include
.
Thanks for taking your time on this one and for the good explanation.
When calling
pdflatex
with the option-output-directory
all auxiliary files are created in a given folder. In the case where myacronyms.tex
file is not in the root folder, a folder in the output directory needs to be created. For some reason this does not work with this package so the following error is thrown:To resolve this, I needed to create the folder in the output directory manually.
Example file structure, where the output directory is
aux
(after I created thesub
folder):I found the workaround for this solution on Stackexchange.