
O látex anexado produz o cabeçalho da página 2 e da página 4 com a aparência
onde eu gostaria que "CONTEÚDO" fosse "Conteúdo" e "Capítulo 0: Rresumé" fosse "Rresumé".
Todos os cabeçalhos dos capítulos seguintes ainda devem ser "Capítulo 1: Algo".
Pergunta
Alguém sabe o que estou fazendo de errado?
Látex
\documentclass[a4paper,12pt]{book}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage[nottoc]{tocbibind}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{Chapter \thechapter{}: #1}{}}
\lhead[\fancyplain{}{\bfseries\thepage}]
{\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]
{\fancyplain{}{\bfseries\thepage}}
\cfoot[]{}
\addtolength{\headheight}{1.6pt}
\renewcommand{\sectionmark}[1]{\markright{\thesection{} #1}}
\lhead[\fancyplain{}{\bfseries\thepage}]
{\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]
{\fancyplain{}{\bfseries\thepage}}
\cfoot[]{}
\addtolength{\headheight}{1.6pt}
\renewcommand{\chaptertitlename}{}
\titleformat{\chapter}[hang]{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter:}{1em}{}
\begin{document}
\tableofcontents
\chapter*{Resum\'{e}}
\addcontentsline{toc}{chapter}{Resum\'{e}}
\chaptermark{Rresum\'{e}}
aaa
\newpage
aaa
\end{document}
Responder1
Mude a definição de \chaptermark
para
\renewcommand{\chaptermark}[1]{%
\ifnum\value{chapter}>0
\markboth{Chapter \thechapter{}: #1}{}%
\else
\markboth{#1}{}%
\fi}
Responder2
Isso parece resolver o problema do "Conteúdo".
\makeatletter
\renewcommand\tableofcontents{%
\chapter*{\contentsname
\@mkboth{%
% \scshape\MakeLowercase{\contentsname}}{\scshape\MakeLowercase{\contentsname}}}%
\scshape Contents}{\scshape Contents}}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
\makeatother
\begin{document}
...
Embora eu não entenda por que tem que ser \scshape Contents}{\scshape Contents}}
e não apenas \scshape Contents}}
.