TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Linux Mint, with the TeX Live distro and Texmaker as my editor. Basically, I would like to be able to use llncs.cls as a document class without having to always put that file in with the document I'm trying to compile. Under MikTeX (which I used back when I used Windows), there was a way to resolve it by giving it a place to search for packages etc. if it couldn't find them normally. However, I have no idea how to do this in Linux. Could someone help me out?

share|improve this question

marked as duplicate by Martin Schröder, yo', Svend Tveskæg, Jesse, Werner Feb 17 '14 at 12:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I think, your paths to the TeXLive distribution are corrupted or something is strange with TexMaker configuration. 11ncs.cls is not provided by TeXLive, is it? Did you have a look, whether that class file is installed in your TexLive distribution or not, for example another storage position could be /usr/local/share/texmf or something like that. – Christian Hupfer Feb 16 '14 at 8:41
up vote 6 down vote accepted

All TeX Live installations allow for a “personal tree”; on GNU/Linux systems this tree is rooted in ~/texmf, where ~ stands for your home directory.

Just issue this pair of commands from a directory where you keep a copy of llncs.sty:

mkdir -p $(kpsewhich --var-value TEXMFHOME)/tex/latex/llncs
cp llncs.cls $(kpsewhich --var-value TEXMFHOME)/tex/latex/llncs/

Using ~/texmf instead of $(kpsewhich --var-value TEXMFHOME) is possible, but the longer method is independent of where the “personal tree” actually is defined to be found at (on Mac OS X, with MacTeX, it's rooted in a different place).

After doing this, llncss.cls will be available for every LaTeX run, independently of the working directory.

share|improve this answer
That's a good tutorial, do you think it should be merged into [tex.stackexchange.com/questions/1137/… canonical question on this topic)? – yo' Feb 17 '14 at 11:07
@tohecz Please, do! – egreg Feb 17 '14 at 11:48

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