[Tugindia] changing section counter display
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Tue Jul 8 12:49:39 CEST 2003
Amitabh Trehan schrieb:
> ------------------------------
> Unit 4 TeX Technology
> ------------------------------
>
> Contents
> 4.0 Introduction 1
> 4.1 Objectives 1
> 4.2 Keyboard 1
> 4.2.1 QWERTY 2
>
>
> etc.
> How to?
maybe this helps
Herbert
\documentclass{article}
\def\thechapter{4}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\makeatletter
% for a better looking TOC
\renewcommand*\l at section{\@dottedtocline{1}{1.5em}{2.3em}}
\renewcommand*\l at subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\makeatother
\begin{document}
\tableofcontents
\section{Introduction}
blah
\section{Objectives}
blah
\section{Keyboard}
\subsection{QWERTY}
blah
\end{document}
More information about the tugindia
mailing list