Text Formattingnormal font in table of content

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
vita001
Posts: 17
Joined: Sun Mar 20, 2011 1:04 am

normal font in table of content

Post by vita001 »

Hello,
Latex uses bold font for Chapter's names in the table of content. How can I change it to normal font? I did some google, and it seems that the memoir class can do it. Is there a way to do it without using memoir class? I write my thesis using report class and I am afraid of switching to memoir class will mess up the formats that I have got right. Thanks.

Code: Select all

\documentclass[12pt]{report}

\usepackage{amsmath,amsthm,amssymb,latexsym,amscd}
\usepackage{subfig}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{color}
\usepackage{setspace}
\usepackage{url}
\usepackage{slashbox} 
\usepackage{tikz}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{caption}
\usetikzlibrary{calc}


\oddsidemargin=.6in \textwidth=5.8 in \topmargin=-0.25in
\textheight=8.83 in \footskip=40pt \headheight=12pt \headsep=10pt

\begin{document}

\normalsize
\tableofcontents
\pagenumbering{arabic}

\chapter{ABC}
\section{Section 1}
\section{Section 2}

\chapter{DEF}
\section{Section 1}

\addcontentsline{toc}{chapter}{Bibliography \dotfill}

\nocite{*}
\bibliographystyle{plain}
\bibliography{ref}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

vita001
Posts: 17
Joined: Sun Mar 20, 2011 1:04 am

normal font in table of content

Post by vita001 »

After some googling, I find an alternative approach that uses the package tocloft, I almost have what I want except one thing --- the \dotfill only fills part of the line for some reason. Any help is appreciated.

Code: Select all

\documentclass[12pt]{report}

\usepackage{amsmath,amsthm,amssymb,latexsym,amscd}
\usepackage{tocloft}
\usepackage{subfig}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{color}
\usepackage{setspace}
\usepackage{url}
%\usepackage{natbib}  %%for DOI number in reference
\usepackage{slashbox} %%for slash in tables
% \usepackage{setspace,thesis}
\usepackage{tikz}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{caption}
\usetikzlibrary{calc}


\oddsidemargin=.6in \textwidth=5.8 in \topmargin=-0.25in
\textheight=8.83 in \footskip=40pt \headheight=12pt \headsep=10pt


\renewcommand{\cftchapfont}{\normalfont}
\renewcommand{\cftchappagefont}{\normalfont}


\begin{document}
\chapter*{Acknowledgments}
\addcontentsline{toc}{chapter}{Acknowledgments}


\normalsize
\tableofcontents


 
\pagenumbering{arabic}

\chapter{ABC}
\doublespace
\section{Section 1}
\section{Section 2}

\chapter{DEF}
\section{Section 1}

\addcontentsline{toc}{chapter}{Bibliography \dotfill}

%\nocite{*}
%\bibliographystyle{plain}
%\bibliography{ref}
\singlespace
\begin{thebibliography}{10}
\bibitem{ADAMS:2003:Sobolev}
R.A.~Adams and J.J.F.~Fournier.
\newblock {\em Sobolev Spaces (Second Edition).}
\newblock {Academic Press, Amsterdam,} 2003.

\bibitem{Apel:1999:AFE}
Th. Apel.
\newblock {\em {Anisotropic Finite Elements}}.
\newblock Teubner, Stuttgart, 1999.

\bibitem{ASW:1996:GMR}
Th. Apel, A.-M. {S\"andig}, and J.R. Whiteman.
\newblock {Graded mesh refinement and error estimates for finite element
  solutions of elliptic boundary value problems in non-smooth domains}.
\newblock {\em Math. Methods Appl. Sci.}, 19:63--85, 1996.

\bibitem{Arnold:1982:IPD}
D.N. Arnold.
\newblock {An interior penalty finite element method with discontinuous
  elements}.
\newblock {\em SIAM J. Numer. Anal.}, 19:742--760, 1982.

\bibitem{ABCM:2001:DG}
D.N. Arnold, F.~Brezzi, B.~Cockburn, and L.D. Marini.
\newblock {Unified analysis of discontinuous Galerkin methods for elliptic
  problems}.
\newblock {\em SIAM J. Numer. Anal.}, 39:1749--1779, 2001/02.

\bibitem{ABM:2005:Plate}
D.N. Arnold, F.~Brezzi, and L.D. Marini.
\newblock A family of discontinuous {G}alerkin finite elements for the
  {R}eissner-{M}indlin plate.
  \newblock {\em J. Sci. Comput.}, 22/23:25--45, 2005.
\end{thebibliography}
\end{document}
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "test"
%%% End:
Last edited by Stefan Kottwitz on Thu Jun 07, 2012 8:46 am, edited 1 time in total.
Post Reply