"부록"을 얻는 방법과같은 줄에

"부록"을 얻는 방법과같은 줄에

"부록 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} 

여기에 이미지 설명을 입력하세요

관련 정보