長章節標題和 arsclassica 的問題

長章節標題和 arsclassica 的問題

我對arscalssica風格與classicthesis的結合有疑問。

章節標題下的文字總是從相同的位置開始,與章節標題的長度無關,這會產生這種醜陋的行為: 在此輸入影像描述

我用來產生此輸出的程式碼非常基本:

\documentclass[10pt,a4paper,twoside,openright,titlepage,fleqn,headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,tablecaptionabove]{scrreprt}
\usepackage{subfig}
\usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing]{classicthesis}

\usepackage{arsclassica}

\usepackage{blindtext}

\begin{document}
    \chapter{\blindtext}
    \blindtext
\end{document}

編譯提出以下警告:

C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrreprt.cls: Class scrreprt Warning: You've used obsolete option `tablecaptionabove'.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\classicthesis\classicthesis.sty: Class scrreprt Warning: Usage of package `titlesec' together(scrreprt)              with a KOMA-Script class is not recommended.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\classicthesis\classicthesis.sty:373: Package scrreprt Warning: Activating an ugly workaround for a missing(scrreprt)                feature of package `titlesec` on input line 373.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\arsclassica\arsclassica.sty:192: Package hyperref Warning: Option `hyperfootnotes' has already been used,(hyperref)                setting the option has no effect on input line 192.
C:\Program Files (x86)\MiKTeX 2.9\tex\latex\arsclassica\arsclassica.sty:192: Package hyperref Warning: Option `pdfpagelabels' has already been used,(hyperref)                setting the option has no effect on input line 192

如果我不使用 arsclassica 而只使用 classicthesis,則行為是可以的: 在此輸入影像描述

答案1

\formatchapter嘗試以這種方式重新定義命令:

\renewcommand\formatchapter[1]{%
    \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ }%
    \begin{minipage}[t]{\dimexpr\linewidth-\wd0\relax}%
    \raggedright\spacedallcaps{#1}%
    \end{minipage}%
}

微量元素:

\documentclass[10pt,a4paper,twoside,openright,titlepage,fleqn,headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,tablecaptionabove]{scrreprt}
\usepackage{subfig}
\usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing]{classicthesis}

\usepackage{arsclassica}

\renewcommand\formatchapter[1]{%
    \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ }%
    \begin{minipage}[t]{\dimexpr\linewidth-\wd0\relax}%
    \raggedright\spacedallcaps{#1}%
    \end{minipage}%
}

\usepackage{blindtext}

\begin{document}
    \chapter{\blindtext}
    \blindtext
\end{document} 

輸出:

在此輸入影像描述

相關內容