![将 spacedallcaps 和 spacedlowsmallcaps 更改为 spacedsmallcaps 之类的内容(classicthesis)](https://linux22.com/image/293752/%E5%B0%86%20spacedallcaps%20%E5%92%8C%20spacedlowsmallcaps%20%E6%9B%B4%E6%94%B9%E4%B8%BA%20spacedsmallcaps%20%E4%B9%8B%E7%B1%BB%E7%9A%84%E5%86%85%E5%AE%B9%EF%BC%88classicthesis%EF%BC%89.png)
而不是和\spacedallcaps
,\spacedlowsmallcaps
希望有大写和小写字母(如\scshape
),但保留字母之间的间距、大小、颜色等的定义……
有了\DeclareRobustCommand{\spacedlowsmallcaps}[1]{\scshape #1}
我,一切就都改变了。
\documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude,
footinclude=true,cleardoublepage=empty,
BCOR=5mm,paper=a4,fontsize=10pt]{scrbook}
\usepackage{lipsum}
\usepackage[parts,beramono,eulerchapternumbers,%
listings,manychapters,%
floatperchapter]{classicthesis}
% \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\scshape #1}
% \DeclareRobustCommand{\spacedallcaps}[1]{\scshape #1}
\begin{document}
\tableofcontents
\pagestyle{scrheadings}
\part{Introduction}
\chapter{First chapter}
\section{First section}
\lipsum[1-18]
\section{Second section}
\lipsum[1-12]
\end{document}
答案1
章节标题格式标记为classicthesis.sty
作为“奇特的东西”:
% ********************************************************************
% Fancy Stuff
% ********************************************************************
\RequirePackage{booktabs} % for better rules in tables
\RequirePackage{textcase} % for \MakeTextUppercase
\ifthenelse{\boolean{@minionprospacing}}%
{%
\PackageInfo{classicthesis}{Using MinionPro's textssc for character spacing.}%
\DeclareRobustCommand{\spacedallcaps}[1]{\textssc{\MakeTextUppercase{#1}}}%
\DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textssc{\MakeTextLowercase{#1}}}%
}{%
\ifthenelse{\boolean{@pdfspacing}}%
{%
\PackageInfo{classicthesis}{Using pdftex/microtype for character spacing.%
Make sure your pdftex is version 1.40 or higher.}%
\microtypesetup{expansion=false}%
\DeclareRobustCommand{\spacedallcaps}[1]{\textls[160]{\MakeTextUppercase{#1}}}%
\DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}%
}{%
\RequirePackage{soul} % for letterspacing
\sodef\allcapsspacing{\upshape}{0.15em}{0.65em}{0.6em}%
\sodef\lowsmallcapsspacing{\scshape}{0.075em}{0.5em}{0.6em}%
\DeclareRobustCommand{\spacedallcaps}[1]{\MakeTextUppercase{\allcapsspacing{#1}}}%
\DeclareRobustCommand{\spacedlowsmallcaps}[1]{\MakeTextLowercase{\textsc{\lowsmallcapsspacing{#1}}}}%\protect
}%
}
从这里你可以看到文本间距 - 由\textls
etter pacing给出l
s
soul
- 已使用并可以在您的(重新)定义中采用它\spacedallcaps
。也许是这样的:
\documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude,
footinclude=true,cleardoublepage=empty,
BCOR=5mm,paper=a4,fontsize=10pt]{scrbook}
\usepackage{lipsum}
\usepackage[parts,beramono,eulerchapternumbers,%
listings,manychapters,%
floatperchapter]{classicthesis}
\DeclareRobustCommand{\spacedallcaps}[1]{\textls[160]{\scshape #1}}
\begin{document}
\tableofcontents
\pagestyle{scrheadings}
\part{Introduction}
\chapter{First chapter}
\section{First section}
\lipsum[1-18]
\section{Second section}
\lipsum[1-12]
\end{document}