
Existe uma razão pela qual o apêndice produz 2 títulos?
\documentclass[12pt,oneside]{report}
\begin{document}
test
\appendix
\chapter{\textrm\bfseries Appendixtest2}\label{append}
\end{document}
Posso forçar o título do apêndice (usando \chapter, não \section) a ter este formato:
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\huge}
Responder1
(1) \appendix
não produz nenhum título, apenas altera o \chapter
comportamento para imprimir "Apêndice A" em vez de "Capítulo 1".
(2) Há apenas um título, produzido por \chapter
, With \chaptertitlename
(Apêndice) e \thechapter
(A) em uma linha, e o argumento do capítulo (Apêndice teste2) na outra.
(3) você pode forçar o formato do título do capítulo com esse \titleformat
comando usando o pacote usando o pacotetitlesec
:
\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}
Mas observe que você está tentando forçar o formato padrão para... o formato padrão!Então, você não verá nenhum efeito.
Você pode notar que realmente funciona usando qualquer outro formato, por exemplo, apenas com um título em uma linha:
\documentclass[12pt,oneside]{report}
\usepackage{titlesec}
\titleformat{\chapter}{\Large}{\chaptertitlename\ \thechapter:}{1em}{\bfseries}
\begin{document}
\appendix
\chapter{The title of the appendix}
\end{document}
Ou com duas linhas e mais...
\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}
Ou ainda é assim, um pouco mais complicado:
\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}