TeX - LaTeX Asked on April 13, 2021
Assume I have a long chapter title chapter{one two three four five six seven eight nine ten}
that appears in the table of contents like this:
- one two three four five six se-
ven eight nine ten
This seems ugly to me. I would like to have it like:
- one two three four five six
seven eight nine ten
But if I use chapter{one two three four five six mbox{seven} eight nine ten}
the line in the table of contents will be too long, so is there an alternative to have a linebreak in the table of contents without hyphenation and without having a line that is too long?
If you want to disable hyphenation for all entries in ToC, LoF and LoT:
(Remember to compile code twice)
documentclass[b5paper,12pt,twoside]{book}
usepackage[pdfspacing]{classicthesis}
usepackage{arsclassica}
usepackage[inner=2.2cm,outer=1.8cm,bottom=2.7cm,top=2.5cm]{geometry}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{lipsum}
usepackage[english]{babel}
titleformat{section}
{raggedright}{textsc{MakeTextLowercase{thesection}}}{1em}{spacedlowsmallcaps}
makeatletter
renewcommand{@tocrmarg}{2.55em plus1fil}
makeatother
begin{document}
frontmatter
tableofcontents
cleardoublepage
mainmatter
chapter{Test Chapter}
section{The Separation Axioms and Continuous Real-Valued Functions}
lipsum
end{document}
Taken from--https://tex.stackexchange.com/a/430273/197451
Correct answer by js bibra on April 13, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP