summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/arsclassica/arsclassica-settings.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/arsclassica/arsclassica-settings.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/arsclassica/arsclassica-settings.tex')
-rw-r--r--macros/latex/contrib/arsclassica/arsclassica-settings.tex82
1 files changed, 82 insertions, 0 deletions
diff --git a/macros/latex/contrib/arsclassica/arsclassica-settings.tex b/macros/latex/contrib/arsclassica/arsclassica-settings.tex
new file mode 100644
index 0000000000..b9cf9ffec7
--- /dev/null
+++ b/macros/latex/contrib/arsclassica/arsclassica-settings.tex
@@ -0,0 +1,82 @@
+% ********************************************************************
+% Personal commands
+% ********************************************************************
+\newcommand{\myName}{Lorenzo Pantieri}
+\newcommand{\myTitle}{The ArsClassica package}
+\newcommand{\mySubTitle}{Ah homage to the Elements of Typographic Style}
+
+\DeclareRobustCommand*{\clsname}[1]{{\normalfont\sffamily#1}}
+\DeclareRobustCommand*{\pkgname}[1]{{\normalfont\sffamily#1}}
+\DeclareRobustCommand*{\optname}[1]{{\normalfont\ttfamily#1}}
+\DeclareRobustCommand*{\cmdname}[1]{\mbox{\lstinline[basicstyle=\normalsize\ttfamily]!\\#1!}}
+
+\DeclareRobustCommand*{\classicthesis}{Classic\-Thesis}
+\DeclareRobustCommand*{\arsclassica}{{\normalfont\sffamily ArsClassica}}
+
+
+% ********************************************************************
+% Hyper-references
+% ********************************************************************
+\newcommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
+
+
+% ********************************************************************
+% Graphics
+% ********************************************************************
+\graphicspath{{Graphics/}}
+
+
+% ********************************************************************
+% Code
+% ********************************************************************
+\definecolor{lightergray}{gray}{0.99}
+
+\lstset{language=[LaTeX]Tex,
+ keywordstyle=\color{RoyalBlue},
+ basicstyle=\small\ttfamily,
+ commentstyle=\color{Emerald}\ttfamily,
+ stringstyle=\rmfamily,
+ numberstyle=\scriptsize,
+ showstringspaces=false,
+ breaklines=true,
+ frame=lines,
+ backgroundcolor=\color{lightergray},
+ flexiblecolumns=true,
+ escapeinside={£*}{*£},
+ firstnumber=last,
+}
+
+\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
+
+\lstset{ morekeywords=%
+ {ProvidesPackage,RequirePackage,areaset,ifthenelse,%
+ chapterNumber,undefined,boolean,DeclareRobustCommand,%
+ spacedallcaps,textssc,MakeTextUppercase,lehead,%
+ microtypesetup,textls,spacedlowsmallcaps,MakeTextLowercase,%
+ sodef,allcapsspacing,lowsmallcapsspacing,thesection,%
+ color,headmark,rohead,headfont,pnumfont,titleformat,%
+ part,partname,thepart,chapter,thechapter,titlerule,%
+ subsection,thesubsection,subsubsection,thesubsubsection,%
+ paragraph,theparagraph,descriptionlabel,titlespacing,%
+ formatchapter,textcolor,clearscrplain,rofoot,labelitemi,
+ captionsetup,hypersetup}}
+
+\lstnewenvironment{code}%
+ {\setkeys{lst}{columns=fullflexible,keepspaces=true}%
+ \lstset{basicstyle=\small\ttfamily}}{}
+
+
+% ********************************************************************
+% Bibliography
+% ********************************************************************
+\bibliography{Bibliography}
+
+\defbibheading{bibliography}{%
+\cleardoublepage
+\manualmark
+\phantomsection
+\addcontentsline{toc}{chapter}{\tocEntry{\bibname}}
+\chapter*{\bibname\markboth{\spacedlowsmallcaps{\bibname}}
+{\spacedlowsmallcaps{\bibname}}}}
+
+\renewcommand*{\nameyeardelim}{\addcomma\space} \ No newline at end of file