0

I have a LaTeX project that will compile on my computer with MiKTeX, but not on my colleagues with TeX Live. The issue is that when I input the subfile, it appears that my computer adds the subfile's directory to path, but on my colleagues it doesn't, resulting in a TestSubInput.tex not found error. Any ideas as to why this is happening?


The files are organized as follows:

In the main folder

TestMain.tex
/TestFolder/

In the test folder

TestSub.tex
TestSubInput.tex

The contents of the files are:

TestMain.tex, the main file

\documentclass[11pt,a4paper]{scrartcl}
\usepackage{subfiles}
\begin{document}
    Main works\\
    \subfile{./TestFolder/TestSub.tex}
\end{document}

TestSub.tex, the subfile inserted from main

\documentclass[./../TestMain.tex]{subfiles}
\begin{document}
    Sub works\\
    \input{TestSubInput}
\end{document}

Note for above, it will compile on both if the input is changed to \input{./TestFolder/TestSubInput}

TestSubInput.tex, the file that is inserted from the subfile

SubInput works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.