0

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.

  • you say that the file is preamble.sty but the error shows preambUle.sty – David Carlisle Mar 21 at 22:34
  • Ha yeah ! It's copy pasta error ! My file is called preambule.sty (which is French). I forgot to modify the error line ! It is done now, thank you! – Alex Mar 21 at 22:52
  • Are you a Ubuntu user? – Majid Abdolshah Mar 21 at 23:53
  • Yes mister ! Ubuntu 18.10, texlive 2018 tlmgr latest ! – Alex Mar 22 at 0:26
  • Not a frequent user of linux but what is the response to kpsewhich -var-value TEXMFHOME note 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 tex.stackexchange.com/questions/411418/… – user170109 Mar 22 at 14:32

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.