I would like to add a horizontal rule under section title, change colour and character of the title. Until now I have been able to change the color and character, but it revealed to me a hard task to add the horizontal rule under the title. What I have done until now is the following:
\RequirePackage%
{%
fontspec,%
xcolor,%
}
...
...
\definecolor[named]{SectionFontColour}{wave}{395}
\newfontfamily \SectionFont {ITC Avant Garde Gothic}
...
...
\renewcommand\section
{
\@startsection{section}% #1
{1}% #2
{\z@}% #3
{-2.5ex \@plus -1ex \@minus .2ex}% #4
{2.3ex \@plus.2ex}% #5
{%
\SectionFont%
\Large%
\mdseries%
\textcolor{SectionFontColour}%
} % #6
I would like to accomplish this task in the \section
macro or in the \@statrsection
macro. I would not use this way:
\let \oldsection \section
\renewcommand \section {\oldsection ... <some code that makes the rule>}
neither I would use additional packages here.
And by the way, why the declaration of the \section
does not take any parameter, when we call this macro (\section
) we pass an argument to it? So the macro should be declared with a parameter, or not?
Please help me to clarify these questions.