[Tugindia] Latex help

Radhakrishnan CV cvr at river-valley.org
Sat Feb 6 02:02:55 CET 2010


On Fri, Feb 5, 2010 at 8:05 PM, gordhan das <menghwar at yahoo.com> wrote:
> In my latex document, the chapter information at the start of each chapter comes like:
>
> 1. Introduction
> 2. Review
>
> But, I want like
>
> Chapter 1
> Introduction

Please add the following before \begin{document} and try:

\usepackage{ifthen}
\makeatletter
 \let\savecontentsline\contentsline
  \def\contentsline#1#2#3#4{%
    \ifthenelse{\equal{#1}{chapter}}
     {\def\numberline##1{Chapter ##1\hfill\break}}
     {\def\numberline##1{\hb at xt@\@tempdima{##1\hfil}}}
       \savecontentsline{#1}{#2}{#3}{#4}}
\makeatother

Best regards
-- 
Radhakrishnan


More information about the tugindia mailing list