- Questo topic ha 3 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 14 anni, 10 mesi fa da .
-
Topic
-
Nel codice di arsclassica compaiono due specificazioni di \titleformat per i capitoli:
`\RequirePackage{titlesec}
% parts
…
% chapters
\ifthenelse{\boolean{@linedheaders}}%
{%
\titleformat{\chapter}[display]%
{\relax}{\raggedleft{\color{halfgray}%
\chapterNumber\thechapter} \\ }{0pt}%
{\titlerule\vspace*{.9\baselineskip}\raggedright%
\spacedallcaps}%
[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}{%
\titleformat{\chapter}[block]%
{\normalfont\Large\sffamily}%
{{\color{halfgray}\chapterNumber\thechapter%
\hspace{10pt}\vline} }{10pt}%
{\spacedallcaps}}
% sections
…
\newcommand\formatchapter[1]{%
\vbox to \ht\strutbox{
\setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ }
\advance\hsize-\wd0 \advance\hsize-10pt\raggedright
\spacedallcaps{#1}\vss}}
\titleformat{\chapter}[block]
{\normalfont\Large\sffamily}
{\textcolor{halfgray}{\chapterNumber\thechapter}
\hspace{10pt}\vline\ }{10pt}
{\formatchapter}
`Sbaglio io a leggere il codice?
Grazie,
Antonio
- Devi essere connesso per rispondere a questo topic.