Bibliografia/índice tem capítulo no cabeçalho

Bibliografia/índice tem capítulo no cabeçalho
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{array}
\usepackage{tabularx}
\usepackage{caption} 
\captionsetup[table]{skip=10pt}
\renewcommand{\arraystretch}{1.4}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{adjustbox}
\usepackage{rsc}
\usepackage{graphicx}
\usepackage{setspace}
\linespread{1.25}
\UseRawInputEncoding
\usepackage{geometry}
    \geometry{
    a4paper,
    left=40mm,
    right=20mm,
    top=40mm,
    bottom=50mm
    }
%header settings
\usepackage{fancyhdr}
\pagestyle{fancy}
   \fancyhf{}
\makeatletter
% copy of the original from report.cls with the \MakeUppercase dropped
\renewcommand{\chaptermark}[1]{
  \markboth
    {\ifnum \c@secnumdepth >\m@ne
       \@chapapp\ \thechapter. 
      \fi
     #1}
    {}}
\makeatother

\usepackage{etoolbox}
\patchcmd{\tableofcontents}
  {\MakeUppercase}
  {}
  {}{}
\patchcmd{\tableofcontents}
  {\MakeUppercase}
  {}
  {}{}

\patchcmd{\thebibliography}
  {\MakeUppercase}
  {}
  {}{}
\patchcmd{\thebibliography}
  {\MakeUppercase}
  {}
  {}{}

\fancyhead[L]{\itshape\leftmark}
\fancyhead[R]{\itshape Keiran Corbett}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
  \setlength{\headheight}{15pt}
  \setlength{\footskip}{50pt}  %page number spacing
\begin{document}
    \tableofcontents
    \chapter{Example chapter title}
     \newpage
     text
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \chapter{Example chapter title}
    \end{document}

Então, com este comando, fica como eu gostaria, mas tenho um índice e o cabeçalho para isso é o Capítulo 0. CONTEÚDO

Portanto, tenho duas perguntas 1. Como faço para que o CONTEÚDO não seja maiúsculo 2. Como posso me livrar do Capítulo (somente para a seção de babador e conteúdo)

bibliografia também tem o mesmo problema

Há um exemplo de como deve ficar na página 4 do arquivo de exemplo de látex

Responder1

Sugiro uma pequena alteração para \chaptermarkque \leftmarkcontenha o cabeçalho inteiro ("Capítulo 1. Exemplo de título do capítulo") e não apenas o título do capítulo ("Exemplo de título do capítulo"). Isso o torna \fancyhead[L]mais simples e menos suscetível a números de capítulo incorretos.

Para obter um bom cabeçalho no ToC e na bibliografia, não encontrei maneira melhor do que corrigir os comandos diretamente. Veja por exemploCabeçalhos de ToC e fantasiahdr.

memoirou as classes KOMA teriam interfaces mais convenientes para isso.

\documentclass[12pt,a4paper]{report}

\usepackage{fancyhdr}
\pagestyle{fancy}
   \fancyhf{}

\makeatletter
% copy of the original from report.cls with the \MakeUppercase dropped
\renewcommand{\chaptermark}[1]{%
  \markboth
    {\ifnum \c@secnumdepth >\m@ne
       \@chapapp\ \thechapter. %
      \fi
     #1}
    {}}
\makeatother

\usepackage{etoolbox}
\patchcmd{\tableofcontents}
  {\MakeUppercase}
  {}
  {}{}
\patchcmd{\tableofcontents}
  {\MakeUppercase}
  {}
  {}{}

\patchcmd{\thebibliography}
  {\MakeUppercase}
  {}
  {}{}
\patchcmd{\thebibliography}
  {\MakeUppercase}
  {}
  {}{}

\fancyhead[L]{\itshape\leftmark}
\fancyhead[R]{\itshape NAME}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
  \setlength{\headheight}{15pt}


\begin{document}
\tableofcontents
\chapter{Example chapter title}
lorem
\newpage
ipsum
\newpage
dolor
\newpage
sit
\newpage
amet.
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}
\chapter{Example chapter title}

\nocite{*}
\bibliographystyle{plain}
\bibliography{xampl}
\end{document}

Captura de tela da segunda página do ToC. O cabeçalho diz apenas "Conteúdo" no lado esquerdo

Captura de tela da segunda página da bibliografia. O lado esquerdo do cabeçalho diz "Bibliografia".


O rscpacote é carregado natbibe, portanto, altera ligeiramente a composição tipográfica do título da bibliografia. Nesse caso, você precisa corrigir o comando \bibsectione não o \thebibliography.

Adicionar

\patchcmd{\bibsection}
  {\MakeUppercase}
  {}
  {}{}
\patchcmd{\bibsection}
  {\MakeUppercase}
  {}
  {}{}

ao seu preâmbulo.

informação relacionada