LyXAdding the word Chapter in the ToC

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
lepagano
Posts: 12
Joined: Tue Dec 22, 2009 1:42 am

Adding the word Chapter in the ToC

Post by lepagano »

Hi,

I have seen a few posts about this, but I need the word Chapter to be on the same line as the Chapter number and name.

For example:
1 Introduction.............................................1

I need to look like:
Chapter 1 Introduction.....................................1

Can this be done?? Any help would be greatly appreciated.

Regards,

Lara

Recommended reading 2024:

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

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

lepagano
Posts: 12
Joined: Tue Dec 22, 2009 1:42 am

Adding the word Chapter in the ToC

Post by lepagano »

Answering my own post thanks to another post I recently found:

Code: Select all

\usepackage{tocloft}

\renewcommand{\cftchapfont}{\bfseries}
\renewcommand{\cftchappagefont}{\bfseries}
\renewcommand{\cftchappresnum}{Chapter }
\renewcommand{\cftchapaftersnum}{:}
\renewcommand{\cftchapnumwidth}{6em}
Post Reply