![将包附录与 llncs 结合使用](https://linux22.com/image/291228/%E5%B0%86%E5%8C%85%E9%99%84%E5%BD%95%E4%B8%8E%20llncs%20%E7%BB%93%E5%90%88%E4%BD%BF%E7%94%A8.png)
我正在尝试让附录与 llncs 一起作为我的文档类。
这个最小示例不起作用(即抱怨 \@chapapp 未定义)。将 llncs 更改为 article 可修复此问题(我猜包会发现 article 没有章节)。
\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}
使用subappendices
环境编译但打印“附录 0.A”...我想我可以使用子附录,但我需要一种方法来摆脱那个 0。
那么应该选择哪一个呢?子附录(这并不奇怪,因为 llncs 和文章一样,最多只能到章节)并以某种方式删除前导 0。(这样做可获得加分),或者告诉程序包它应该以某种方式按章节而不是章节进行编号?
答案1
我不知道 OP 是否有这个意思,但是这会删除前导零并进行编译。
appendix
包似乎期望\@chapapp
基本上应该存在,即使对于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}
编辑:\relax
版本与ed兼容\@chapapp
,现在可以\begin{appendices}...etc
按预期工作。
\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}
注意:我没有更新屏幕截图,它没有显示本质上新的输出。