summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-01-05 22:56:59 +0000
committerKarl Berry <karl@freefriends.org>2017-01-05 22:56:59 +0000
commit803c523b68400f6bf3514e999e0e0a12218d6d64 (patch)
tree121f9b7ff4aaf337e38a61ed25f74b4640b4e02c /Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex
parentf78056943ffe36621ca1cf595657f324cda9b13f (diff)
arsclassica (5jan17)
git-svn-id: svn://tug.org/texlive/trunk@42869 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex')
-rw-r--r--Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex216
1 files changed, 63 insertions, 153 deletions
diff --git a/Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex b/Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex
index a2f79c7ef75..9e59b78c8f9 100644
--- a/Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex
+++ b/Master/texmf-dist/doc/latex/arsclassica/Chapters/Code.tex
@@ -1,30 +1,43 @@
+% !TEX TS-program = pdflatex
+% !TEX root = ../ArsClassica.tex
+
%************************************************
-\chapter{The code}
+\chapter{Code}
\label{chp:code}
%************************************************
-
\lstset{numbers=left,
numberstyle=\scriptsize,
stepnumber=1,
numbersep=8pt
}
-Announcement of the package and requirement for the necessary packages.
+
+
+Package announcement and request for necessary packages.
\begin{lstlisting}[firstnumber=1]
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{arsclassica}[2012/02/21 v4.0 Customizing ClassicThesis (LP)]
+\ProvidesPackage{arsclassica}[2017/01/05 (LP)]
\RequirePackage{classicthesis}
\RequirePackage{caption}
\end{lstlisting}
-Use of Iwona\index{Iwona} as font sans serif.
+
+Text body size.
+\begin{lstlisting}
+\areaset[current]{370pt}{784pt}
+\end{lstlisting}
+
+
+
+Use of Iwona as font sans serif.
\begin{lstlisting}
\renewcommand{\sfdefault}{iwona}
\end{lstlisting}
+
Customized chapter numbers.
\begin{lstlisting}
\let\chapterNumber\undefined
@@ -35,7 +48,7 @@ Customized chapter numbers.
-Small caps sans serif.
+Smallcaps sans serif.
\begin{lstlisting}
\ifthenelse{\boolean{@minionprospacing}}%
{%
@@ -72,8 +85,7 @@ Semi-transparent headlines and page numbers in Iwona.
\begin{lstlisting}
\renewcommand{\sectionmark}[1]{\markright{\textsc%
{\MakeTextLowercase{\thesection}} \spacedlowsmallcaps{#1}}}
-\lehead{\mbox{\llap{\small\thepage\kern1em\color{halfgray}%
-\vline}%
+\lehead{\mbox{\llap{\small\thepage\kern1em\color{halfgray}\vline}%
\color{halfgray}\hspace{0.5em}\headmark\hfil}}
\rohead{\mbox{\hfil{\color{halfgray}%
\headmark\hspace{0.5em}}%
@@ -84,12 +96,12 @@ Semi-transparent headlines and page numbers in Iwona.
-Use of Iwona\index{Iwona} for the titles of sectioning units (chapters, sections, subsections, sub-subsections, paragraphs, subparagraphs) and for the labels of description lists.
+Sectioning unit titles and description list labels in Iwona.
\begin{lstlisting}
\RequirePackage{titlesec}
- % parts
- \ifthenelse{\boolean{@parts}}%
- {%
+ % parts
+ \ifthenelse{\boolean{@parts}}%
+ {%
\titleformat{\part}[display]
{\normalfont\centering\large}%
{\thispagestyle{empty}\partname~\thepart}{1em}%
@@ -99,47 +111,45 @@ Use of Iwona\index{Iwona} for the titles of sectioning units (chapters, sections
\ifthenelse{\boolean{@linedheaders}}%
{%
\titleformat{\chapter}[display]%
- {\relax}{\raggedleft{\color{halfgray}%
- \chapterNumber\thechapter} \\ }{0pt}%
- {\titlerule\vspace*{.9\baselineskip}\raggedright%
- \spacedallcaps}%
- [\normalsize\vspace*{.8\baselineskip}\titlerule]%
+ {\relax}{\raggedleft{\color{halfgray}%
+ \chapterNumber\thechapter} \\ }{0pt}%
+ {\titlerule\vspace*{.9\baselineskip}\raggedright%
+ \spacedallcaps}%
+ [\normalsize\vspace*{.8\baselineskip}\titlerule]%
}{%
\titleformat{\chapter}[block]%
- {\normalfont\Large\sffamily}%
- {{\color{halfgray}\chapterNumber\thechapter%
- \hspace{10pt}\vline} }{10pt}%
- {\spacedallcaps}}
+ {\normalfont\Large\sffamily}%
+ {{\color{halfgray}\chapterNumber\thechapter%
+ \hspace{10pt}\vline} }{10pt}%
+ {\spacedallcaps}}
% sections
\titleformat{\section}
- {\normalfont\Large\sffamily}{\textsc%
- {\MakeTextLowercase{\thesection}}}%
- {1em}{\spacedlowsmallcaps}
+ {\normalfont\Large\sffamily}{\textsc%
+ {\MakeTextLowercase{\thesection}}}%
+ {1em}{\spacedlowsmallcaps}
% subsections
- \titleformat{\subsection}
- {\normalfont\sffamily}{\textsc{\MakeTextLowercase%
- {\thesubsection}}}{1em}{\normalsize}
+ \titleformat{\subsection}
+ {\normalfont\sffamily\bfseries}{\textsc{\MakeTextLowercase%
+ {\thesubsection}}}{1em}{\normalsize}
% subsubsections
\titleformat{\subsubsection}
- {\normalfont\sffamily\itshape}{\textsc%
- {\MakeTextLowercase{\thesubsubsection}}}%
- {1em}{\normalsize\itshape}
+ {\normalfont\sffamily\bfseries\itshape}{\textsc%
+ {\MakeTextLowercase{\thesubsubsection}}}%
+ {1em}{\normalsize\itshape}
% paragraphs
\titleformat{\paragraph}[runin]
- {\normalfont\normalsize\sffamily}{\textsc%
- {\MakeTextLowercase{\theparagraph}}}%
- {0pt}{\spacedlowsmallcaps}
- % descriptionlabels
+ {\normalfont\normalsize\sffamily\bfseries}{\textsc%
+ {\MakeTextLowercase{\theparagraph}}}%
+ {0pt}{\spacedlowsmallcaps}
+ % description labels
\renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}%
\bfseries\spacedlowsmallcaps{#1}}
- \titlespacing*{\chapter}{0pt}{1\baselineskip}%
- {2\baselineskip}
+ \titlespacing*{\chapter}{0pt}{1\baselineskip}{2\baselineskip}
\titlespacing*{\section}{0pt}{2\baselineskip}%
- {.8\baselineskip}[\marginparsep]
+ {.8\baselineskip}[\marginparsep]
\titlespacing*{\subsection}{0pt}{1.5\baselineskip}%
- {.8\baselineskip}[\marginparsep]
- \titlespacing*{\paragraph}{0pt}{1\baselineskip}%
- {1\baselineskip}
+ {.8\baselineskip}[\marginparsep]
+ \titlespacing*{\paragraph}{0pt}{1\baselineskip}{1\baselineskip}
\newcommand\formatchapter[1]{%
\vbox to \ht\strutbox{
@@ -152,8 +162,8 @@ Use of Iwona\index{Iwona} for the titles of sectioning units (chapters, sections
\hspace{10pt}\vline\ }{10pt}
{\formatchapter}
- \if@twoside%
- \rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{}\fi
+ \clearscrplain
+ \rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{}
\end{lstlisting}
@@ -165,7 +175,7 @@ Itemize lists with semi-transparent labels.
-Settings of captions.
+Caption settings.
\begin{lstlisting}
\captionsetup{format=hang,font=small,labelfont={sf,bf}}
\captionsetup[table]{skip=\medskipamount}
@@ -173,119 +183,19 @@ Settings of captions.
-
-
-Settings of \pkgname{hyperref}.
+Hyper-reference settings.
\begin{lstlisting}
-\hypersetup{%
+\hypersetup{
colorlinks=true, linktocpage=true, pdfstartpage=1,
pdfstartview=FitV, breaklinks=true, pdfpagemode=UseNone,
- pageanchor=true, pdfpagemode=UseOutlines,%
+ pageanchor=true, pdfpagemode=UseOutlines,
plainpages=false, bookmarksnumbered,
- bookmarksopen=true,%
- bookmarksopenlevel=1,%
- hypertexnames=true, pdfhighlight=/O,%
+ bookmarksopen=true, bookmarksopenlevel=1,
+ hypertexnames=true, pdfhighlight=/O,
urlcolor=webbrown, linkcolor=RoyalBlue,
- citecolor=webgreen,%
- hyperfootnotes=false,pdfpagelabels,
- pdfsubject={},%
- pdfkeywords={},%
- pdfcreator={pdfLaTeX},%
- pdfproducer={LaTeX with hyperref and ClassicThesis}%
+ citecolor=webgreen,
+ hyperfootnotes=false, pdfpagelabels,
+ pdfcreator={pdfLaTeX},
+ pdfproducer={LaTeX with ArsClassica}
}
-\end{lstlisting}
-
-
-
-Some fine adjustment when the \pkgname{minitoc} package is used.
-\begin{lstlisting}
-\@ifpackageloaded{minitoc}
-{%
- \MakeLowercase{\gdef\noexpand\ptctitle{\ptctitle}}
- \MakeLowercase{\gdef\noexpand\mtctitle{\mtctitle}}
- \MakeLowercase{\gdef\noexpand\stctitle{\stctitle}}
- \setlength{\mtcindent}{0pt}
- \renewcommand{\mtifont}{\normalsize\sffamily
- \scshape\lsstyle}
-}
-{}
-\end{lstlisting}
-
-
-Definition of the
-{\ttfamily\textbackslash\color{RoyalBlue}{ctLaTeX}},
-{\ttfamily\textbackslash\color{RoyalBlue}{ctLaTeXe}} and
-{\ttfamily\textbackslash\color{RoyalBlue}{ctTeX}} commands,
-which allow to reproduce respectively the \LaTeX, \LaTeXe{} e \TeX{} logos correctly written in Iwona.\index{Iwona}
-\begin{lstlisting}
-\def\@ppljLaTeX{{\upshape
- \sbox\z@{\check@mathfonts\fontsize\sf@size\z@%
- \math@fontsfalse\selectfont A}%
- \sbox\tw@ T%
- L\kern-.55\wd\z@
- \vbox to\ht\tw@{\copy\z@\vss}%
- \kern-.25\wd0
- \@ctTeX}}
-\def\@ppljTeX{{\upshape T\kern -.08em \lower .3ex\hbox{E}%
-\kern -.08em X}}
-
-\def\@ppljscLaTeX{{\upshape\scshape
- \sbox\z@{\check@mathfonts\fontsize\sf@size\z@%
- \math@fontsfalse\selectfont a}%
- \sbox\tw@ t%
- l\kern-.6\wd\z@
- \vbox to\ht\tw@{\copy\z@\vss}%
- \kern-.25\wd0
- \@ctTeX}}
-\def\@ppljscTeX{{\upshape\scshape t\kern -.085em
-\lower .25ex\hbox{e}\kern -.085em x}}
-
-\def\@iwonaLaTeX{{\upshape
- \sbox\z@{\check@mathfonts\fontsize\sf@size\z@%
- \math@fontsfalse\selectfont A}%
- \sbox\tw@ T%
- L\kern-.5\wd\z@
- \vbox to\ht\tw@{\copy\z@\vss}%
- \kern-.2\wd0
- \@ctTeX}}
-\def\@iwonaTeX{{\upshape T\kern -.12em \lower .3ex\hbox{E}%
- \kern -.12em X}}
-
-\def\@iwonascLaTeX{{\upshape\scshape
- \sbox\z@{\check@mathfonts\fontsize\sf@size\z@%
- \math@fontsfalse%
- \selectfont a}%
- \sbox\tw@ t%
- l\kern-.5\wd\z@
- \vbox to\ht\tw@{\copy\z@\vss}%
- \kern-.2\wd0
- \@ctTeX}}
-\def\@iwonascTeX{{\upshape\scshape t\kern -.1em
- \lower .25ex\hbox{e}\kern -.1em x}}
-
-\def\ct@sc{sc}
-\def\@ctTeX{\csname @\f@family\ifx\f@shape\ct@sc sc%
-\fi TeX\endcsname}
-
-\DeclareRobustCommand\ctLaTeX{%
- \texorpdfstring{\textls[1]{\csname @\f@family\ifx%
- \f@shape\ct@sc sc\fi LaTeX\endcsname}}{LaTeX}}
-\DeclareRobustCommand\ctLaTeXe{%
- \texorpdfstring{\textls[1]{\ctLaTeX\csname @\ifx%
- \f@shape\ct@sc sc\fi twoe\endcsname}}{LaTeX2e}}
-
-\def\@twoe{\kern.1em$\m@th2_{\textstyle\varepsilon}$}
-\def\@sctwoe{\kern.15em$\m@th{\scriptscriptstyle2}%
-_\varepsilon$}
-
-\DeclareRobustCommand\ctTeX{%
- \texorpdfstring{\textls[1]{\@ctTeX}}{TeX}}
-
-\def\toc@headingbkORrp{%
- \def\toc@heading{%
- \chapter*{\contentsname}%
- \@mkboth{\spacedlowsmallcaps{\contentsname}}
- {\spacedlowsmallcaps{\contentsname}}}}
-\@ifclassloaded{scrreprt}{\toc@headingbkORrp}{}
-\@ifclassloaded{scrbook}{\toc@headingbkORrp}{}
-\end{lstlisting}
+\end{lstlisting} \ No newline at end of file