I am using latex on a Linux system without root-access but I am missing several style files for compilation.

! LaTeX Error: File `currvita.sty' not found.

I know that I could copy the missing files directly in the folder with the .tex file but that helps only with the current document.

Is there a way to install the latex packages in my home so I have them available for all documents and avoid using the distribution package manager?


Yes, it's possible. You should set TEXINPUTS variable: it stores the directories where your files place:


(Note the first . - this will the current working directory)

Copy your files to /your/desired/path and run mktexlsr /your/desired/path.

See man tex for more.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.