
「付録 X」を同じ行に、付録の識別子文字の後にコロンを付けて表示することは可能ですか?
MWE:
\documentclass{report}
\begin{document}
\tableofcontents
\chapter{CHapter one name}
\chapter{Chapter two name two}
\appendix
\chapter{Theory}
\section{Some theory}
\section{Some other theory}
\chapter{Method}
\section{LOLZ}
\section{ROLF}
\end{document}
ご覧のとおり、コンパイルされた PDF には次のように書かれています。
Appendix A
Theory
A.1 Some Theory
こんな感じにしたいです:
Appendix A: Theory
A.1 Some Theory
答え1
titlesec
とを使用した方法を以下に示しますapptools
。付録の章はページの上部に配置されますが、間隔パラメータは自由に変更できます。
\documentclass{report}
\usepackage{showframe}
\usepackage{titlesec}
\usepackage{apptools}
\AtAppendix{\titleformat{\chapter}[block]{\LARGE\bfseries}{\appendixname~\thechapter:}{0.333em}{}%
\titlespacing*{\chapter}{0pt}{-20pt}{40pt}}
\begin{document}
\tableofcontents
\chapter{Chapter one name}
\chapter{Chapter two name two}
\appendix
\chapter{Theory}
\section{Some theory}
\section{Some other theory}
\chapter{Method}
\section{LOLZ}
\section{ROLF}
\end{document}