Gummi tries to compile currently open document, instead of "home" file of project
I have a project with multiple files. One is marked with the home icon.
When I select that file, the preview works.
When I select any other file, gummi tries to compile that file, and so the preview fails.
I understand that this would be a lot of work to fix, since \input{} looks at the saved files on disk, rather than the temporary files in the editory. However this functionality is a very fundamental part of the "project" idea. I thought the whole point was so that you can work with multi-file documents.
here is a related stackexchange-question and a workaround:
The
main.texfile defines\def\COMPLETE{}whereas any included file now has in the beginning\ifdefined\COMPLETE \else \documentclass[12pt]{article} \input{util} %file containing all the used libraries \begin{document} \fiand
\ifdefined\COMPLETE \else \end{document} \fiat the end. Therefore if the file is not included in the main, but displayed on its own it still has the necessary code to be valid.
here is a related stackexchange-question and a workaround:
The
main.texfile defines\def\COMPLETE{}whereas any included file now has in the beginning\ifdefined\COMPLETE \else \documentclass[12pt]{article} \input{util} %file containing all the used libraries \begin{document} \fiand
\ifdefined\COMPLETE \else \end{document} \fiat the end. Therefore if the file is not included in the main, but displayed on its own it still has the necessary code to be valid.
Can you please explain it in details ?
This error persist. I'm currently trying to create a project for a thesis. Every time I change to the chapter file (added on project window), the “Preview pane” change focus to the chapter. So I can't see is been written, and I have to go back to main.tex file.