gummi icon indicating copy to clipboard operation
gummi copied to clipboard

\Include with subdirectory: "I can't write on file 'Subdirectory/subdir_file.aux'" error on pdf output

Open FieteO opened this issue 5 years ago • 3 comments

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

  1. 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

FieteO avatar Jul 15 '19 15:07 FieteO

It seems that the necessary .aux files are being created in ~/.cache/gummi/. To temporarily fix the issue, you can create a "subdir" Folder in ~/.cache/gummi/.

FieteO avatar Jul 16 '19 07:07 FieteO

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.

amo13 avatar Mar 28 '20 15:03 amo13

@FieteO Thanks for mentioning this workaround. It also took me a while to realize this might be a problem with the editor.

Jarshvor avatar Jun 07 '20 20:06 Jarshvor