Re: Problema con testatine

#58321
Up
0
Down
::

Mi è stato proposto questo foglio di stile:

\DeclareOption{default}{
\setlength{\beforechapskip}{2ex} %Customizzazione del Chapter Style
\makechapterstyle{numberabove}{
\renewcommand{\chapnamefont}{\colorA\normalfont\huge\bfseries}
\renewcommand{\chaptitlefont}{\colorA \scshape \Huge}
\renewcommand{\printchaptertitle}[1]{%
\colorB{\hrule}\vskip\onelineskip \raggedleft \chaptitlefont ##1}
\renewcommand{\afterchaptertitle}{\vskip\onelineskip \colorB{\hrule}\vskip \afterchapskip}
}
\chapterstyle{numberabove}
\copypagestyle{custom}{headings}%Pagestyle
\makeheadrule{custom}{\textwidth}{\normalrulethickness}
\pagestyle{custom}
\renewcommand{\customheadrule}{\colorB\hrule}
\renewcommand{\MakeUppercase}{}% \MakeUppercase non fa pi nulla
\makeoddhead{custom}{\colorA\slshape\rightmark}{}{\colorA\thepage}% Headings and footers
\makeoddfoot{plain}{}{\colorA\thepage}{}
\makeevenhead{custom}{\colorA\thepage}{}{\colorA\slshape\leftmark}
\makeevenfoot{plain}{}{\colorA\thepage}{}
\setsecheadstyle{\colorA\Large\bfseries\raggedright}%Stile di section, subsection e subsubsection
\setsubsecheadstyle{\colorA\large\bfseries\raggedright}
\setsubsubsecheadstyle{\colorA\normalsize\bfseries\raggedright}
\setparaheadstyle{\colorA\normalsize\bfseries}
\setsubparaheadstyle{\colorA\normalsize\bfseries}
}

Teoricamente dovrebbe avere delle testatine in stile “Headings” colorate di rosso. La mia domanda è: cosa devo cambiare per lasciare le testatine così come sono (quindi in rosso ed in alto a sinistra) ma con numero di pagina in basso al centro anziché in alto a destra?
Grazie
Alberto

Impossibile rispondere perché manca qualsiasi riferimento alla classe usata e ai pacchetti necessari. Tuttavia, una serie di macro in cui c’è una ridefinizione di \MakeUppercase in modo che non faccia niente è da buttar via al più presto: significa che è stata scritta da gente che non ha ben chiaro come funziona LaTeX.

Ciao
Enrico

Go to top