Page LayoutChange line in the contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Change line in the contents

Post by QwareeqMathematics »

Hi all ;

I need to know how to change the line in the contents in report class ? for example , to change the line for Chapter name .
e.x
The default line is:

Code: Select all

1 Introduction                       3
I want it to be :

Code: Select all

Chapter 1: Introduction                 3

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change line in the contents

Post by localghost »

Search the forum for the tocloft package. You will find some useful solutions.


Best regards
Thorsten
ubpgs
Posts: 5
Joined: Tue Jul 14, 2009 1:59 pm

Change line in the contents

Post by ubpgs »

You can add the following to your preamble:

Code: Select all

\makeatletter
\let\oldl@chapter\l@chapter
\renewcommand*\l@chapter[2]{%
	\renewcommand*\numberline[1]{\chaptername~##1: }%
	\oldl@chapter{#1}{#2}%
}
\makeatother
Post Reply