[Tex/LaTex] Using package appendix with llncs

appendiceslncs

I'm trying to get appendices to work with llncs as my document class.

This minimal example does not work (i.e. complains about \@chapapp being undefined). Changing llncs to article fixes this (I guess the package figures out that article does not have chapters).

\documentclass{llncs}
\usepackage[title]{appendix}
\begin{document}
\begin{appendices}
\section{Also you should know this}
Really.
\section{And I also came across this}
But I need to put this in an appendix so that my paper is not too long.
\end{appendices}
\end{document}

Using the subappendices environment compiles but prints "Appendix 0.A"… I guess I'm fine with using subappendices, but I need a way to get rid of that 0.

So which should it be? Subappendices (not that weird since llncs, like article, only goes up to sections) and removing the leading 0. somehow (bonus points for that), or telling the package that it somehow should number with sections instead of chapters?

Best Answer

I do not know whether the OP meant something like this, but this removes the leading zero and compiles.

appendix package seems to expect \@chapapp which basically should be there, even for llncs.cls.

\documentclass{llncs}
\usepackage[title]{appendix}


\title{A very sophisticated document}
\begin{document}
\maketitle

\begin{subappendices}
\renewcommand{\thesection}{\Alph{section}}%
% or try \arabic{section}

\section{Also you should know this}
Really.
\section{And I also came across this}
But I need to put this in an appendix so that my paper is not too long.
\end{subappendices}


\end{document}

enter image description here

Edit: Version works with \relaxed \@chapapp, now \begin{appendices}...etc work as expected.

\documentclass{llncs}

\makeatletter
\newcommand{\@chapapp}{\relax}%
\makeatother

\usepackage[title,toc,titletoc,header]{appendix}



\title{A Very Sophisticated Document}
\begin{document}
\maketitle
\tableofcontents

\section{Other Content}

\begin{subappendices}
\renewcommand{\thesection}{\Alph{section}}%
% or try \arabic{section}

\section{Also you should know this}
Really.
\section{And I also came across this}
But I need to put this in an appendix so that my paper is not too long.
\end{subappendices}


\begin{appendices}
\renewcommand{\thesection}{\appendixname~\Alph{section}}
\section{Also you should know this}
Really.
\section{And I also came across this}
But I need to put this in an appendix so that my paper is not too long.

\end{appendices}

\end{document}

Note: I did not update the screen shot, it does not show essentially new output.

Related Question