1

I am using classicthesis and I would like to customize the shape of the titles in the way arsclassica does. How can I do it ? This is a view of what I am searching for : enter image description here

This is my preamble :

 `% book example for classicthesis.sty
\documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}
\usepackage[frenchb]{babel} \usepackage{setspace} \usepackage{hyperref} \usepackage{epigraph} \usepackage[tight,french]{minitoc} \usepackage{apacite} \usepackage{lipsum} \usepackage[parts,pdfspacing,dottedtoc,eulerchapternumbers]{../classicthesis} %,manychapters %\usepackage[osf]{libertine} \usepackage{epigraph} \renewcommand\textflush{flushright}

\usepackage{etoolbox} \makeatletter \newlength\epitextskip \pretocmd{\@epitext}{\em}{}{} \apptocmd{\@epitext}{\em}{}{} \patchcmd{\epigraph}{\@epitext{#1}\}{\@epitext{#1}\[\epitextskip]}{}{} \makeatother

\setlength\epigraphrule{0pt} \setlength\epitextskip{2ex} \setlength\epigraphwidth{.8\textwidth}

\FrenchFootnotes \usepackage{amsthm} \usepackage{lineno} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} \AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}} \frontmatter

%%%%%%%%%%%%%%%%%%%%%%%modifie la taille des numéros de chapitres%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifthenelse{\boolean{@eulerchapternumbers}}% font for the chapter numbers {\newcommand\mychapterNumber{\fontencoding{U}\fontfamily{eur}\fontseries{b}\fontsize{28} {29}\selectfont}}% {\newcommand\mychapterNumber{\fontencoding{T1}\fontfamily{pplj}\fontsize{25}{26}\selectfont}}

\ifthenelse{\boolean{@linedheaders}}% {% \titleformat{\chapter}[block]% {\relax}{\titlerule\vspace*{.9\baselineskip}\\raggedleft{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}% {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% }{% \titleformat{\chapter}[block]% {\relax}{{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}% {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% } \begin{document} % \pagestyle{scrheadings} % \manualmark % \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}

\pagestyle{scrheadings}`<code>
8
  • You can easily do that with the titlesec package if it is not incompatible with classic thesis.
    – Bernard
    Sep 11, 2014 at 13:07
  • arsclassica uses classicthesis internally or rather is based on classicthesis, why not using arsclassica?
    – Johannes_B
    Sep 11, 2014 at 13:17
  • @ Johannes_B : Because I do not like arsclassica fonts and do not know exactly how to change it.
    – domi
    Sep 11, 2014 at 13:49
  • Hint: do omit the space between the @ and the name ;-) @domi Otherwise the user isn't pinged. Can you add a minimal working example (MWE) so we can see the basic setup? It might just be a copy/paste from arsclassica to your preamble.
    – Johannes_B
    Sep 12, 2014 at 10:47
  • 2
    Just copy the code in arsclassica.sty from line 81 to 146 inclusive, paste it in your preamble (between \makeatletter and \makeatothe, just to be sure) and remove all the \sffamily commands.
    – egreg
    Sep 12, 2014 at 11:05

1 Answer 1

1

Copy the code from line 81 to 146 inclusive of arsclassica.sty and paste it into your preamble, removing all \sffamily commands.

Remove the setting to \descriptionlabel, which is in that part of the code, but really doesn't belong there, and redefine \chapterNumber.

\documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[frenchb]{babel}

\usepackage[parts,pdfspacing,dottedtoc,eulerchapternumbers]{classicthesis} %,manychapters

\usepackage{lipsum}
\usepackage{hyperref} 

\makeatletter % <---- important
%%% from arsclassica.sty
% parts
    \ifthenelse{\boolean{@parts}}%
        {%
    \titleformat{\part}[display]
        {\normalfont\centering\large}%
        {\thispagestyle{empty}\partname~\MakeTextUppercase{\thepart}}{1em}%
        {\color{Maroon}\spacedallcaps}
    }{\relax}
    % 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}%
        {{\color{halfgray}\chapterNumber\thechapter%
        \hspace{10pt}\vline}  }{10pt}%
        {\spacedallcaps}}
    % sections
    \titleformat{\section} 
          {\normalfont\Large}{\textsc%
          {\MakeTextLowercase{\thesection}}}%
         {1em}{\spacedlowsmallcaps}
    % subsections
    \titleformat{\subsection}
        {\normalfont}{\textsc{\MakeTextLowercase%
        {\thesubsection}}}{1em}{\normalsize}
    % subsubsections
    \titleformat{\subsubsection}
        {\normalfont\itshape}{\textsc%
        {\MakeTextLowercase{\thesubsubsection}}}%
        {1em}{\normalsize\itshape}        
    % paragraphs
    \titleformat{\paragraph}[runin]
        {\normalfont\normalsize}{\textsc%
        {\MakeTextLowercase{\theparagraph}}}%
        {0pt}{\spacedlowsmallcaps}
    % descriptionlabels
    \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}%
    \bfseries\spacedlowsmallcaps{#1}}
    \titlespacing*{\chapter}{0pt}{1\baselineskip}%
    {2\baselineskip}
    \titlespacing*{\section}{0pt}{2\baselineskip}%
    {.8\baselineskip}[\marginparsep]
    \titlespacing*{\subsection}{0pt}{1.5\baselineskip}%
    {.8\baselineskip}[\marginparsep]
    \titlespacing*{\paragraph}{0pt}{1\baselineskip}%
    {1\baselineskip}
    %
    \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} 
       {\textcolor{halfgray}{\chapterNumber\thechapter} 
       \hspace{10pt}\vline\ }{10pt} 
    {\formatchapter}    
        %
        \if@twoside\rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{}\fi
\makeatother % <----- important

\renewcommand\chapterNumber{\fontsize{50}{0}\usefont{U}{eur}{b}{n}}

\pagestyle{scrheadings}

\begin{document}
\mainmatter

\chapter{Ouverture}

\lipsum

\end{document}

enter image description here

If all you want is changing the chapter headings, remove all that doesn't refer to chapters.

Here's the reduced version:

\documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[frenchb]{babel}

\usepackage[parts,pdfspacing,dottedtoc,eulerchapternumbers]{classicthesis} %,manychapters

\usepackage{lipsum}
\usepackage{hyperref} 

\makeatletter
%%% from arsclassica.sty
\titlespacing*{\chapter}
  {0pt}
  {1\baselineskip}
  {2\baselineskip}

\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}
  {\textcolor{halfgray}{\chapterNumber\thechapter} \hspace{10pt}\vline\ }
  {10pt}
  {\formatchapter}    

\if@twoside\rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{}\fi
\makeatother

\renewcommand\chapterNumber{\fontsize{50}{0}\usefont{U}{eur}{b}{n}}

\pagestyle{scrheadings}

\begin{document}
\mainmatter

\chapter{Ouverture}

\lipsum

\end{document}
2
  • It works well ! But I see two things that does not fit my needs : first, the size of the first section is bigger than in classic thesis; second, the style of the subsection is not in italics as classic thesis does.
    – domi
    Sep 12, 2014 at 14:15
  • 1
    @domi As I said, remove the parts that don't deal with chapters from the added code. I added the reduced version.
    – egreg
    Sep 12, 2014 at 14:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .