I'm trying to use texliveonfly to automatically install my dependencies. However, most of the packages I used are located in a preamble.sty file which is in the same folder as the main.tex file for my whole document. When I run
texliveonfly main.tex
I get,
! LaTeX Error: File `preamble.sty' not found.
I've placed a symbolic link in the TEXMFHOME because I've read it here.
But it did not work.
Any help would be appreciated :) Thank you.
preamble.stybut the error showspreambUle.sty– David Carlisle Mar 21 '19 at 22:34kpsewhich -var-value TEXMFHOMEnote it should end /texmf then your sty files should be in ~/texmf/tex/latex/local/ (which is one expected TDS location) your cls files can also go there and to double up setting $TEXINPUTS= texmf location : including : other folders should help see related questions such as https://tex.stackexchange.com/questions/411418/texinputs-and-texmaker-latexila – Mar 22 '19 at 14:32kpsewhich -var-value TEXMFHOMEand the file preamble.sty could still not be found. Then I tried changingTEXMFHOMEto the folder of my project, still did not work. – Alex Mar 22 '19 at 14:47texliveonfly Main/main.texand got the error. I tried running it from Main folder and it worked ! (cd Main && texliveonfly main.tex) – Alex Mar 22 '19 at 15:32