gummi
gummi copied to clipboard
\Include with subdirectory: "I can't write on file 'Subdirectory/subdir_file.aux'" error on pdf output
Describe the bug A clear and concise description of what the bug is. Compilation of the pdf preview isn't working with \include statements of .tex files in Subdirectories. To Reproduce Steps to reproduce the behavior: File structure: my_project:
- main.tex
- subdir: -> subdir_file.tex
Contents of main.tex:
\documentclass{article}
\begin{document}
\include{subdir/subdir_file}
\end{document}
Content of subdir_file.tex: Test
- See error/Output of Build log This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex) \write18 enabled. entering extended mode (/home/ubu/Documents/latex_test_proj/.main.tex.swp LaTeX2e <2017-04-15> Babel <3.18> and hyphenation patterns for 23 language(s) loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/home/ubu/.cache/gummi/.main.tex.aux No file subdir/subdir_file.aux. ) /home/ubu/Documents/latex_test_proj/.main.tex.swp:3: I can't write on file `sub dir/subdir_file.aux'. @include ...\immediate \openout @partaux #1.aux \immediate \write @partau... l.3 \include{subdir/subdir_file}
(Press Enter to retry, or Control-D to exit; default file extension is `.tex') Please type another output file name /home/ubu/Documents/latex_test_proj/.main.tex.swp:3: Emergency stop. @include ...\immediate \openout @partaux #1.aux \immediate \write @partau... l.3 \include{subdir/subdir_file}
/home/ubu/Documents/latex_test_proj/.main.tex.swp:3: ==> Fatal error occurred, no output PDF file produced! Transcript written on /home/ubu/.cache/gummi/.main.tex.log.
System:
- OS: [e.g. Ubuntu 18.0.4]
- Gummi version [e.g. 0.6.6] Ubuntu repo version
Other If useful, please include a screenshot or run gummi with the '--debug' flag for extra information Might be linked to this answer https://tex.stackexchange.com/questions/323820/i-cant-write-on-file-foo-aux, respectively the -output-directory flag
It seems that the necessary .aux files are being created in ~/.cache/gummi/
Just had the same problem and it took me a while to figure this out. I think gummi should allow to set the directory of the build files to the directory of the tex file to be compiled.
@FieteO Thanks for mentioning this workaround. It also took me a while to realize this might be a problem with the editor.