I have a document with a structure:
+-- main.tex +-- style.sty +-- fonts | +-- times.tff +-- sections | +-- section1.tex | +-- section2.tex
Main file main.tex includes section files via subfiles package.
Now I want to use my "times.tff" font in the document. So I include this part to my style:
And everything is working well, but only if I compile document from the main. If I want to compile only section 1, then I get an error: fontspec error: "font-not-found". This is because font path for section 1 will be different from the main.
How can I set the path so that I could compile from the sections?