将 spacedallcaps 和 spacedlowsmallcaps 更改为 spacedsmallcaps 之类的内容(classicthesis)

将 spacedallcaps 和 spacedlowsmallcaps 更改为 spacedsmallcaps 之类的内容(classicthesis)

而不是和\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
        }%
    }

从这里你可以看到文本间距 - 由\textlsetter pacing给出lssoul- 已使用并可以在您的(重新)定义中采用它\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}

相关内容