I'm really sorry for a little annoyed you

I'm new here and not familiar with latex syntax too much but nonetheless i can explain you what i done so far..
I redefined \chapter, \section, \subsection commands only to change fonts, size and some extra stuff such as \vspace, \vskip. Meanwhile i changed internal command @makechapterhead instead of directly \chapter command.
Code: Select all
\def\@makechapterhead#1%
{
\vspace*{2cm}
\thispagestyle{empty}
{
\parindent 0pt
\Chfont \MakeUppercase \@chapapp{} \thechapter.
\hskip 10pt
\Chfont \uppercase{#1}%
\par
\nobreak
\vskip 2.5cm
}
}
\def\section%
{
\@startsection{section}
{1}
{\z@}%
{3ex}
{3ex}
{\Scfont}%
}
for example if you dont want chapter name to appear in the table of contents you can use \chapter* command but just the opposite i want it to appear in toc and so redefined internal command @schapter used by \chapter* as fallows:
Code: Select all
\def\@schapter#1%
{
\addcontentsline{toc}{chapter}{#1}
\@makeschapterhead{\Chfont #1}
\@afterheading
}
so that i used \chapter* command to create Dedication and Summary pages.
You know there isnt dotted line between chapter name and page number in toc and to overcome with this problem i used this
Code: Select all
\renewcommand*\l@chapter{\@dottedtocline{0}{0.5em}{1.5em}}
but this last command wipe out spaces before chapter lines in the toc. in fact i dont want chapter lines in toc created by \chapter* to have space but if it created by \chapter should have space. as i said before the last command wipe out all spaces in toc.
also i dont know why but when i add
tocloft package all layout were corrupted and that's why i dont prefer using
tocloft pakage. if there is internal commands to change appearence of chapter line in toc, maybe i can use them.
i hope, it's clear now...