Hot answers tagged

9

The llncs class sets tocdepth to 0. This setting controls which sectioning commands end up in the Table-Of-Contents (TOC), which is also used by hyperref for the PDF bookmarks depth by default. You need to set the bookmarksdepth manually to a higher value (higher means more deeper sectioning commands are included). An alternative is to raise tocdepth again, ...


9

Here's a solution that uses only low-level LaTeX macros. (Copy the material starting with \makeatletter and ending with \makeatother to your document's preamble.) The example below employs the llncs document class, but works equally well with the article document class. The trick, such as it is, consists of telling LaTeX to prefix the String "Appendix" to ...


9

The problem is that the class file defines the caption commands and caption package hates it. As the package author of caption and subcaption, Alex Sommerfeldt mentions this problem in this answer Subcaption package: compatibility issue with a problem related to (again) another class file. \captionsetup{compatibility=false} would make the problem go ...


9

The llncs class sets \setcounter{tocdepth}{0} so the todo items, which are declared as level 1 don't appear: \setcounter{tocdepth}{1} \listoftodos will show the items.


8

The showframe package can help with this: \usepackage{showframe}


6

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 ...


6

Without amsmath, you can set a pmatrix as an array with column specification @{}*{<num>}{c}@{}. This sets <num> columns with centered content and not spacing @{} on either side of the matrix: \documentclass{llncs}% http://www.springer.com/computer/lncs/lncs+authors?SGWID=0-40209-0-0-0 \begin{document} \begin{equation} S(x) = ...


5

The llncs class loads the article class with the twoside option and doesn't have a oneside option. You can revert back to "oneside" by switching manually: \makeatletter \let\@twosidetrue\@twosidefalse \let\@mparswitchtrue\@mparswitchfalse \makeatother \documentclass{llncs} \usepackage[left=3.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}


5

I cannot find a class or package named lncs, did you mean llncs.cls? I can find only one inconsistency between llncs.cls and amsmath.sty: When amsmath tries to redefine math accents, it complains that it cannot redefine \vec. This is only a warning and can be safely ignored if you don't use \vec or are satisfied with the llncs definition of \vec. You can ...


5

The problem is that your tikzpicture is too big for the minipage. I added \usepackage{showframe} so that we can see where the margins are. As you can see from the two minipages of text, things fit fine. Only with the tikzpicture do you have the overflow. Hence you need to reduce the size of your picture by adjusting the scale. Notes: Using ...


5

If you want to employ llncs for your personal use, then \documentclass{llncs} \usepackage{etoolbox} \makeatletter \let\llncs@addcontentsline\addcontentsline \patchcmd{\maketitle}{\addcontentsline}{\llncs@addcontentsline}{}{} \patchcmd{\maketitle}{\addcontentsline}{\llncs@addcontentsline}{}{} ...


5

You can define new theorem-like environments numbered as you like. If you want definitions to use their own counter, you can do \spnewtheorem{defn}{Definition}{\bfseries}{\rmfamily} and this will do. You could also redefine the definition environment: \documentclass[envcountsame]{llncs} \let\definition\relax % undefine the environment ...


5

I think this behaviour is intended. The llncs document class is used to put multiple articles into one volume. Each article title appears in the table of contents and the pdf bookmarks, but sections within the articles do not. \documentclass{llncs} \usepackage{hyperref} \begin{document} \tableofcontents % \title{Sheep} \maketitle \section{Black sheep} ...


4

The space above \subsubsection is similar to that above a \subsection and \section, according to llncs.cls. You need to update the lengths to your liking: \documentclass{llncs}% http://www.springer.com/computer/lncs?SGWID=0-164-6-793341-0 \begin{document} \section{A section} Some text \subsection{A subsection} Some text \subsubsection{A subsubsection} ...


4

Yes, that is possible. In the preamble, do \authorrunning{First Author et al.}


4

Not sure if it is what you are looking for, but for a recent llncs-based paper I used something like \usepackage{url} \urldef{\mailsa}\path|author1@someinst.something| \urldef{\mailsb}\path|author2@someotherinst.something| in the preamble, and after the mainmatter, the institute commands reads \institute{affiliation goes here\\ \mailsa\\ \mailsb}


4

The zip file has only splncs03.bst which uses alphabetical order. However, Springer also provides splncs.bst that uses order of appearance. You can download it at ftp://ftp.springer.de/pub/tex/latex/llncs/latex2e/splncs.bst


4

The package iwona sets the math fonts in a way that's incompatible with fontaxes, which is required by libertine. The warning does not depend on the class, as it shows also with the article class as soon as one issues \boldmath which llncs.cls does when section titles are typeset. You get the same result, with no warning or error, by defining directly ...


3

epsfig in its current form isn't actually ancient. It was written at same time as graphicx but it is emulating the much older latex2.09 package of the same name. Its behaviour is identical to \includegraphics just a small syntax change \epsfig{file=foo,a=b,x=y} becomes \includegrahics[a=b,x=y]{foo} there is no reason at all to use it unless processing ...


3

The llncs class defines \chapter to have no page number on the chapter start page. Since \tableofcontents is effectively using \chapter*, the empty page style applies to the toc starter page too. This code removes the \thispagestyle temporarily for the ToC only. \documentclass[deutsch]{llncs} \usepackage{xpatch} \let\classtableofcontents\tableofcontents% ...


3

It is possible to use PGF/TikZ to draw a rectangle around the text area (or the whole page etc.). I modified my answer to Stretching a framebox over the whole page so it draws the rectangle around the full text area. In my test it works well with the llncs class and others. You can place it in the footer then it is inserted on any page. Note that the ...


3

The class already has its own theorem and proof structures defined, so your \newtheorem is causing an error since tries to define commands already defined. This class implements its own commands for theorem-like structures, so I wouldn't use amsthm here: \documentclass[article]{llncs} \begin{document} \begin{theorem}[Test] test \end{theorem} ...


3

Doing what you ask is very easy: add \usepackage{etoolbox} \patchcmd{\paragraph}{\itshape}{\bfseries\boldmath}{}{} to your document preamble. However, this will make the typesetting of \paragraph titles very similar to what's already done for \subsubsection. As far as I understand, the llncs class has three levels of sectioning, corresponding to ...


3

This is how the class defines the sectional units: \renewcommand\section{\@startsection{section}{1}{\z@}% {-18\p@ \@plus -4\p@ \@minus -4\p@}% {12\p@ \@plus 4\p@ \@minus 4\p@}% {\normalfont\large\bfseries\boldmath \rightskip=\z@ \@plus 8em\pretolerance=10000 }} ...


3

Contrary to the article class, the llncs class doesn't use \MakeUppercase to typeset headers. You may change the definition of biblatex's bibliography bibheading to emulate llncs' behaviour. \documentclass[runningheads,a4paper]{llncs} \usepackage{biblatex} \makeatletter \defbibheading{bibliography}[\refname]{% \section*{#1}% % ...


2

If the figure happens to be on the very last page with no text following it it is centered as illustrated by the MWE below (if you comment out the \setlength line). As per Vertical layout of float pages the values that control the distances between floats are: \@fptop defines the distance from the top of the page to the top of the first float, ...


2

I'm not entirely sure why, but it's the \qed that breaks the line numbers. Here's an easy fix: just wrap it in math mode, i.e. $\qed$. Replacing the lines as follows fixes it: \let\doendproof\endproof \renewcommand\endproof{~\hfill$\qed$\doendproof}


2

You could e.g. suppress the heading printed by biblatex: \section*{\bibname} \printbibliography[heading=none]


2

The correct way is using \thanks, not \footnote: \documentclass[runningheads]{llncs} \usepackage{kantlipsum} \begin{document} \title{LaTeX Template for Your LNCS Paper} \author{Author 1\thanks{Supervised by Author 9}, Author 2} \institute{Lab, University, Address} \maketitle \begin{abstract} Abstract is here. \end{abstract} ...


2

llncs.cls is downloadable at ftp://ftp.springer.de/pub/tex/latex/llncs/latex2e/llncs2e.zip With titlesec: \documentclass{llncs} \let\subparagraph\relax \usepackage{titlesec} \titleformat{\section}[display] {\normalfont\huge\bfseries}{\chaptertitlename\ \thesection}{20pt}{\Huge} \begin{document} \section{a section} Some text \subsection{a subsection} ...



Only top voted, non community-wiki answers of a minimum length are eligible