我正在使用classicthesis 4.1
LyX 撰写论文,我需要帮助来重新定位章节编号。
图片的上半部分显示了我所拥有的
下半部分显示了我想要的:
答案1
一种可能性是:
\documentclass{scrbook}
\usepackage[T1]{fontenc}
\usepackage{classicthesis}
\newcommand\mychapterNumber{\normalfont\fontfamily{pplj}\fontsize{35}{36}\selectfont}
\titleformat{\chapter}[block]%
{\relax}{\color{halfgray}\mychapterNumber\thechapter}{1em}
{\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
\begin{document}
\chapter{Test chapter}
\end{document}
答案2
只是为了给 Gonzalo 的答案添加一些内容,这个答案处理了可以传递给的选项eulerchapternumbers
和。linedheaders
classicthesis
\documentclass{scrbook}
\usepackage{classicthesis}
\ifthenelse{\boolean{@eulerchapternumbers}}% font for the chapter numbers
{\newcommand\mychapterNumber{\fontencoding{U}\fontfamily{eur}\fontseries{b}\fontsize{18}{19}\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}
\chapter{Test chapter}
\end{document}
输出
\usepackage{classicthesis}
与
\usepackage[linedheaders]{classicthesis}