TransWikia.com

Table of contents in bold

TeX - LaTeX Asked on March 8, 2021

I have in bold only Resumen and Abstract. How can I make the rest look in bold?. I’m already getting the chapters and sections in bold. What’s wrong is that List of Symbols, Figures, Abbreviations and tables are not in bold.

in my main.tex:

printunsrtglossary[type=symbols, title = Lista de S'imbolos   ]
printunsrtglossary[type=abbreviations,title = Lista de Abreviaturas]

enter image description here

MWE:

documentclass[12pt]{memoir}

letLaTeXStandardTableOfContentstableofcontents

renewcommand{tableofcontents}{%
begingroup%
renewcommand{bfseries}{relax}%
LaTeXStandardTableOfContents%
endgroup%
}%

chapterstyle{dash}

begin{document}
tableofcontents

chapter{First Chapter}
section[First section]{First Section of 1st chapter}
chapter{Second Chapter}
section{First Section of 2nd chapter}


end{document}

One Answer

The memoir class provides it's own mechanism to style the ToC:

documentclass[12pt]{memoir}

renewcommand*{cftchapterfont}{bfseries}
renewcommand*{cftchapterpagefont}{bfseries}
renewcommand*{cftsectionfont}{bfseries}
renewcommand*{cftsectionpagefont}{bfseries}

chapterstyle{dash}

begin{document}
tableofcontents

chapter{First Chapter}
section[First section]{First Section of 1st chapter}
chapter{Second Chapter}
section{First Section of 2nd chapter}


end{document}

enter image description here


With tocloft and the book class:

documentclass[12pt]{book}

usepackage{tocloft}

renewcommand*{cftchapfont}{bfseries}
renewcommand*{cftchappagefont}{bfseries}
renewcommand*{cftsecfont}{bfseries}
renewcommand*{cftsecpagefont}{bfseries}

begin{document}
tableofcontents

chapter{First Chapter}
section[First section]{First Section of 1st chapter}
chapter{Second Chapter}
section{First Section of 2nd chapter}


end{document}

enter image description here

Correct answer by DG' on March 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP