
부록이 2개의 타이틀을 생산하는 이유가 있나요?
\documentclass[12pt,oneside]{report}
\begin{document}
test
\appendix
\chapter{\textrm\bfseries Appendixtest2}\label{append}
\end{document}
부록 제목(\section이 아닌 \chapter 사용)을 다음 형식으로 강제할 수 있나요?
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\huge}
답변1
(1) \appendix
제목이 생성되지 않고 \chapter
"Chapter 1" 대신 "Appendix A"를 인쇄하도록 동작 만 변경됩니다.
\chapter
(2) 한 줄에는 , With \chaptertitlename
(부록) 및 (A) 에 의해 생성된 제목이 하나만 있고 \thechapter
다른 줄에는 장 인수(Appendixtest2)가 있습니다.
\titleformat
(3) 패키지를 사용하여 해당 명령으로 장 제목 형식을 강제로 적용할 수 있습니다.titlesec
:
\documentclass[12pt,oneside]{report}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\huge}
\begin{document}
\appendix
\chapter{The title of the appendix}
\end{document}
그러나 기본 형식을 기본 형식으로 강제 설정하려고 한다는 점에 유의하세요!따라서 아무런 효과도 볼 수 없습니다.
예를 들어 한 줄에 하나의 제목만 사용하는 등 다른 형식을 사용해도 실제로 작동한다는 것을 알 수 있습니다.
\documentclass[12pt,oneside]{report}
\usepackage{titlesec}
\titleformat{\chapter}{\Large}{\chaptertitlename\ \thechapter:}{1em}{\bfseries}
\begin{document}
\appendix
\chapter{The title of the appendix}
\end{document}
아니면 두 줄 이상으로 ...
\documentclass[12pt,oneside]{report}
\usepackage{titlesec}
\titleformat{\chapter}{\huge}{\chaptertitlename\ \thechapter}{0pt}{\hrule\bigskip\hfill\bfseries\sffamily}
\begin{document}
\appendix
\chapter{The title of the appendix}
\end{document}
아니면 이 방법이 좀 더 까다롭나요?
\documentclass[12pt,oneside]{report}
\usepackage[explicit]{titlesec}
\titleformat{\chapter}{\Large}{}{1em}{\bfseries #1 (\chaptertitlename\ \thechapter)}
\begin{document}
\appendix
\chapter{The title of the appendix}
\end{document}