我正在使用 MiKTeX 2.9、TeXnicCenter 2.02(编译配置文件 LaTeX => PDF)。我正在尝试使用乳胶book 类来创建一本书。我不能使用 \appendix 命令。例如,以下代码:
\documentclass[book
,a4paper
,14pt
,russian
,openright
]{ncc}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\frontmatter
\author{Автор}
\title{Название}
\maketitle
\tableofcontents
\mainmatter
\chapter{глава}
Текст
\chapter{глава}
Текст
\chapter{глава}
Текст
\appendix
\chapter{Прил}
Текст приложения
\chapter{Прил}
Текст приложения
\end{document}
编译时出现错误(标准类书此示例通常可以编译):
! Undefined control sequence.
\@Alph #1->\text {\cyr \@Asbuk
{#1}}
l.67 \chapter{Прил}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
}
l.67 \chapter{Прил}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
我不想使用其他类。NCC 类的作者已将其改编为适合俄罗斯拼版标准。
在我看来,LaTeX 不喜欢附录编号中的俄文字母,但我不知道该怎么办。
答案1
您可以尝试以下操作:
\documentclass[book
,a4paper
,14pt
,russian
,openright
]{ncc}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\makeatletter
\let \@Asbuk\russian@Alph
\let \@asbuk\russian@alph
\makeatother
\begin{document}
\frontmatter
\author{Автор}
\title{Название}
\maketitle
\tableofcontents
\mainmatter
\chapter{глава}
Текст
\chapter{глава}
Текст
\chapter{глава}
Текст
\appendix
\chapter{Прил}
Текст приложения
\chapter{Прил}
Текст приложения
\end{document}