LNCS LaTeX style works
I’m writing a paper for a conference. It should be written with conformance to the Lecture Notes in Computer Science style. After visiting the page with information for LNCS authors) I though that it might be a sort of magic for many people.
Springer encourages authors to use LaTeX2e, provides a style file for LaTeX, documentation and samples. The samples and instructions are quite good to start writing a paper immediately if
- you know LaTeX, and
- the llncs style is installed.
Springer can’t help with the first issue. But it isn’t important.
The problem is that they don’t provide (or I haven’t found) help on installing the style. The number of people that can do it is much smaller of those who know LaTeX.
Fortunately, I’m one from that small group. Here is my way to use the style locally without putting it into the core LaTeX directories.
The style files are stored in the file llncs2e.zip. I unpacked them into the folder “~/univer/gpce05/springer/texmf/tex/latex/llncs2e“. In fact, the path before “texmf” is not important.
First of all, I decided to check the sample file llncs.dem. As dvi-file already exists, I generated pdf:
$ pdflatex llncs.dem $ pdflatex llncs.dem
The command was given twice to get correct links. On the first run, the database of links is created, and on the next runs the database is used.
Now goes local installation of the style. I’m not going to comment it. Consider it as magic:
$ export TEXMFLOCAL=~/univer/gpce05/springer/texmf $ texconfig rehash $ file ~/univer/gpce05/springer/texmf/ls-R
The first command specifies location of the local TeX repository. The second commands indexes the repository, and the last one just makes sure that the index is created.
To check, use the sample from the file typeinst.zip. Let me demonstrate a failure first. Open a new window and try to compile the TeX-file:
$ latex typeinst.tex
You get an error like:
LaTeX Error: File `llncs.cls' not found.
The right way is to specify the location of the repository first:
$ export TEXMFLOCAL=~/univer/gpce05/springer/texmf $ latex typeinst.tex $ latex typeinst.tex
Again, I’m running LaTeX twice to get correct links.
1 October 2005, update
There is an easier way. Just copy “llncs.cls” to the same folder were your LaTeX file is located.
April 23rd, 2005 at 6:27 am
would you please tell us how to insert a figure?
April 23rd, 2005 at 10:51 pm
Oh, sorry, I don’t know LaTeX so good to give recommendation. Look at ant LaTeX manual.
February 10th, 2009 at 10:24 am
This begs the question: where oh where is the llncs.cls file?
Answer: within llncs2e.zip
For those of us who used llncs.zip (using LaTeX) there were no hints that a necessary file came from a different zip file. Thanks very much for blogging this — I was in the midst of pestering the conference chair when I found the insight I needed here.
April 19th, 2010 at 3:16 am
I will write a paper for a conference too. God, I hate with all my forces this damn style! You can’t use \documentclass{article} because more than 100 fails occur.
If you want to put foreign languages like french, german or spanish, you simply can’t. You will never can’t. Words like ‘á’ won’t be pushed into text because you can’t use \usepackage[language]{babel} because the demo DOESN’T EXPLAIN simply how to add the lncs style in the article class, e.g.
This is very, very frustrating way to make a simple paper for a conference.
I don’t reccomend it.
# RichardBao Says:
April 23rd, 2005 at 6:27 am
would you please tell us how to insert a figure?
Simply: for pdftex, you can use the .pdf figures, .eps figures and .png figures (the free way, only I use the pdf figures, the other 2 I can’t tell you if it works or not), for tex 2 div you can use gif, jpeg, etc (the paid and patented way), both commanded by the next sentence
\includegraphics[height = \textheight]{a2.pdf}
This way you can add a graphic named “a2.pdf” in the same folder as the source code.
You need the “graphix” package, in the preamble put
\usepackage{graphicx}
So… ¡poof! you can put all the images you want only writing \includegraphics{”name_of_the_file”}
Regards!
April 19th, 2010 at 5:43 am
Using LNCS implies knowledge of LaTeX. Then the rest is quite simple.
> Words like ‘á’ won’t be pushed into text
Not specific to LNCS. Add to the preamble something like:
\usepackage[iso-8859-1]{inputenc}
\usepackage{T1]{fontenc}
> the demo DOESN’T EXPLAIN simply how to add the lncs style in the article class
The LNCS class completely replaces article class, you don’t need to use the latter.