我正在使用 classicthesis,并希望章节编号在指定的边距内。我已使用 geometry 包成功设置了文本的边距,但章节编号是唯一位于这些边距之外的元素。在所附图片中,这涉及将“1”稍微向左移动,以便它位于右边距内。我该怎么做?提前致谢。
编辑以添加代码:
\documentclass[
twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,
footinclude=true,cleardoublepage=empty,
dottedtoc, % Make page numbers in the table of contents flushed right with dots leading to them
BCOR=5mm,paper=a4,fontsize=11pt, % Binding correction, paper type and font size
ngerman,american, % Languages, change this to your language(s)
]{scrreprt}
\input{classicthesis-config}
\usepackage[inner=3.5cm, outer=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
\linespread{1.5}
\makeatletter
\if@eulerchapternumbers
\DeclareFixedFont{\chapterNumber}{U}{eur}{b}{n}{50}
\else
\DeclareFixedFont{\chapterNumber}{T1}{pplj}{m}{n}{50}
\fi
\makeatother
\begin{document}
\frenchspacing % Reduces space after periods to make text more compact
\raggedbottom % Makes all pages the height of the text on that page
\selectlanguage{american} % Select your default language - e.g. american or ngerman
\pagenumbering{roman} % Roman page numbering prior to the start of the thesis content (i, ii, iii, etc)
\pagestyle{plain} % Suppress headers for the pre-content pages
\include{Chapters/Chapter_intro} % Chapter 1
\end{document}
答案1
只是猜测:您可以在序言中重新定义章节格式(之后\input{classicthesis-config}
),以
\titleformat{\chapter}[display]%
{\relax}{\mbox{}\vskip-3\baselineskip\hfill\color{CTsemi}\chapterNumber\thechapter}{0pt}%
{\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
结果:
也许您正在使用旧版本的 classicthesis:因此,如果CTsemi
定义了 color,请将其替换为 color halfgray
。