diff options
author | Karl Berry <karl@freefriends.org> | 2017-10-31 21:23:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-10-31 21:23:29 +0000 |
commit | b71dc5300da871cbc8529c8f06fbe3445dfc4d0f (patch) | |
tree | 25866a485253239f4515e2fd295e98d6c469e1e6 /Master/texmf-dist/tex/latex/arsclassica | |
parent | 98f219417fa46e55f7a2d5f6288a1914ca7724f6 (diff) |
arsclassica (31oct17)
git-svn-id: svn://tug.org/texlive/trunk@45656 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/arsclassica')
-rw-r--r-- | Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty | 84 |
1 files changed, 41 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty index 8c47f12a82b..82945459bbd 100644 --- a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty +++ b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty @@ -6,7 +6,7 @@ % %************************************************************ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{arsclassica}[2017/02/01] +\ProvidesPackage{arsclassica}[2017/10/31] \RequirePackage{classicthesis} \RequirePackage{caption} @@ -26,43 +26,42 @@ %************************************************************ % Chapter numbers %************************************************************ -\let\chapterNumber\undefined -\ifthenelse{\boolean{@eulerchapternumbers}} -{\newfont{\chapterNumber}{eurb10 scaled 5000}}% -{\newfont{\chapterNumber}{pplr9d scaled 5000}} +\let\chapterNumber\undefined +\ifct@eulerchapternumbers +\newfont{\chapterNumber}{eurb10 scaled 5000}% +\else +\newfont{\chapterNumber}{pplr9d scaled 5000}% +\fi %************************************************************ % Fancy stuff %************************************************************ -\ifthenelse{\boolean{@minionprospacing}}% -{% - \DeclareRobustCommand{\spacedallcaps}[1]{\sffamily% - \textssc{\MakeTextUppercase{#1}}}% - \DeclareRobustCommand{\spacedlowsmallcaps}[1]% - {\sffamily\textssc{\MakeTextLowercase{#1}}}% -}{% - \ifthenelse{\boolean{@pdfspacing}}% - {% - \microtypesetup{expansion=false}% - \DeclareRobustCommand{\spacedallcaps}[1]% - {\sffamily\textls[160]{\MakeTextUppercase{#1}}}% +\ifct@minionprospacing + \DeclareRobustCommand{\spacedallcaps}[1]{\sffamily% + \textssc{\MakeTextUppercase{#1}}}% \DeclareRobustCommand{\spacedlowsmallcaps}[1]% - {\sffamily\textls[80]{\scshape\MakeTextLowercase{#1}}}% - }{% - \RequirePackage{soul} - \sodef\allcapsspacing{\sffamily\upshape}% - {0.15em}{0.65em}{0.6em}% - \sodef\lowsmallcapsspacing{\sffamily\scshape}% - {0.075em}{0.5em}{0.6em}% - \DeclareRobustCommand{\spacedallcaps}[1]% - {\MakeTextUppercase{\allcapsspacing{#1}}}% - \DeclareRobustCommand{\spacedlowsmallcaps}[1]% - {\MakeTextLowercase{\textsc% - {\lowsmallcapsspacing{#1}}}}% - }% -} -%************************************************************ + {\sffamily\textssc{\MakeTextLowercase{#1}}}% +\else + \ifct@pdfspacing + \microtypesetup{expansion=false}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\sffamily\textls[160]{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textls[80]{\scshape\MakeTextLowercase{#1}}}% + \else + \RequirePackage{soul} + \sodef\allcapsspacing{\sffamily\upshape}% + {0.15em}{0.65em}{0.6em}% + \sodef\lowsmallcapsspacing{\sffamily\scshape}% + {0.075em}{0.5em}{0.6em}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\MakeTextUppercase{\allcapsspacing{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\MakeTextLowercase{\textsc% + {\lowsmallcapsspacing{#1}}}}% + \fi +\fi %************************************************************ @@ -85,29 +84,28 @@ % subsubsection-, paragraph and description-headings %************************************************************ \RequirePackage{titlesec} - % parts - \ifthenelse{\boolean{@parts}}% - {% - \titleformat{\part}[display] + % parts + \ifct@parts + \titleformat{\part}[display] {\normalfont\centering\large}% {\thispagestyle{empty}\partname~\MakeTextUppercase{\thepart}}{1em}% {\color{Maroon}\spacedallcaps} - }{\relax} + \fi % chapters - \ifthenelse{\boolean{@linedheaders}}% - {% - \titleformat{\chapter}[display]% + \ifct@linedheaders + \titleformat{\chapter}[display]% {\relax}{\raggedleft{\color{halfgray}% \chapterNumber\thechapter} \\ }{0pt}% {\titlerule\vspace*{.9\baselineskip}\raggedright% \spacedallcaps}% [\normalsize\vspace*{.8\baselineskip}\titlerule]% - }{% - \titleformat{\chapter}[block]% + \else + \titleformat{\chapter}[block]% {\normalfont\Large\sffamily}% {{\color{halfgray}\chapterNumber\thechapter% \hspace{10pt}\vline} }{10pt}% - {\spacedallcaps}} + {\spacedallcaps} + \fi % sections \titleformat{\section} {\normalfont\Large\sffamily}{\textsc% |