I found the solution.. Whew. Here it is \makeatletter \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth \def\@svsec{}\else \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname .\hskip 1em }\fi \@tempskipa #5\relax \ifdim \@tempskipa>\z@ \begingroup #6\relax \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par} \endgroup \csname #1mark\endcsname{#7}\addcontentsline {toc}{#1}{\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname}\fi #7}\else \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname {#7}\addcontentsline {toc}{#1}{\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname}\fi #7}}\fi \@xsect{#5}} \makeatother
On Tuesday 27 August 2002 15:17, Remzi Seker wrote: > I have the preamble seen below. > I need to have the sec, subsec, etc numbers ending with a period like 1.1., > 1.1.1. etc... > I tried the method proposed in the help file of sectsty but i get a lot of > errors... I tried titlesec, but that gives me a lot of errors too. Any > idea> > > Remzi > -------------------------- my related preamble --------------------- > \usepackage{sectsty} > > \chapterfont{\normalsize\mdseries\centering} > > \newlength{\mySpaceUnder} > \newlength{\mySpaceOver} > \setlength{\mySpaceUnder}{0.5ex} % 4cm as an example ;-) > \setlength{\mySpaceOver}{5ex} % 3cm as an example > > \renewcommand\section{\@startsection {section}{1}{\z@}% > {\mySpaceOver}% > {\mySpaceUnder}% > {\normalfont\small\mdseries\centering}} > > \renewcommand\subsection{\@startsection {subsection}{1}{\z@}% > {\mySpaceOver}% > {\mySpaceUnder}% > {\normalfont\small\mdseries\textit}} > > > \renewcommand\subsubsection{% > \@startsection{subsubsection}{3}{\z@}% > {3.25ex \@plus1ex \@minus.2ex}% > {-1em}% > {\hspace{1cm}\normalsize\mdseries\itshape}% > }