Springer的投稿模板LLNCS类使⽤教程
最近写的论⽂需要使⽤到 LaTeX 格式,故学习⼀些相关的知识。不过下⾯的并不是 LaTeX 教程,只是 Springer 的 LLNCS 类,具体的LaTex 相关请见
下载的压缩包包含如下⽂件:
模板⽂件说明
<宏包的版本历史信息
llncs.cls模板类⽂件
llncs.dem⼀个编码的样例⽂件
llncs.doc⽂档的指南,本⽂的源代码等等
llncsdoc.pdf模板的使⽤指南PDF版本
llncsdoc.sty class modifications to help for the instructions
llncs.ind作者索引⽂件(模拟的)
subjidx.ind来⾃于Springer书宏包的主题索引演⽰样例
llncs.dvi⽣成的DVI样例
sprmindx.sty索引⽣成的补充宏包(使⽤⽅法: makeindex -s sprmindx.sty <yourfile.idx>)
启⽤LLNCS 类头头是道是什么意思
LLNCS 只是标准 LATEX “article” class 的拓展版本,所以在⽂章中可以使⽤所有 “article” 的语法。如果要使⽤ LLNCS class,则使⽤如下形式:
1 2 3 4 5 6\documentclass {llncs } %
\begin {document }
<Your contribution >
\end {document }
⽂章已经⽤ LATEX 写好⽽未使⽤ LLNCS 格式的情况关于法治的手抄报
请不要使⽤任何会影响⽂档布局或格式的 LATEX 或 TEX命令(即像 \textheight, \vspace, \headp, etc)。然⽽,有可能会有例外的情况下,可以使⽤⼀些。
公式输⼊
公式会以您⽂章出现的顺序在右⼿边使⽤阿拉伯数字⾃动编号。当你的⼯作在数学模式时,都是⽤斜体字排版。有时候你需要插⼊⾮数学元素(例如单词或短语)。这种插⼊的代码应该使⽤ roman(即\mbox)如下例所⽰:
长城砖
1 2
3 4\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 }
如果你想在⼀个显⽰公式后⽴即开始新的段落,插⼊⼀个空⽩⾏,以产⽣所需的缩进。如果不插⼊⼀个空⽩⾏或代码\noindent 会⽴即继续之前的⽂本⽽没有没有新的段落。
displayed 公式也使⽤相同的⽅式处理,其他普通⽂本则在结束本句前使⽤ \enspace。
注意括号的尺⼨或其他分隔符必须保证是闭合的,使⽤下⾯命令可以保证:
1\left ( 或者 \left [ 和 \right ) 或者 \right ].
斜体和 Roman 体
1. 在公式中,⼀般使⽤斜体,但下标应使⽤ Roman 体⽽不是斜体。
2. 确保⼀些物理标记使⽤ \mathrm 命令,如 Hz: \mathrm{Hz}。还有⼀些常⽤的数学函数,如 log,sin,exp,max和sup应该
使⽤:\log,\sin,\exp,\max 和 \sup。
3. 化学式应该使⽤ Roman 体,如: H2O。
4. 熟悉的单词或句⼦不应使⽤斜体,如: et al., a priori, in situ, bremsstrahlung, eigenvalues。
如何编辑输⼊代码
龇牙咧嘴
页眉部分
紫藤罗标题中的所有单词应该都⼤写,除了连词、介词 (例如 on, of, by, and, or, but, from, with, without, under) 还有定冠词和不定冠词 (the, a, an) 除⾮他们出现在开头,否则均⼩写。公式的字母必须在⽂本内排版。
⼤写和不⼤写
1. 下⾯情况均需⼤写:
1. Headings。
2. ⽂章中的缩写和表达式,如: Fig(s)., Table(s), Sect(s)., Chap(s)., Theorem, Corollary, Definition etc. 跟数
字⼀起使⽤时,如: Fig.3, Table 1, Theorem 2。
2. 下⾯情况不能⼤写:
1. 在⽂章中,当 figure(s), table(s), equation(s), theorem(s) 等词没有与编号⼀起使⽤时。
2. 图表图例和表格标题,除⾮是缩写。
词的缩写
1. 下列词除⾮是出现在句⼦开头,否则在⽂章中应该使⽤缩写: Chap., Sect., Fig.。例如: The results are depicted in
Fig.5. Figure 9 reveals that ….
注: 公式⼀般使⽤括号跟数字代替,但出现在句⼦开头时需使⽤ “Equation”。 例如:Equation (14) is very
important. However, (15) makes it clear that ….
2. 如果⽂章中有出现全局的缩写,应该在第⼀次出现的时候标明,如: Plurisubharmonic (PSH) Functions, Strong
Optimization (SOPT) Problem.
⽂章的开头
⽂章的标题(必须的)使⽤如下形式:
1\title {<Your contribution title >}
标题中所有单词应⼤写,除了连词、介词和不出现在开头的定冠词和不定冠词。标题没有结束标点。
如果是很长的标题,使⽤ \\ 另起⼀⾏。
如果你想制定⼀个页眉的内容可以通过 \documentclass 的 runningheads 参数来进⾏重新指定,对于长标题就是在页眉范围内容⽆法显⽰完全的,可以通过下⾯的命令进⾏页眉内容的缩写如:
1\titlerunning {<Your abbreviated contribution title >}
⽤下⾯的命令,可以改变⽂档在⽬录中的显⽰标题内容。
1\toctitle {<Your changed title for the table of contents >}
副标题使⽤:
1\subtitle {<subtitle of your contribution >}
作者使⽤:
1\author {<author (s ) name (s )>}
为每个作者或地址指定标号时,使⽤:
1\inst {<no >}
超过⼀位作者的话,可以使⽤ \and 分隔。例如:
1\author {Ivar Ekeland \inst {1 } \and Roger Temam \inst {2 }}
下⾯就是地址(学校,公司)了,多于⼀个地址,使⽤ \and 命令会⾃动编号,请确保跟作者顺序对应。
1 2 3\institute {<name of an institute > \and <name of the next institute > \and <name of the next institute >}
在 \institute 内使⽤ \email{<email address>} 可以提供email地址。如果在⽂章的任何地⽅需要注脚,请使⽤(immediately after the word where the footnote indicator should be placed):
1\thanks {<text >}
\thanks 仅能出现在 \title, \author and \institute中. 如果有两个或更多的脚注使⽤ \fnmp (i.e. footnote mark parator) 分隔.两栖动物的生殖和发育
1\maketitle
然后 heading 就结束了,到这⼀步为⽌,还不会产⽣任何⽂本。
接下来就是摘要:
1 2 3 4 5 6 7 8 9 10 11 12 13 14\begin {abstract }
<Text of the summary of your article >
\end {abstract }
```
### How to Code Your Text ###
⽤以下代码的话,标题会⾃动编号:
```cpp
\ction {This is a First-Order Title }
\subction {This is a Second-Order Title }
\subsubction {This is a Third-Order Title .} \paragraph {This is a Fourth-Order Title .}
\ction and \subction 没有 end punctuation。\subsubction and \paragraph 需要在末尾 punctuate。
繁星另外,theorem-like environments 会⾃动编号,如果要使⽤计数器,只需指定 envcountsame:
1\documentclass [envcountsame ]{llncs }
例如 \begin{lema},第⼀次调⽤时会编号为1,再次调⽤编号为2,以此类推。如果需要每个 ction 都重新计数,则指定为 envcountret: 1\documentclass [envcountret ]{llncs }
预定义的 Theorem-like Environments
下⾯的标题随你选择:
1. 加粗并带斜体⽂本的 run-in 标题:
1 2 3 4\begin {corollary }<text > \end {corollary }
\begin {lemma }<text > \end {lemma }
\begin {proposition }<text > \end {proposition } \begin {theorem }<text > \end {theorem }
2. 以下的⼀般表现为斜体 run-in 标题:
1\begin {proof }<text > \qed \end {proof }这不编号,并且在结束前有⼀个吸引眼球的 square (即 \qed)。
1. 更多斜体和加粗体 run-in 标题:
1 2 3 4 5 6 7 8\begin {definition }<text > \end {definition } \begin {example }<text > \end {example }
\begin {exerci }<text > \end {exerci }
\begin {note }<text > \end {note }
\begin {problem }<text > \end {problem }
\begin {question }<text > \end {question } \begin {remark }<text > \end {remark }
\begin {solution }<text > \end {solution }
⾃定义的 Theorem-like Environments
加强了标准的 \newtheorem 命令,得到两个新的命令 \ spnewtheorem 和 \spnewtheorem*,现在可以使⽤来定义新的语法。需要两个参数:type style 和 text style。type style 表⽰所出现的环境,text style 表⽰新环境的 text style。使⽤ \ spnewtheorem 的两种⽅法:
第⼀种(推荐!)
如果想与其他环境共享计数器,使⽤
1\spnewtheorem {<env _nam >}[<num _like >]{<caption >}{<cap _font >}{<body _font >}
[<num_like>] 指定为想要共享的环境。
例如:
1 2 3\spnewtheorem {mainth }[theorem ]{Main Theorem }{ \bfries }{ \itshape } \begin {theorem } The early bird gets the worm . \end {theorem }
\begin {mainth } The early worm gets eaten . \end {mainth }
输出为:
1 2Theorem 3 . The early bird gets the worm . Main Theorem 4 . The early worm gets eaten .
第⼆种
1\spnewtheorem {<env _nam >}{<caption >}[<within >]{<cap _font >}{<body _font >}
上述代码会定义⼀个名为 <env_name> 的环境,它以 <cap_font> 打印标题 <caption>, 它以<body_font> 打印⽂本。在每个新 ction 指定 <within> 时,会重新编号。
例如:
1\spnewtheorem {joke }{Joke }[subction ]{ \bfries }{ \rmfamily }
如果想要⾮编号环境,使⽤:
最小的国家1\spnewtheorem* {<env _nam >}{<caption >}{<cap _font >}{<body _font >}
程序代码
可以使⽤ verbatim 环境或者 LATEX 的 verbatim package。
⽂章⽰例:
1\title {Hamiltonian Mechanics }