Как получить «Аппендикс» ина той же строке

Как получить «Аппендикс» ина той же строке

Можно ли разместить «Приложение X» на той же строке, возможно, с двоеточием после буквы идентификатора приложения?

МВЭ:

\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} 

введите описание изображения здесь

Связанный контент