LATEX For Lecture Notes in Computer Science
LATEX For Lecture Notes in Computer Science
LATEX 2ε Class
for Lecture Notes
in Computer Science
Version 2.4
Springer
Berlin Heidelberg New York
Barcelona Budapest Hong Kong
London Milan Paris
Santa Clara Singapore Tokyo
2 LATEX 2ε Class for Lecture Notes in Computer Science
This macro package, as well as all other macro packages, style files, and docu-
ment classes that Springer distributes, are also available through our mailserver
(for people with only e-mail access).
svserv@vax.ntp.springer.de first try the help command.
We are also reachable through the world wide web:
URLs are http://www.springer.de
gopher://ftp.springer.de
ftp://ftp.springer.de
Table of Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 How to Proceed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 How to Invoke the LLNCS Document Class . . . . . . . . . . . . . . . . . . . 4
2.2 Contributions Already Coded with LATEX without the LLNCS
document class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 General Rules for Coding Formulas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Italic and Roman Type in Math Mode . . . . . . . . . . . . . . . . . . . . . . . 6
4 How to Edit Your Input (Source) File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.1 Headings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.2 Capitalization and Non-capitalization . . . . . . . . . . . . . . . . . . . . . . . . 6
4.3 Abbreviation of Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 How to Code the Beginning of Your Contribution . . . . . . . . . . . . . . . . . . 7
6 Special Commands for the Volume Editor . . . . . . . . . . . . . . . . . . . . . . . . . 9
7 How to Code Your Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
8 Predefined Theorem like Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
9 Defining your Own Theorem like Environments . . . . . . . . . . . . . . . . . . . . 11
9.1 Method 1 (preferred) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
9.2 Method 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
9.3 Unnumbered Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
10 Program Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
11 Fine Tuning of the Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
12 Special Typefaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
13 Footnotes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
14 Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
15 Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
16 Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
16.1 Tables Coded with LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
16.2 Tables Not Coded with LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
16.3 Signs and Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
17 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
17.1 References by Letter-Number or by Number Only . . . . . . . . . . . . . 21
17.2 Author-Year System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4 LATEX 2ε Class for Lecture Notes in Computer Science
1 Introduction
Authors wishing to code their contribution with LATEX, as well as those who
have already coded with LATEX, will be provided with a document class that
will give the text the desired layout. Authors are requested to adhere strictly to
these instructions; the class file must not be changed.
The text output area is automatically set within an area of 12.2 cm horizon-
tally and 19.3 cm vertically.
If you are already familiar with LATEX, then the LLNCS class should not give
you any major difficulties. It will change the layout to the required LLNCS style
(it will for instance define the layout of \section). We had to invent some extra
commands, which are not provided by LATEX (e.g. \institute, see also Sect. 5)
For the main body of the paper (the text) you should use the commands of the
standard LATEX “article” class. Even if you are familiar with those commands,
we urge you to read this entire documentation thoroughly. It contains many
suggestions on how to use our commands properly; thus your paper will be
formatted exactly to LLNCS standard. For the input of the references at the end
of your contribution, please follow our instructions given in Sect. 17 References.
The majority of these hints are not specific for LLNCS; they may improve
your use of LATEX in general. Furthermore, the documentation provides sugges-
tions about the proper editing and use of the input files (capitalization, abbre-
viation etc.) (see Sect. 4 How to Edit Your Input File).
2 How to Proceed
The package consists of the following files:
history.txt the version history of the package
llncs.cls class file for LATEX
llncs.dem an example showing how to code the text
llncs.doc general instructions (source of this document),
llncs.doc means l atex documentation for
Lecture Notes in C omputer S cience
llncsdoc.sty class modifications to help for the instructions
llncs.ind an external (faked) author index file
subjidx.ind subject index demo from the Springer book package
llncs.dvi the resultig DVI file (remember to use binary transfer!)
sprmindx.sty supplementary style file for MakeIndex
(usage: makeindex -s sprmindx.sty <yourfile.idx>)
\documentclass{llncs}
%
\begin{document}
<Your contribution>
\end{document}
\begin{equation}
\left(\frac{a^{2} + b^{2}}{c^{3}} \right) = 1 \quad
\mbox{ if } c\neq 0 \mbox{ and if } a,b,c\in \bbbr \enspace .
\end{equation}
Sample Output
a2 + b 2
=1 if c 6= 0 and if a, b, c ∈ IR . (1)
c3
If you wish to start a new paragraph immediately after a displayed equation,
insert a blank line so as to produce the required indentation. If there is no
6 LATEX 2ε Class for Lecture Notes in Computer Science
new paragraph either do not insert a blank line or code \noindent immediately
before continuing the text.
Please punctuate a displayed equation in the same way as other ordinary
text but with an \enspace before end punctuation.
Note that the sizes of the parentheses or other delimiter symbols used in
equations should ideally match the height of the formulas being enclosed. This
is automatically taken care of by the following LATEX commands:
\left( or \left[ and \right) or \right].
a) In math mode LATEX treats all letters as though they were mathematical
or physical variables, hence they are typeset as characters of their own in
italics. However, for certain components of formulas, like short texts, this
would be incorrect and therefore coding in roman is required. Roman should
also be used for subscripts and superscripts in formulas where these are
merely labels and not in themselves variables, e.g. Teff not Tef f , TK not TK
(K = Kelvin), me not me (e = electron). However,
P do not code for roman if
the sub/superscripts represent variables, e.g. ni=1 ai .
b) Please ensure that physical units (e.g. pc, erg s−1 K, cm−3 , W m−2 Hz−1 ,
m kg s−2 A−2 ) and abbreviations such as Ord, Var, GL, SL, sgn, const.
are always set in roman type. To ensure this use the \mathrm command:
\mathrm{Hz}. On p. 44 of the LATEX User’s Guide & Reference Manual by
Leslie Lamport you will find the names of common mathematical functions,
such as log, sin, exp, max and sup. These should be coded as \log, \sin,
\exp, \max, \sup and will appear in roman automatically.
c) Chemical symbols and formulas should be coded for roman, e.g. Fe not F e,
H2 O not H2 O.
d) Familiar foreign words and phrases, e.g. et al., a priori, in situ, bremsstrah-
lung, eigenvalues should not be italicized.
4.1 Headings
\maketitle
then formats the complete heading of your article. If you leave it out the work
done so far will produce no text.
Then the abstract should follow. Simply code
\begin{abstract}
<Text of the summary of your article>
\end{abstract}
or refer to the demonstration file llncs.dem for an example or to the Sample
Input on p. 12.
\documentclass[envcountsame]{llncs}
\documentclass[envcountreset]{llncs}
It is unnumbered and may contain an eye catching square (call for that with
\qed) before the environment ends.
c) Further italic or bold run-in headings with roman environment body may
also occur:
LATEX 2ε Class for Lecture Notes in Computer Science 11
You may want to create an environment that shares its counter with another
environment, say main theorem to be numbered like the predefined theorem. In
this case, use the syntax
\spnewtheorem{<env_nam>}[<num_like>]{<caption>}
{<cap_font>}{<body_font>}
Here the environment with which the new environment should share its counter
is specified with the optional argument [<num_like>].
Sample Input
\spnewtheorem{mainth}[theorem]{Main Theorem}{\bfseries}{\itshape}
\begin{theorem} The early bird gets the worm. \end{theorem}
\begin{mainth} The early worm gets eaten. \end{mainth}
Sample Output
Theorem 3. The early bird gets the worm.
Main Theorem 4. The early worm gets eaten.
The sharing of the default counter ([theorem]) is desired. If you omit the
optional second argument of \spnewtheorem a separate counter for your new
environment is used throughout your document.
12 LATEX 2ε Class for Lecture Notes in Computer Science
\spnewtheorem{<env_nam>}{<caption>}[<within>]
{<cap_font>}{<body_font>}
This defines a new environment <env_nam> which prints the caption <caption>
in the font <cap_font> and the text itself in the font <body_font>. The en-
vironment is numbered beginning anew with every new sectioning element you
specify with the optional parameter <within>.
Example
\spnewtheorem{joke}{Joke}[subsection]{\bfseries}{\rmfamily}
defines a new environment called joke which prints the caption Joke in boldface
and the text in roman. The jokes are numbered starting from 1 at the beginning
of every subsection with the number of the subsection preceding the number of
the joke e.g. 7.2.1 for the first joke in subsection 7.2.
\spnewtheorem*{<env_nam>}{<caption>}{<cap_font>}{<body_font>}
10 Program Codes
In case you want to show pieces of program code, just use the verbatim en-
vironment or the verbatim package of LATEX. (There also exist various pretty
printers for some programming languages.)
\title{Hamiltonian Mechanics}
\maketitle
%
\begin{abstract}
LATEX 2ε Class for Lecture Notes in Computer Science 13
\end{theorem}
\begin{definition}
We shall say that a $C^{1}$ function $\Phi:X\to\bbbr$
satisfies \dots
\end{definition}
Sample Output (follows on the next page together with examples of the above
run-in headings)
Hamiltonian Mechanics
With this chapter, the preliminaries are over, and we begin the search for periodic
solutions . . .
In this section we will consider the case when the Hamiltonian H(x) . . .
Proof (of proposition). Condition (8) means that, for every δ 0 > δ, there is some
ε > 0 such that . . . t
u
12 Special Typefaces
Normal type (roman text) need not be coded. Italic ({\em <text>} better still
\emph{<text>}) or, if necessary, boldface should be used for emphasis.
{\itshape Text} Italicized Text
{\em Text} Emphasized Text – if you would like to emphasize a defini-
tion within an italicized text (e.g. of a theorem) you should
code the expression to be emphasized by \em.
{\bfseries Text} Important Text
\vec{Symbol} Vectors may only appear in math mode. The default LATEX
vector symbol has been adapted3 to LLNCS conventions.
$\vec{A \times B\cdot C} yields A × B · C
$\vec{A}^{T} \otimes \vec{B} \otimes
\vec{\hat{D}}$yields AT ⊗ B ⊗ D̂
3
If you absolutely must revive the original LATEX design of the vector symbol (as an
arrow accent), please specify the option [orivec] in the documentclass line.
LATEX 2ε Class for Lecture Notes in Computer Science 17
13 Footnotes
Footnotes within the text should be coded:
\footnote{Text}
Sample Input
Text with a footnote\footnote{The footnote is automatically
numbered.} and text continues . . .
Sample Output
Text with a footnote4 and text continues . . .
14 Lists
Please code lists as described below:
Sample Input
\begin{enumerate}
\item First item
\item Second item
\begin{enumerate}
\item First nested item
\item Second nested item
\end{enumerate}
\item Third item
\end{enumerate}
Sample Output
1. First item
2. Second item
(a) First nested item
(b) Second nested item
3. Third item
15 Figures
Figure environments should be inserted after (not in) the paragraph in which
the figure is first mentioned. They will be numbered automatically.
Preferably the images should be enclosed as PostScript files – best as EPS
data using the epsfig package.
If you cannot include them into your output this way and use other tech-
niques for a separate production, the figures (line drawings and those containing
4
The footnote is automatically numbered.
18 LATEX 2ε Class for Lecture Notes in Computer Science
halftone inserts as well as halftone figures) should not be pasted into your laser-
printer output. They should be enclosed separately in camera-ready form (orig-
inal artwork, glossy prints, photographs and/or slides). The lettering should be
suitable for reproduction, and after a probably necessary reduction the height
of capital letters should be at least 1.8 mm and not more than 2.5 mm. Check
that lines and other details are uniformly black and that the lettering on figures
is clearly legible.
To leave the desired amount of space for the height of your figures, please use
the coding described below. As can be seen in the output, we will automatically
provide 1 cm space above and below the figure, so that you should only leave
the space equivalent to the size of the figure itself. Please note that “x” in the
following coding stands for the actual height of the figure:
\begin{figure}
\vspace{x cm}
\caption[ ]{...text of caption...} (Do type [ ])
\end{figure}
Sample Input
\begin{figure}
\vspace{2.5cm}
\caption{This is the caption of the figure displaying a white
eagle and a white horse on a snow field}
\end{figure}
Sample Output
Fig. 1. This is the caption of the figure displaying a white eagle and a white horse on
a snow field
16 Tables
Table captions should be treated in the same way as figure legends, except that
the table captions appear above the tables. The tables will be numbered auto-
matically.
LATEX 2ε Class for Lecture Notes in Computer Science 19
Sample Output
L Te
M β0 Tc6 γ Ncrit Ncrit
For further information you will find a complete description of the tabular
environment on p. 62 ff. and p. 204 of the LATEX User’s Guide & Reference
Manual by Leslie Lamport.
\begin{table}
\caption{text of your caption}
\vspace{x cm} % the actual height needed for your table
\end{table}
Gothic (Fraktur). If gothic letters are necessary, please use those of the rel-
evant AMS-TEX alphabet which are available using the amstex package of the
American Mathematical Society.
In LATEX only the following gothic letters are available: $\Re$ yields < and
$\Im$ yields =. These should not be used when you need gothic letters for
your contribution. Use AMS-TEX gothic as explained above. For the real and
the imaginary parts of a complex number within math mode you should use
instead: $\mathrm{Re}$ (which yields Re) or $\mathrm{Im}$ (which yields Im).
Special Roman. If you need other symbols than those below, you could use the
blackboard bold characters of AMS-TEX, but there might arise capacity prob-
lems in loading additional AMS-TEX fonts. Therefore we created the blackboard
bold characters listed below. Some of them are not esthetically satisfactory. This
need not deter you from using them: in the final printed form they will be re-
placed by the well-designed MT (monotype) characters of the phototypesetting
machine.
\bbbc (complex numbers) yields C \bbbf (blackboard bold F) yields IF
\bbbh (blackboard bold H) yields IH \bbbk (blackboard bold K) yields IK
\bbbm (blackboard bold M) yields IM \bbbn (natural numbers N) yields IN
\bbbp (blackboard bold P) yields IP \bbbq (rational numbers) yields Q
\bbbr (real numbers) yields IR \bbbs (blackboard bold S) yields S
\bbbt (blackboard bold T) yields T \bbbz (whole numbers) yields ZZ
\bbbone (symbol one) yields 1l
C IM IP
CC ⊗ IFIFIF ⊗ IHIHIH ⊗ IKIKIK ⊗ IMIM ⊗ INININ ⊗ IPIP
IR T
⊗QQQ ⊗ IRIR ⊗ SSS ⊗ TT ⊗ ZZ ⊗ 1l1l1l
LATEX 2ε Class for Lecture Notes in Computer Science 21
17 References
There are three reference systems available; only one, of course, should be used
for your contribution. With each system (by number only, by letter-number
or by author-year) a reference list containing all citations in the text, should
be included at the end of your contribution placing the LATEX environment
thebibliography there. For an overall information on that environment see
the LATEX User’s Guide & Reference Manual by Leslie Lamport, p. 71.
There is a special BibTEX style for LLNCS that works along with the class:
splncs.bst – call for it with a line \bibliographystyle{splncs}. If you plan
to use another BibTEX style you are customed to, please specify the option
[oribibl] in the documentclass line, like:
\documentclass[oribibl]{llncs}
This will retain the original LATEX code for the bibliographic environment and
the \cite mechanism that many BibTEX applications rely on.
References
[CE1] Clarke, F., Ekeland, I.: Nonlinear oscillations and boundary-value problems for
Hamiltonian systems. Arch. Rat. Mech. Anal. 78 (1982) 315–333
[CE2] Clarke, F., Ekeland, I.: Solutions périodiques, du période donnée, des équations
hamiltoniennes. Note CRAS Paris 287 (1978) 1013–1015
[MT1] Michalek, R., Tarantello, G.: Subharmonic solutions with prescribed minimal
period for nonautonomous Hamiltonian systems. J. Diff. Eq. 72 (1988) 28–55
[Ta1] Tarantello, G.: Subharmonic solutions for Hamiltonian systems via a ZZ p pseu-
doindex theory. Annali di Matematica Pura (to appear)
[Ra1] Rabinowitz, P.: On subharmonic solutions of a Hamiltonian system. Comm.
Pure Appl. Math. 33 (1980) 609–633
Number-Only System. For this preferred system do not use the optional
argument in the \bibitem command: then, only numbers will appear for the
citations in the text (enclosed in square brackets) as well as for the marks in your
bibliography (here the number is only end-punctuated without square brackets).
Subsequent citation numbers in the text are collapsed to ranges. Non-numeric
and undefined labels are handled correctly but no sorting is done.
E.g., \cite{n1,n3,n2,n3,n4,n5,foo,n1,n2,n3,?,n4,n5} – where nx is the
key of the xth \bibitem command in sequence, foo is the key of a \bibitem with
an optional argument, and ? is an undefined reference – gives 1,3,2-5,foo,1-3,?,4,5
as the citation reference.
\begin{thebibliography}{1}
\bibitem {clar:eke}
Clarke, F., Ekeland, I.:
Nonlinear oscillations and boundary-value problems for
Hamiltonian systems.
Arch. Rat. Mech. Anal. {\bfseries 78} (1982) 315--333
\end{thebibliography}
How to Code Author-Year System. If you want to use this system you have
to specify the option [citeauthoryear] in the documentclass, like:
\documentclass[citeauthoryear]{llncs}
Write your citations in the text explicitly except for the year, leaving that up
to LATEX with the \cite command. Then give only the appropriate year as
the optional argument (i.e. the label in square brackets) with the \bibitem
command(s).
Sample Input
The results in this section are a refined version
of Clarke and Ekeland (\cite{clar:eke}); the minimality result of
Proposition~14 was the first of its kind.
The above input produces the citation: “. . . refined version of Clarke and Eke-
land (1982); the minimality. . . ”. Then the \bibitem entry of clar:eke in the
thebibliography environment should read:
\begin{thebibliography}{} % (do not forget {})
.
.
\bibitem[1982]{clar:eke}
Clarke, F., Ekeland, I.:
Nonlinear oscillations and boundary-value problems for
Hamiltonian systems.
Arch. Rat. Mech. Anal. {\bfseries 78} (1982) 315--333
.
.
\end{thebibliography}
Sample Output
References
Clarke, F., Ekeland, I.: Nonlinear oscillations and boundary-value problems for Hamil-
tonian systems. Arch. Rat. Mech. Anal. 78 (1982) 315–333