How to format the section with capital letters and leave the TOC text in normal format.
I want to use this command:
\section{Section Text}
with the result similar to this:
\section[Section Text]{\MakeUppercase{Section Text}}
I'm using the following section configuration:
\def\section{\@startsection{section}{1}{\z@}{\baselineskip}{\baselineskip}{\centering\normalfont\sffamily\bfseries}}%
To get a result of this type:
Contents
- Section Text . . . . . page number
- ...
1 SECTION TEXT
text text text. I would like to use the section title in sans serif font and uppercase.
is it possible?
\MakeUppercase
in\section
def. Like:\def\section{\@startsection{section}{1}{\z@}{\baselineskip}{\baselineskip}{\centering\normalfont\sffamily\bfseries\MakeUppercase}}