Hot answers tagged

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.


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


8

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


7

The problem lies in your bibtex file field names, which are incorrect if you are using bibtex to process your bibliography (which you are). As you note in the comments, you had been using the bibliography manager included in TeXStudio, which allows you to choose between biblatex and bibtex. biblatex supports a much richer data model than traditional bibtex ...


6

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}


6

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


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) = \left(\begin{...


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 TEXMFHOME)/tex/latex/llncs/...


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 \spnewtheorem{...


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

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}{}{} \patchcmd{\maketitle}{\addcontentsline}{\llncs@addcontentsline}{}{...


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


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


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

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


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

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


4

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 \includegraphics[a=b,x=y]{foo} There is no reason at all to use epsfig, unless ...


4

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

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

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} \begin{proof}...


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

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}% % \markboth{\...


3

You need to specify the bibliography style that is to be applied -- the document class llncs doesn't do that for you. Springer distributes the style file splncs03.bst along with the document class file llncs.cls. Your preamble should therefore contain the following instructions \documentclass{llncs} ... \bibliographystyle{splncs03} ... Whenever the ...


3

Use enumitem with an appropriate leftmargin: \documentclass{llncs} \usepackage{enumitem} \begin{document} Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. ...


2

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


2

You may add an invisible anchor at the end of the minipages: \begin{table}[t] \begin{minipage}[b]{.50\textwidth }% \footnotesize\centering \begin{tabular}{ | c || c | c | c | c | } \hline \textbf{ABC} & \textbf{KO} & \textbf{Ro} & \textbf{Ov} & \textbf{Params} \\ \hline \multicolumn{5}{|c|}{\textbf{Well this is a text here}} \\ \hline \...



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