-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup with latexmk $aux_dir
#46
Comments
This is already covered by the
I just tried to be sure and it works on my side, so I'll close the issue. If you still experience an issue with this option, please re-open with a full example. |
Thank you for looking into this! I tried precisely that. The directory Some files.latexmkrc$aux_dir = ".aux";
$pdflatex = 'pdflatex --shell-escape'; example.tex\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\usepackage{robust-externalize}
\robExtConfigure{
% To display instructions in the PDF to manually compile pictures if
% you forgot/do not want to compile with -shell-escape
enable fallback to manual mode,
set output directory={.aux},
}
\begin{document}
\section{Minimal Working Example}
\begin{tikzpictureC}
\draw (0,0) -- (1,0);
\end{tikzpictureC}
\end{document} .aux/example.log
.aux/robustExternalize/robExt-6_____F-compilation.log
More information about my setup:
Do you have any idea where the problem could be? |
Really?? That is really confusing, I tried to run it with exactly your command and files and it works for me: Full logs and files
I’m wondering, how have you installed robust-externalize? Maybe you have an outdated version, can you try by downloading the |
Indeed, it really is confusing. I have installed latest Running following script hangs on compiling #!/bin/sh
# minimal-example.sh
echo "———————————— \$ ls -la"
ls -la
echo "———————————— \$ cat .latexmkrc"
cat .latexmkrc
echo "———————————— \$ sha256sum .latexmkrc"
sha256sum .latexmkrc
echo "———————————— \$ cat example.tex"
cat example.tex
echo "———————————— \$ sha256sum example.tex"
sha256sum example.tex
echo "———————————— \$ head robust-externalize.sty"
head robust-externalize.sty
echo "———————————— \$ sha256sum robust-externalize.sty"
sha256sum robust-externalize.sty
echo "———————————— \$ latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -emulate-aux-dir -auxdir=.aux example.tex"
latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -emulate-aux-dir -auxdir=.aux example.tex
echo "———————————— \$ tree -a"
tree -a
echo "———————————— \$ cat .aux/robustExternalize/*.log"
cat .aux/robustExternalize/*.log Only up to the hang
Full output
Do you have any idea why this might be the case? I noticed that your |
Sorry for my long answer, I was quite busy and then completely forgot this issue. Thanks a lot for taking the time to create this MWE it is very helpful… So I still couldn't reproduce it with my LaTeX version (2023), so I'm starting to wonder if LaTeX has not broken something in the more recent version you use (2024). Nix does not package texlive 2024 for what I see, so it's hard for me to test with a much more recent package. For the fun, I tried to make a fully reproducible nix build. This one should work (otherwise something really strange is going on as it also clears the environment variables, start it from a different user etc, pins the complete set of dependencies). To test it, just install nix like
The error you get seems to be:
It seems this can occur when one tries to write in a folder outside not below the current .tex file… but here I guess this is not the case. We should maybe fill a bug upstream? But before, let me know if this version works for you. Note also that in the meantime I pushed a version that should fixe the hang behavior (you directly see the error message). Also, my
but removing it does not help as it seems like you add it yourself in yours. |
Finally got around to it, and indeed, your attached It really does seem that the issue is not simply some slight difference in our confugurations, but possibly has something to do with recent version of If you have time and energy, maybe it would be nice to let them know. Anyway, thanks for looking into this so thoroughly! |
So it seems like the issue is that the folder starts with a dot. As discussed above it seems to be due to recent policy changes. Just sent an email to the texlive list. I'll close since it is a tex bug unrelated to this library. |
You can leave it closed, but don't think it has something to do with folder starting with a dot. Trying for example |
Oh really? I can't test these days, then I'll reopen until we clarify |
is that a folder below your current working directory or outside in the file system? Because that also can be restricted by the TeX system, e.g., default in TeX Live is
|
It is below the current working directory. The |
Let's have (for example) the following
aux_dir
setup forlatexmk
in the file.latexmkrc
(I like to avoid clutter of
aux/log/...
files betweentex
files)I was unable to figure it out (worked fine wihout custom
aux_dir
), I always obtained errors of the typeeven if I tweaked some configuration options from subsection
6.3.5 Configuration of the cache
in documentation.Is there a way to get it to work, or perhaps it needs to be implemented on
robust-externalize
side (something likeset output directory
, just foraux directory
)? I will gladly provide additional information on my setup, what I tried and what was failing.The text was updated successfully, but these errors were encountered: