I have the following file structure for my document:
document ├── acronym.tex ├── bibliography.bib ├── chapters │ ├── some-chapter.tex │ └── another-chapter.tex ├── figures │ ├── some-figure.pdf │ └── another-figure.pdf └── main.tex
Now I want to open a file in the chapters folder and (inside the text editor) run a command to compile the whole document.
If I try to run
latexmk -pdf or
latexmk -pdf some-chapter inside the chapters folder I get a ton of error messages because latexmk doesn't know about the main.tex.
Is there a way to tell latexmk that it should also look in the parent folder? Or somehow declare the main.tex as main file?
latexmk -pdf ../main (which anyways would not be satifying) but then I get
! LaTeX Error: Fileacronym.tex' not found.`
So far I had a
main.tex.latexmain file in the document folder and vim-latex was able to find the main in the parent folder (see the vim-latex documentation). A similar solution with latexmk would be perfect.