TransWikia.com

Overlapping in TOC when using default section prefix with renewcommand thesection

TeX - LaTeX Asked by Flemming on February 15, 2021

I’m writing on an exercise report and I want to have the prefix "Exercise" in my section headings (eg. Exercise 1: The QGIS user interface). So I used renewcommand*{thesection}{Exercise~arabic{section}:}. But now in my TOC the spacing is not correct. The prefix and the heading are overlapping:
enter image description here

documentclass{scrreprt}
renewcommand*{thesection}{Exercise~arabic{section}:}
begin{document}
tableofcontents
section{The QGIS user Interface}
Text, text, text...
end{document}

How can I fix this?

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