[Tex/LaTex] How to use predefined command in LNCS

lncs

When I check the llncs.cls, I find several commands that are already defined, for example:

\def\ackname{Acknowledgement.}  
\def\appendixname{Appendix} 

But how to use these commands? I tried with \begin{ackname} ... \end{ackname}, and it doesn't work. Thanks.

Best Answer

Try this example:

\documentclass{llncs}

\begin{document}

\section{Introduction}
Testing names:

\abstractname

\ackname

\appendixname

\section{Test}

\begin{abstract}
  This is the abstract.
\end{abstract}

\renewcommand{\abstractname}{\ackname}

\begin{abstract}
  This are the acknowledgements.
\end{abstract}

\section{\appendixname}
This is an appendix.


\end{document}

enter image description here

Then, change the line

\documentclass{llncs}

to

\documentclass[francais]{llncs}

and see what happens: all names have changed because llncs redefines them for French language.

enter image description here


As you can see, loading the llncs class with the option francais (you can also use the option deutsch to switch to German) all the names are switched to French.

Also note that this class doesn't define any predefined command for using \appendixname or \ackname. You have to load packages that use these names for exploiting them somehow.