2

Following is mwe of what I'm doing. I want to get a couple of things.

  1. Instead of bold 1, 2, I need it to be replaced by Chapter 1 and Chapter 2 respectively, followed by the name.

  2. I want the References appeared in the table of contents, separately not under a Chapter, with the heading References.

Thank you for any suggestions.

\documentclass[11 pt]{article}

\usepackage{amsmath, mathrsfs} \usepackage{amssymb}

\usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blindtext}

\linespread{1.4} \pagestyle{myheadings}

\title{This is the title} \author{Author A and Author B} \date{} \begin{document} \let\conjugatet\overline \maketitle

\tableofcontents

\section{This is section 1} \subsection{This is a subsection}

\section{This is section 2} \subsection{This is a subsection}

\bibliographystyle{abbrv} \bibliography{References}{}

\end{document}

Eureka
  • 1,013

1 Answers1

2

tocloft provides the means to add some prefix to chapter number, say, Chapter, with \renewcommand{\cftchappresnum}{...}. However, this would overprint the chapter number, so the \cftchapnumwidth has to be increased accordingly.

For adding the Bibliography to the ToC use \usepackage{tocbibind}

\documentclass[11pt]{report}

\usepackage{amsmath, mathrsfs}
\usepackage{amssymb}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{tocloft}
\usepackage[nottoc,notlot]{tocbibind}

\addtolength{\cftchapnumwidth}{40pt}
\renewcommand{\cftchappresnum}{\textbf{\chaptername}}

\AtBeginDocument{%
  \renewcommand{\bibname}{References}
}


%\linespread{1.4}
\pagestyle{myheadings}



\title{This is the title}
\author{Author A and Author B}
\date{}
\begin{document}
\maketitle

\cite{Lam94}

\tableofcontents

\chapter{Foo}

\section{This is section 1}
\subsection{This is a subsection}


\section{This is section 2}
\subsection{This is a subsection}

\chapter{Foobar}

\clearpage
\bibliographystyle{abbrv}
\bibliography{biblio}

\end{document}
  • Thank you. Is there a way to change the heading "Bibliography" to say, "References" ? – Eureka Mar 13 '18 at 20:08
  • @Fib1123: \renewcommand{\bibname}{References} should work –  Mar 13 '18 at 20:53
  • 1
    @Fib1123: You have to use the change after \begin{document} or wrap it in \AtBeginDocument, I have edited the code. –  Mar 14 '18 at 19:15