使用 classicthesis 塑造 arsclassica 标题

使用 classicthesis 塑造 arsclassica 标题

我正在使用 classicthesis,我想以以下方式自定义标题的形状古典艺术确实如此。我该怎么做?这是我正在搜索的内容的视图:在此处输入图片描述

这是我的序言:

`% classicthesis.sty 的书籍示例
\documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script 书
\usepackage[T1]{fontenc} 
\usepackage[applemac]{inputenc}
\usepackage[frenchb]{babel} \usepackage{设置空间} \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{刷新右}

\usepackage{etoolbox} \制作字母 \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}

\法语脚注 \usepackage{amsthm} \usepackage{lineno} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} \AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}} \frontmatter

%%%%%%%%%%%%%%%%%%%%%%%%%%修改章节数量%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifthenelse{\boolean{@eulerchapternumbers}}% 章节编号的字体 {\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}[块]% {\relax}{\titlerule\vspace*{.9\baselineskip}\\raggedleft{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}% {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% }{% \titleformat{\chapter}[块]% {\relax}{{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}% {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% } \开始{文档} % \pagestyle{scrheadings} % \manualmark % \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}

\pagestyle{scrheadings}`<code>

答案1

复制第 81 行至第 146 行(含)的代码arsclassica.sty并将其粘贴到您的序言中,删除所有\sffamily命令。

\descriptionlabel删除位于代码那部分但实际上不属于那里的设置,然后重新定义\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}

在此处输入图片描述

如果您想要的只是更改章节标题,请删除所有不涉及章节的内容。

这是简化版本:

\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}

相关内容