├── settings.tex ├── arsclassica.pdf ├── images ├── sit.jpg ├── dolor.jpg ├── ipsum.jpg ├── lorem.jpg ├── gallery.jpg └── sigillo.pdf ├── arsclassica-frn.pdf ├── backmatter ├── appendix1.tex ├── appendix2.tex ├── bibliography.tex ├── index.tex ├── acronyms.tex └── declaration.tex ├── bibliography.bib ├── .gitignore ├── chapters ├── 3.tex ├── 1.tex └── 2.tex ├── frontmatter ├── colophon.tex ├── dedication.tex ├── summary_abstract.tex ├── frontispiece.tex ├── frontispiece_simple.tex ├── acknowledgements.tex ├── introduction.tex └── indexes.tex ├── info.tex ├── Makefile ├── README.md ├── arsclassica.tex ├── arsclassica.sty └── classicthesis.sty /settings.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/settings.tex -------------------------------------------------------------------------------- /arsclassica.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/arsclassica.pdf -------------------------------------------------------------------------------- /images/sit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/images/sit.jpg -------------------------------------------------------------------------------- /images/dolor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/images/dolor.jpg -------------------------------------------------------------------------------- /images/ipsum.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/images/ipsum.jpg -------------------------------------------------------------------------------- /images/lorem.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/images/lorem.jpg -------------------------------------------------------------------------------- /arsclassica-frn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/arsclassica-frn.pdf -------------------------------------------------------------------------------- /images/gallery.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/images/gallery.jpg -------------------------------------------------------------------------------- /images/sigillo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leodido/arsclassica/develop/images/sigillo.pdf -------------------------------------------------------------------------------- /backmatter/appendix1.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %************************************************ 7 | \chapter{Code} 8 | \label{cap:appendix-1} 9 | %************************************************ 10 | 11 | \lipsum[1] 12 | -------------------------------------------------------------------------------- /backmatter/appendix2.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %************************************************ 7 | \chapter{Ipsum} 8 | \label{cap:appendix-2} 9 | %************************************************ 10 | 11 | \lipsum[2] 12 | -------------------------------------------------------------------------------- /backmatter/bibliography.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Bibliography 8 | %******************************************************* 9 | \cleardoublepage 10 | \nocite{*} 11 | \printbibliography -------------------------------------------------------------------------------- /bibliography.bib: -------------------------------------------------------------------------------- 1 | @book{gihman1973, 2 | author = {Gihman, {Iosif I.} and Skorohod, {Anatolij V.}}, 3 | publisher = {New York: Springer-Verlag}, 4 | title = {{The theory of stochastic processes II}}, 5 | year = {1973} 6 | } 7 | @book{gihman1974, 8 | author = {Gihman, {Iosif I.} and Skorohod, {Anatolij V.}}, 9 | publisher = {New York: Springer-Verlag}, 10 | title = {{The theory of stochastic processes II}}, 11 | year = {1974} 12 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.acn 2 | *.acr 3 | *.alg 4 | *.aux 5 | *.bbl 6 | *.bcf 7 | *.blg 8 | *.dvi 9 | *.fdb_latexmk 10 | *.fls 11 | *-frn.tex 12 | *.glg 13 | *.glo 14 | *.gls 15 | *.idx 16 | *.ilg 17 | *.ind 18 | *.ist 19 | *.lof 20 | *.log 21 | *.lot 22 | *.lol 23 | *.maf 24 | *.mtc 25 | *.mtc0 26 | *.nav 27 | *.nlo 28 | *.out 29 | *.pdfsync 30 | *.ps 31 | *.snm 32 | *.synctex.gz 33 | *.toc 34 | *.vrb 35 | *.xdy 36 | *.tdo 37 | *.sublime-project 38 | *.sublime-workspace 39 | *.run.xml 40 | *-blx.bib 41 | *~ 42 | -------------------------------------------------------------------------------- /chapters/3.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %************************************************ 7 | \chapter{A very long chapter title} 8 | \label{cap:three} 9 | %************************************************ 10 | 11 | An common acronym is: \ac{WYSIWYG}. 12 | 13 | \lipsum[1] 14 | 15 | \section{Mane} 16 | \lipsum[2] 17 | 18 | \section{Tekel} 19 | \lipsum[3] 20 | 21 | \section{Fares} 22 | \lipsum[4-5] 23 | -------------------------------------------------------------------------------- /frontmatter/colophon.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Colophon 8 | %******************************************************* 9 | \clearpage 10 | \phantomsection 11 | \thispagestyle{empty} 12 | 13 | \hfill 14 | 15 | \vfill 16 | 17 | \noindent\myname: \textit{\mytitle} 18 | \mydegree \hspace{1px} \textcopyright\ \MakeTextLowercase{\mytime}. 19 | 20 | \lipsum[2] 21 | -------------------------------------------------------------------------------- /backmatter/index.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Analytical Index 8 | %******************************************************* 9 | \cleardoublepage 10 | \manualmark 11 | \phantomsection 12 | \markboth{\spacedlowsmallcaps{\indexname}}{\spacedlowsmallcaps{\indexname}} 13 | \addcontentsline{toc}{chapter}{\tocEntry{\indexname}} 14 | \pagestyle{scrheadings} 15 | \printindex 16 | -------------------------------------------------------------------------------- /frontmatter/dedication.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Dedication 8 | %******************************************************* 9 | \cleardoublepage 10 | \phantomsection 11 | \thispagestyle{empty} 12 | \pdfbookmark{Dedication}{Dedication} 13 | 14 | \vspace*{3cm} 15 | 16 | \begin{center} 17 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. \\ \medskip 18 | --- Donald Knuth 19 | \end{center} 20 | 21 | \medskip 22 | 23 | \begin{center} 24 | Dedicated to all the lovers of \LaTeX. 25 | \end{center} 26 | -------------------------------------------------------------------------------- /backmatter/acronyms.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Acronnyms 8 | %******************************************************* 9 | \cleardoublepage 10 | \manualmark 11 | \phantomsection 12 | \addcontentsline{toc}{chapter}{\tocEntry{\acroname}} 13 | \chapter*{\acroname\markboth{\spacedlowsmallcaps{\acroname}}{\spacedlowsmallcaps{\acroname}}} 14 | \small 15 | \begin{acronym}[WYSIWYG] % insert in the square brackets the longest acronym word 16 | \acro{WYSIWYG}[WYSIWYG]{What you see is what you get} 17 | \end{acronym} 18 | -------------------------------------------------------------------------------- /frontmatter/summary_abstract.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Summary and Abstract 8 | %******************************************************* 9 | \cleardoublepage 10 | \phantomsection 11 | \pdfbookmark{Summary}{Summary} 12 | \begingroup 13 | \let\clearpage\relax 14 | \let\cleardoublepage\relax 15 | \let\cleardoublepage\relax 16 | 17 | \chapter*{Summary} 18 | 19 | \lipsum[1] 20 | 21 | \vfill 22 | 23 | \pdfbookmark{Abstract}{Abstract} 24 | \chapter*{Abstract} 25 | 26 | \lipsum[2] 27 | 28 | \endgroup 29 | 30 | \vfill 31 | 32 | -------------------------------------------------------------------------------- /frontmatter/frontispiece.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Frontispiece 8 | %******************************************************* 9 | \begin{frontespizio} 10 | \Preambolo{ 11 | \usepackage{iwona} 12 | \input{info} 13 | } 14 | 15 | \Universita{\myuni{}} 16 | \Logo{images/sigillo} 17 | \Facolta{\myfaculty{}} 18 | \Corso{\mycourse{}} 19 | \Annoaccademico{\myaa{}} 20 | \Titoletto{\mydegree{}} 21 | \Titolo{\mytitle{}} 22 | \Sottotitolo{\mysubtitle{}} 23 | \Candidato[\myid{}]{\myname{}} 24 | \Relatore{\myprof{}} 25 | \Correlatore{\mycorrelator{}} 26 | \end{frontespizio} 27 | -------------------------------------------------------------------------------- /frontmatter/frontispiece_simple.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Frontispiece 8 | %******************************************************* 9 | \begin{titlepage} 10 | \vfill 11 | \begin{center} 12 | \large 13 | \sffamily 14 | \bigskip 15 | 16 | {\LARGE\myname} \\ 17 | 18 | \bigskip 19 | 20 | {\Huge\mytitle} \\ 21 | 22 | \bigskip 23 | 24 | \vspace{9cm} 25 | 26 | \begin{tabular}{cc} 27 | \parbox{0.3\textwidth}{\includegraphics[width=2.5cm]{sigillo}} 28 | & 29 | \parbox{0.7\textwidth}{ 30 | {\Large\mydegree} \\ 31 | {\normalsize 32 | Relatore: \myprof \\ 33 | Correlatore: \mycorrelator \\ 34 | \myuni \\ 35 | \myfaculty \\ 36 | \mydepartment \\ 37 | \mytime} 38 | } 39 | \end{tabular} 40 | \end{center} 41 | \vfill 42 | \end{titlepage} -------------------------------------------------------------------------------- /frontmatter/acknowledgements.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Acknowledgements 8 | %******************************************************* 9 | \cleardoublepage 10 | \phantomsection 11 | \pdfbookmark{Acknowledgements}{Acknowledgements} 12 | 13 | \begin{flushright}{\slshape 14 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. \\ 15 | Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. \\ 16 | Curabitur dictum gravida mauris.} \\ \medskip 17 | --- Donald Ervin Knuth 18 | \end{flushright} 19 | 20 | 21 | \bigskip 22 | 23 | \begingroup 24 | \let\clearpage\relax 25 | \let\cleardoublepage\relax 26 | \let\cleardoublepage\relax 27 | 28 | \chapter*{Acknowledgements} 29 | 30 | \lipsum[1] 31 | 32 | \bigskip 33 | 34 | \noindent\textit{\mylocation, \MakeTextLowercase{\mytime}} 35 | \hfill ~L. 36 | 37 | \endgroup 38 | -------------------------------------------------------------------------------- /info.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 Unicode 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %********************************************************************************* 7 | % Thesis informations 8 | %********************************************************************************* 9 | \newcommand{\myname}{Leonardo~Di~Donato} 10 | \newcommand{\myid}{744739} 11 | \newcommand{\mytitle}{Pure awesomeness} 12 | \newcommand{\mysubtitle}{Concentrated} 13 | \newcommand{\mydegree}{M.sc thesis} 14 | \newcommand{\mycourse}{Computer Science} 15 | \newcommand{\myuni}{Github} 16 | \newcommand{\myfaculty}{Internet} 17 | \newcommand{\mydepartment}{Coders} 18 | \newcommand{\myprof}{Prof.~N.~Surname} 19 | \newcommand{\mycorrelator}{Dott.~N~Surname} 20 | \newcommand{\mylocation}{Somewhere} 21 | \newcommand{\mytime}{September 2013} 22 | \newcommand{\myaa}{2012-2013} 23 | \newcommand{\mysubject}{Awesomeness} 24 | \newcommand{\mykeywords}{thesis, tex, latex, pdflatex, templating} 25 | -------------------------------------------------------------------------------- /backmatter/declaration.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Declaration 8 | %******************************************************* 9 | \cleardoublepage 10 | \phantomsection 11 | \pdfbookmark{Declaration}{Declaration} 12 | \chapter*{Declaration} 13 | \thispagestyle{empty} 14 | 15 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. 16 | 17 | Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. 18 | 19 | \bigskip 20 | 21 | \noindent\textit{\mylocation, \MakeTextLowercase{\mytime}} 22 | 23 | \smallskip 24 | 25 | \begin{flushright} 26 | \begin{tabular}{m{5cm}} 27 | \\ \hline 28 | \centering\myname \\ 29 | \end{tabular} 30 | \end{flushright} 31 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | ROOT_FILE = arsclassica 2 | BACKUP_FILES = *~ 3 | CLEAN_FILES = $(BACKUP_FILES) *-frn.tex *.fls *.acn *.acr *.alg *.aux *.bcf *.bbl *.blg *.dvi *.fdb_latexmk *.glg *.glo *.gls *.idx *.ilg *.ind *.ist *.lof *.log *.lot *.lol *.maf *.mtc *.mtc0 *.nav *.nlo *.out *.pdfsync *.ps *.snm *.synctex.gz *.toc *.vrb *.xdy *.tdo *.run.xml *-blx.bib 4 | DIST_FILES = $(ROOT_FILE).pdf $(ROOT_FILE)-frn.pdf 5 | 6 | .PHONY: clean distclean tex index frontispiece biber prepare simplethesis thesis 7 | 8 | clean: 9 | echo $(CLEAN_FILES) | xargs $(RM); \ 10 | find . -name '$(BACKUP_FILES)' | xargs $(RM); 11 | 12 | distclean: clean 13 | $(RM) $(DIST_FILES) 14 | 15 | tex: 16 | latexmk -silent -f -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(ROOT_FILE).tex 17 | 18 | index: 19 | makeindex -s classic $(ROOT_FILE) 20 | 21 | frontispiece: 22 | if [ ! -f "$(ROOT_FILE)-frn.pdf" ]; \ 23 | then \ 24 | pdflatex $(ROOT_FILE)-frn.tex; \ 25 | fi; 26 | 27 | biber: 28 | biber $(ROOT_FILE) 29 | 30 | prepare: tex 31 | $(MAKE) index 32 | $(MAKE) biber 33 | 34 | simplethesis: prepare 35 | $(MAKE) tex 36 | 37 | thesis: prepare 38 | $(MAKE) frontispiece 39 | $(MAKE) tex 40 | -------------------------------------------------------------------------------- /frontmatter/introduction.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Introduction 8 | %******************************************************* 9 | \cleardoublepage 10 | \pdfbookmark{Introduction}{Introduction} 11 | \chapter*{Introduction}\label{cap:intro} 12 | 13 | \lipsum[1] 14 | 15 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 16 | % \begin{description} 17 | % \item[{\hyperref[cap:lorem]{Il primo capitolo}}] 18 | % offre una visione d'insieme della storia di \LaTeX{} e ne vengono presentate le idee di fondo. 19 | % \item[{\hyperref[cap:ipsum]{Il secondo capitolo}}] 20 | % spiega le operazioni, veramente semplici, per installare \LaTeX{} sul proprio calcolatore. 21 | % \item[{\hyperref[cap:dolor]{L'appendice A}}] descrive sinteticamente le principali norme tipografiche della lingua italiana, utili nella composizione di articoli, tesi o libri. 22 | % \end{description} 23 | 24 | \begin{description} 25 | \item[{\hyperref[cap:one]{First chapter}}] 26 | talks about \omissis{} 27 | \item[{\hyperref[cap:two]{Second chapter}}] 28 | talks about \omissis{} 29 | \item[{\hyperref[cap:three]{Third chapter}}] 30 | talks about \omissis{} 31 | \end{description} 32 | 33 | % \lipsum[2] 34 | -------------------------------------------------------------------------------- /frontmatter/indexes.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %******************************************************* 7 | % Indexes 8 | %******************************************************* 9 | \cleardoublepage 10 | \pdfbookmark{\contentsname}{tableofcontents} 11 | \tableofcontents 12 | \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}} 13 | \clearpage 14 | 15 | \begingroup 16 | \let\clearpage\relax 17 | \let\cleardoublepage\relax 18 | \let\cleardoublepage\relax 19 | 20 | %******************************************************* 21 | % List of figures 22 | %******************************************************* 23 | \phantomsection 24 | \pdfbookmark{\listfigurename}{lof} 25 | \listoffigures 26 | 27 | \vspace*{8ex} 28 | 29 | %******************************************************* 30 | % List of tables 31 | %******************************************************* 32 | \phantomsection 33 | \pdfbookmark{\listtablename}{lot} 34 | \listoftables 35 | 36 | \vspace*{8ex} 37 | 38 | %******************************************************* 39 | % List of listings 40 | %******************************************************* 41 | \phantomsection 42 | \pdfbookmark{\lstlistlistingname}{loa} 43 | \lstlistoflistings 44 | 45 | \vspace*{8ex} 46 | 47 | \endgroup 48 | 49 | \cleardoublepage 50 | -------------------------------------------------------------------------------- /chapters/1.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %************************************************ 7 | \chapter{One} 8 | \label{cap:one} 9 | %************************************************ 10 | 11 | A citation~\citep{gihman1973}. And another citation~\citep{gihman1974} 12 | 13 | Lorem \keyword{ipsum} \keyword{dolor} sit \keyword{amet}, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. 14 | 15 | \section{Examples} 16 | 17 | \subsection{Tables} 18 | 19 | \lipsum 20 | 21 | \begin{table}[tb] 22 | \caption[A floating table]{And example showing a floating table.} 23 | \label{tab:ex-1} 24 | \centering 25 | \begin{tabular}{cc} 26 | \toprule 27 | $p$ & $\lnot p$ \\ 28 | \midrule 29 | V & F \\ 30 | F & V \\ 31 | \bottomrule 32 | \end{tabular} 33 | \end{table} 34 | 35 | The ~\vref{tab:ex-1} provides an example of floating table. 36 | 37 | \lipsum[1-2] 38 | 39 | \subsection{Figure} 40 | 41 | \lipsum[2] 42 | 43 | \begin{figure}[tb] 44 | \centering 45 | \includegraphics[width=0.5\columnwidth]{gallery} 46 | \caption[Un esempio di figura mobile]{Un esempio di figura mobile (l'immagine, che riproduce la litografia \emph{Galleria di stampe}, di M.~Escher,\index{Escher, M.~C.} proviene da \url{http://www.mcescher.com/}).} 47 | \label{fig:galleria} 48 | \end{figure} 49 | 50 | La figura~\vref{fig:galleria} fornisce un esempio di figura mobile. 51 | 52 | \lipsum[3] 53 | 54 | \begin{figure}[tb] 55 | \centering 56 | \subfloat[Asia personas duo.] 57 | {\includegraphics[width=.45\columnwidth]{lorem}} \quad 58 | \subfloat[Pan ma signo.] 59 | {\label{fig:ipsum}% 60 | \includegraphics[width=.45\columnwidth]{ipsum}} \\ 61 | \subfloat[Methodicamente o uno.] 62 | {\includegraphics[width=.45\columnwidth]{dolor}} \quad 63 | \subfloat[Titulo debitas.] 64 | {\includegraphics[width=.45\columnwidth]{sit}} 65 | \caption[Tu duo titulo debitas latente]{Tu duo titulo debitas 66 | latente.} 67 | \label{fig:esempio} 68 | \end{figure} 69 | 70 | La figura~\vref{fig:esempio} costituisce un esempio di figura mobile. 71 | 72 | \lipsum[4] 73 | -------------------------------------------------------------------------------- /chapters/2.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = ../arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | %************************************************ 7 | \chapter{Two} 8 | \label{cap:two} 9 | %************************************************ 10 | 11 | 12 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. 13 | \begin{description} 14 | \item[Lorem ipsum dolor] sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac $\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}= \frac{\pi^2}{6}$. 15 | \item[Mauris ut leo.] 16 | Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. 17 | \[ 18 | \lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}= \frac{\pi^2}{6}. 19 | \] 20 | \end{description} 21 | 22 | Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus viverra fermentum felis. 23 | \begin{equation} 24 | \label{eq:euler} 25 | e^{i\pi}+1=0. 26 | \end{equation} 27 | Dalla formula~\eqref{eq:euler} 28 | si deduce che\dots 29 | 30 | 31 | 32 | 33 | 34 | 35 | \section{Nozioni basilari} 36 | 37 | \subsection{Insiemi numerici} 38 | 39 | Donec nonummy pellentesque ante. Phasellus adipiscing semper elit. 40 | \begin{equation} 41 | x^2 \geq 0 \quad 42 | \forall x \in \mathbb{R}. 43 | \end{equation} 44 | 45 | 46 | \subsection{Le matrici} 47 | 48 | \lipsum[2] 49 | \begin{equation} 50 | A= 51 | \begin{bmatrix} 52 | x_{11} & x_{12} & \dots \\ 53 | x_{21} & x_{22} & \dots \\ 54 | \vdots & \vdots & \ddots 55 | \end{bmatrix} 56 | \end{equation} 57 | 58 | 59 | 60 | \section{Formule fuori corpo} 61 | 62 | Proin fermentum massa ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend at, accumsan nec, suscipit a, ipsum. 63 | 64 | 65 | \subsection{Una formula spezzata con allineamento} 66 | 67 | \lipsum[2] 68 | \begin{equation} 69 | \begin{split} 70 | a &= b+c-d \\ 71 | &= e-f \\ 72 | &= g+h \\ 73 | &= i. 74 | \end{split} 75 | \end{equation} 76 | 77 | 78 | \subsection{Casi} 79 | 80 | \lipsum[3] 81 | \begin{equation} 82 | f(n):= 83 | \begin{cases} 84 | 2n+1, & \text{con $n$ dispari,} \\ 85 | n/2, & \text{con $n$ pari.} 86 | \end{cases} 87 | \end{equation} 88 | 89 | 90 | 91 | \section{Enunciati e dimostrazioni} 92 | 93 | Nunc eleifend consequat lorem. Sed lacinia nulla vitae enim. Pellentesque tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. 94 | \begin{definizione}[di Gauss] 95 | Un \emph{matematico} trova ovvio che 96 | $\int_{-\infty}^{+\infty} 97 | e^{-x^2}\,dx=\sqrt{\pi}$. 98 | \end{definizione} 99 | \begin{teorema} 100 | I matematici, se ce ne sono, sono molto rari. 101 | \end{teorema} 102 | 103 | \lipsum[2] 104 | 105 | \begin{teorema}[di Pitagora] 106 | La somma dei quadrati costruiti sui cateti uguaglia il quadrato costruito sull'ipotenusa. 107 | \end{teorema} 108 | La dimostrazione viene lasciata per esercizio. 109 | 110 | Donec bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum pellentesque felis eu massa. 111 | \begin{teorema}[Sorpresa] 112 | Si ha che $\log(-1)^2=2\log(-1)$. 113 | \end{teorema} 114 | \begin{proof} 115 | Si ha che $\log(1)^2 = 2\log(1)$. 116 | Ma si ha anche che $\log(-1)^2=\log(1)=0$. 117 | Quindi $2\log(-1)=0$, da cui la tesi. 118 | \end{proof} 119 | Viene un quadratino a fine dimostrazione. 120 | \begin{legge} 121 | \label{lex:capo} 122 | Il capo ha ragione. 123 | \end{legge} 124 | \begin{decreto}[Aggiornamento alla legge~\ref{lex:capo}] 125 | Il capo ha \emph{sempre} ragione. 126 | \end{decreto} 127 | \begin{legge} 128 | Se il capo ha torto, vedere la 129 | legge~\ref{lex:capo}. 130 | \end{legge} 131 | 132 | 133 | Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. 134 | 135 | Cras nec ante. Pellentesque a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt urna. 136 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ArsClassica [![Analytics](https://ga-beacon.appspot.com/UA-49657176-1/arsclassica)](https://github.com/igrigorik/ga-beacon) 2 | ============== 3 | 4 | `LaTeX` thesis template based on *ArsClassica* (version [4.0.3](http://www.ctan.org/pkg/arsclassica)) and *ClassicThesis* (version [4.1](http://www.ctan.org/pkg/classicthesis)) packages with custom and useful additions. 5 | 6 | This template provides the following **enhancements**: 7 | 8 | - Completely automated compilation task 9 | 10 | - Additional typographical niceties 11 | 12 | - Fixes and extensions (see file `settings.tex`): 13 | 14 | - **Bibliography** back-end default to `biber` 15 | 16 | - Support multi-line titles 17 | 18 | - Two different styles for chapter numbers 19 | 20 | - Integrated **analytical index** 21 | 22 | - Custom commands to indexing terms (e.g., `\keywordsub[category]{term}`) 23 | 24 | - Support for **acronyms** 25 | 26 | - Predefined custom environments (e.g., theorems, definitions) 27 | 28 | - Custom reference examples 29 | 30 | - Predefined **listings environment** 31 | 32 | - Predefined pseudo-code language and style for listings 33 | 34 | - Various utility commands (e.g., `\lwcase` to lowercase the first letter of the word that follows it) 35 | 36 | ## Prerequisites 37 | 38 | - A complete `LaTeX` distribution (e.g., texlive). 39 | 40 | - The `make` build automation utility. 41 | 42 | ## Workflow 43 | 44 | The suggested workflow is: 45 | 46 | 1. Clone this repository: 47 | 48 | `git clone git@github.com:leodido/arsclassica.git`. 49 | 50 | 2. Create a new branch: 51 | 52 | `cd ~/arsclassica && git checkout -b mythesis`. 53 | 54 | 3. First-time complete build of the thesis: 55 | 56 | `make -s thesis`. 57 | 58 | 4. Write a wonderful (not only typographically) thesis. No more excuses. 59 | 60 | ## Commands 61 | 62 | * Remove all the generated files except the PDFs: 63 | 64 | `make -s clean`. 65 | 66 | * Remove all the generated files: 67 | 68 | `make -s distclean`. 69 | 70 | * Compile the thesis: 71 | 72 | `make -s thesis`. 73 | 74 | This command embeds the correct sequence of commands relevant for the proper compilation of the thesis, including analytical index, bibliography, and title page. 75 | 76 | * Update the analytical index: 77 | 78 | `make -s index && make -s tex`. 79 | 80 | ## Editor 81 | 82 | This template does not need any specific editor to work: you can simply use which editor you want. 83 | 84 | However, if you prefer to use Sublime Text you can edit and compile `arsclassica` template simply installing [LaTeXTools](https://github.com/SublimeText/LaTeXTools) package. 85 | 86 | Create a Sublime Text project file containing: 87 | 88 | ``` 89 | { 90 | "folders": 91 | [ 92 | { 93 | "path": ".", 94 | "file_exclude_patterns": ["*-blx.bib", "*.aux", "*.bbl", "*.blg", "*.fdb_latexmk", "*.lof", "*.log", "*.lot", "*.run", "*.run.xml", "*.synctex", "*.synctex.gz", "*.toc", "*.sublime-project", "*.sublime-project~", "*.sublime-workspace", "*.sublime-workspace~"] 95 | } 96 | ], 97 | "TEXroot": "./arsclassica.tex" 98 | } 99 | ``` 100 | 101 | Put the project file inside the folder, open Sublime Text and compile it (`CTRL + B`). 102 | 103 | Note that this actions is equivalent to `make -s tex`. Therefore, before running it, you need to do a complete compilation (i.e., `make -s thesis`). 104 | 105 | ## Title page 106 | 107 | An alternative and simple frontispiece is provided. See file `frontispiece_simple.tex` in the `frontmatter` directory. 108 | 109 | How to use: substitute it to `frontispiece.tex` and run `make -s simplethesis`. 110 | 111 | ## Credits 112 | 113 | * [Lorenzo Pantieri](http://www.lorenzopantieri.net), 114 | 115 | author of *ArsClassica* package which is aimed to improve some ty­po­graph­i­cal points of the *Clas­sicTh­e­sis* style. 116 | 117 | Documentation and features explaination ca be found [here](http://ftp.uniroma2.it/TeX/macros/latex/contrib/arsclassica/ArsClassica.pdf). 118 | 119 | * [André Miede](http://www.ctan.org/author/miede), 120 | 121 | author of *ClassicThesis* package ([link](http://ctan.mirror.garr.it/mirrors/CTAN/macros/latex/contrib/classicthesis/ClassicThesis.pdf)) which pro­vides an el­e­gant lay­out de­signed in homage to Bringhurst’s "The Ele­ments of Ty­po­graphic Style". 122 | -------------------------------------------------------------------------------- /arsclassica.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 Unicode 2 | % !TEX TS-program = pdflatex 3 | % !TEX root = arsclassica.tex 4 | % !TEX spellcheck = it-IT 5 | 6 | \documentclass[ 7 | 11pt,% % primary font size 8 | a4paper,% % A4 9 | %twoside,openright,% % double sided 10 | oneside,openany,% % only front 11 | titlepage,% % new page after the title 12 | %fleqn,% % position equations at a fixed indent from the left margin rather than centered in the text column (amsmath option) 13 | headinclude,,footinclude,% % header at foot of the page 14 | BCOR5mm,% % 5 mm bookbinding 15 | numbers=noenddot,% % no point after section number 16 | cleardoublepage=empty,% % empty pages without header at foot of the page 17 | %draft% % draft document 18 | ]{scrreprt} % KOMA class 19 | 20 | \usepackage[T1]{fontenc} % font encoding: a complete LaTeX distribution is required 21 | 22 | \usepackage{textcomp} % fix warning with missing font shapes 23 | 24 | \usepackage{scrhack} % fix warnings when using KOMA with listings package 25 | 26 | \usepackage{xspace} % to get the right spacing after macros 27 | 28 | \usepackage[utf8]{inputenc} % input encoding: latin1 is also fine, it depends on the editor preferences 29 | 30 | \usepackage[english]{babel} % add language if you need, e.g. [english, italian] so italian is the primary language 31 | 32 | \usepackage[suftesi]{frontespizio} % frontispiece 33 | % 1. compile arsclassica.tex 34 | % 2. compile arsclassica-frn.tex, generated by previous compilation 35 | % 3. compile arsclassica.tex again to include arsclassica-frn.pdf 36 | 37 | \usepackage{indentfirst} % indent the first paragraph of each section 38 | 39 | \usepackage{graphicx} % images 40 | 41 | \usepackage{listings} % codes 42 | 43 | \usepackage[font=small]{quoting} % text citations 44 | 45 | \usepackage{amsmath,amssymb,amsthm,amsfonts}% math 46 | 47 | \usepackage[english]{varioref} % completed references (put here primary language) 48 | 49 | \usepackage{mparhack,fixltx2e,relsize} % typographical niceties 50 | 51 | \usepackage[printonlyused, 52 | smaller, 53 | withpage]{acronym} % acronyms 54 | 55 | \usepackage{tabularx} % tabelle di larghezza prefissata 56 | 57 | \usepackage[babel, 58 | italian=guillemets]{csquotes} % automates some stylistic choices language-dependent: using \mkbibquote command you will get caporali quotes (i.e. « ») 59 | 60 | \usepackage[style=philosophy-modern, 61 | hyperref,backref,natbib, 62 | backend=biber]{biblatex} % bibliography: 63 | % philosophy-modern for author-year citation style 64 | % add square option after backref option to get square brackets 65 | % numeric-comp for numeric citation style 66 | 67 | \bibliography{bibliography} % bibliography database 68 | 69 | \usepackage{subfig} % subfigures, subtables 70 | 71 | \usepackage{lipsum} % placeholding text 72 | 73 | % ******************************************************************** 74 | % Available options for classicthesis.sty: 75 | % drafting 76 | % parts nochapters linedheaders 77 | % eulerchapternumbers beramono eulermath pdfspacing minionprospacing 78 | % tocaligned dottedtoc manychapters 79 | % listings floatperchapter subfig 80 | % ******************************************************************** 81 | \usepackage[eulerchapternumbers,% % chapter numbers font: Euler 82 | subfig,% % because subfig packages has been loaded 83 | %minionpro,% % 84 | beramono,% % fixed-width font: Bera Mono 85 | eulermath,% % math font: AMS Euler 86 | pdfspacing,% % better line filling 87 | listings,% % listings 88 | %parts,% % document divided into parts, not chapters 89 | dottedtoc,% % align TOC page numbers to right 90 | floatperchapter % float objects numbered by chapter 91 | ]{classicthesis} % classicthesis style 92 | 93 | 94 | \usepackage{arsclassica} % improve classicthesis 95 | 96 | \usepackage{bookmark} 97 | 98 | \usepackage{etoolbox} 99 | 100 | \usepackage[noabbrev]{cleveref} 101 | 102 | \usepackage{chngcntr} 103 | 104 | \usepackage{makeidx} % analitycal index 105 | 106 | \usepackage{multicol} 107 | 108 | %****************************************************************** 109 | % Import settings 110 | %****************************************************************** 111 | \input{info} 112 | \input{settings} 113 | %****************************************************************** 114 | % Document 115 | %****************************************************************** 116 | \begin{document} 117 | \pagestyle{scrheadings} 118 | \pagenumbering{roman} 119 | %****************************************************************** 120 | % Front matter 121 | %****************************************************************** 122 | \input{frontmatter/frontispiece} 123 | \input{frontmatter/colophon} 124 | \input{frontmatter/dedication} 125 | \input{frontmatter/indexes} 126 | \input{frontmatter/summary_abstract} 127 | \input{frontmatter/acknowledgements} 128 | \input{frontmatter/introduction} 129 | \cleardoublepage 130 | %****************************************************************** 131 | % Body matter 132 | %****************************************************************** 133 | \pagenumbering{arabic} 134 | \input{chapters/1} 135 | \input{chapters/2} 136 | \input{chapters/3} 137 | % ***************************************************************** 138 | % Backmatter 139 | %****************************************************************** 140 | \appendix 141 | \input{backmatter/appendix1} 142 | \input{backmatter/appendix2} 143 | \input{backmatter/acronyms} 144 | \input{backmatter/index} 145 | \input{backmatter/bibliography} 146 | \input{backmatter/declaration} 147 | \end{document} 148 | -------------------------------------------------------------------------------- /arsclassica.sty: -------------------------------------------------------------------------------- 1 | %************************************************************ 2 | % arsclassica.sty 3 | % 4 | % copyright (C) 2008-2012 Lorenzo Pantieri 5 | % http://www.lorenzopantieri.net/ 6 | % 7 | %************************************************************ 8 | \NeedsTeXFormat{LaTeX2e} 9 | \ProvidesPackage{arsclassica}[2012/02/21 v4.0 Customizing ClassicThesis (LP)] 10 | \RequirePackage{classicthesis} 11 | \RequirePackage{caption} 12 | 13 | %************************************************************ 14 | % Iwona 15 | %************************************************************ 16 | \renewcommand{\sfdefault}{iwona} 17 | 18 | 19 | %************************************************************ 20 | % Chapter numbers 21 | %************************************************************ 22 | \let\chapterNumber\undefined 23 | \ifthenelse{\boolean{@eulerchapternumbers}} 24 | {\newfont{\chapterNumber}{eurb10 scaled 5000}}% 25 | {\newfont{\chapterNumber}{pplr9d scaled 5000}} 26 | 27 | 28 | %************************************************************ 29 | % Fancy stuff 30 | %************************************************************ 31 | \ifthenelse{\boolean{@minionprospacing}}% 32 | {% 33 | \DeclareRobustCommand{\spacedallcaps}[1]{\sffamily% 34 | \textssc{\MakeTextUppercase{#1}}}% 35 | \DeclareRobustCommand{\spacedlowsmallcaps}[1]% 36 | {\sffamily\textssc{\MakeTextLowercase{#1}}}% 37 | }{% 38 | \ifthenelse{\boolean{@pdfspacing}}% 39 | {% 40 | \microtypesetup{expansion=false}% 41 | \DeclareRobustCommand{\spacedallcaps}[1]% 42 | {\sffamily\textls[160]{\MakeTextUppercase{#1}}}% 43 | \DeclareRobustCommand{\spacedlowsmallcaps}[1]% 44 | {\sffamily\textls[80]{\scshape\MakeTextLowercase{#1}}}% 45 | }{% 46 | \RequirePackage{soul} 47 | \sodef\allcapsspacing{\sffamily\upshape}% 48 | {0.15em}{0.65em}{0.6em}% 49 | \sodef\lowsmallcapsspacing{\sffamily\scshape}% 50 | {0.075em}{0.5em}{0.6em}% 51 | \DeclareRobustCommand{\spacedallcaps}[1]% 52 | {\MakeTextUppercase{\allcapsspacing{#1}}}% 53 | \DeclareRobustCommand{\spacedlowsmallcaps}[1]% 54 | {\MakeTextLowercase{\textsc% 55 | {\lowsmallcapsspacing{#1}}}}% 56 | }% 57 | } 58 | %************************************************************ 59 | 60 | 61 | %************************************************************ 62 | % Headlines 63 | %************************************************************ 64 | \renewcommand{\sectionmark}[1]{\markright{\textsc% 65 | {\MakeTextLowercase{\thesection}} \spacedlowsmallcaps{#1}}} 66 | \lehead{\mbox{\llap{\small\thepage\kern1em\color{halfgray}% 67 | \vline}% 68 | \color{halfgray}\hspace{0.5em}\headmark\hfil}} 69 | \rohead{\mbox{\hfil{\color{halfgray}% 70 | \headmark\hspace{0.5em}}% 71 | \rlap{\small{\color{halfgray}\vline}\kern1em\thepage}}} 72 | \renewcommand{\headfont}{\normalfont\sffamily} 73 | \renewcommand{\pnumfont}{\small\sffamily} 74 | 75 | 76 | %************************************************************ 77 | % Layout of the chapter-, section-, subsection-, 78 | % subsubsection-, paragraph and description-headings 79 | %************************************************************ 80 | \RequirePackage{titlesec} 81 | % parts 82 | \ifthenelse{\boolean{@parts}}% 83 | {% 84 | \titleformat{\part}[display] 85 | {\normalfont\centering\large}% 86 | {\thispagestyle{empty}\partname~\MakeTextUppercase{\thepart}}{1em}% 87 | {\color{Maroon}\spacedallcaps} 88 | }{\relax} 89 | % chapters 90 | \ifthenelse{\boolean{@linedheaders}}% 91 | {% 92 | \titleformat{\chapter}[display]% 93 | {\relax}{\raggedleft{\color{halfgray}% 94 | \chapterNumber\thechapter} \\ }{0pt}% 95 | {\titlerule\vspace*{.9\baselineskip}\raggedright% 96 | \spacedallcaps}% 97 | [\normalsize\vspace*{.8\baselineskip}\titlerule]% 98 | }{% 99 | \titleformat{\chapter}[block]% 100 | {\normalfont\Large\sffamily}% 101 | {{\color{halfgray}\chapterNumber\thechapter% 102 | \hspace{10pt}\vline} }{10pt}% 103 | {\spacedallcaps}} 104 | % sections 105 | \titleformat{\section} 106 | {\normalfont\Large\sffamily}{\textsc% 107 | {\MakeTextLowercase{\thesection}}}% 108 | {1em}{\spacedlowsmallcaps} 109 | % subsections 110 | \titleformat{\subsection} 111 | {\normalfont\sffamily}{\textsc{\MakeTextLowercase% 112 | {\thesubsection}}}{1em}{\normalsize} 113 | % subsubsections 114 | \titleformat{\subsubsection} 115 | {\normalfont\sffamily\itshape}{\textsc% 116 | {\MakeTextLowercase{\thesubsubsection}}}% 117 | {1em}{\normalsize\itshape} 118 | % paragraphs 119 | \titleformat{\paragraph}[runin] 120 | {\normalfont\normalsize\sffamily}{\textsc% 121 | {\MakeTextLowercase{\theparagraph}}}% 122 | {0pt}{\spacedlowsmallcaps} 123 | % descriptionlabels 124 | \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}% 125 | \bfseries\spacedlowsmallcaps{#1}} 126 | \titlespacing*{\chapter}{0pt}{1\baselineskip}% 127 | {2\baselineskip} 128 | \titlespacing*{\section}{0pt}{2\baselineskip}% 129 | {.8\baselineskip}[\marginparsep] 130 | \titlespacing*{\subsection}{0pt}{1.5\baselineskip}% 131 | {.8\baselineskip}[\marginparsep] 132 | \titlespacing*{\paragraph}{0pt}{1\baselineskip}% 133 | {1\baselineskip} 134 | % 135 | \newcommand\formatchapter[1]{% 136 | \vbox to \ht\strutbox{ 137 | \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ } 138 | \advance\hsize-\wd0 \advance\hsize-10pt\raggedright 139 | \spacedallcaps{#1}\vss}} 140 | \titleformat{\chapter}[block] 141 | {\normalfont\Large\sffamily} 142 | {\textcolor{halfgray}{\chapterNumber\thechapter} 143 | \hspace{10pt}\vline\ }{10pt} 144 | {\formatchapter} 145 | % 146 | \if@twoside\rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{}\fi 147 | 148 | 149 | %************************************************************ 150 | % itemize 151 | %************************************************************ 152 | \renewcommand\labelitemi{\color{halfgray}$\bullet$} 153 | 154 | 155 | %************************************************************ 156 | % caption 157 | %************************************************************ 158 | \captionsetup{format=hang,font=small,labelfont={sf,bf}} 159 | \captionsetup[table]{skip=\medskipamount} 160 | 161 | 162 | %************************************************************ 163 | % graphicx, xcolor 164 | %************************************************************ 165 | \definecolor{aliceblue}{RGB}{240,248,255} 166 | 167 | \let\ars@@includegraphics\includegraphics 168 | \newcommand{\arsincludegraphics}[2][]{% 169 | \begingroup\setlength{\fboxsep}{0pt}% 170 | \colorbox{aliceblue}{\ars@@includegraphics[#1]{#2}}% 171 | \endgroup} 172 | 173 | 174 | %************************************************************ 175 | % hyperref 176 | %************************************************************ 177 | \hypersetup{% 178 | colorlinks=true, linktocpage=true, pdfstartpage=1, 179 | pdfstartview=FitV, breaklinks=true, pdfpagemode=UseNone, 180 | pageanchor=true, pdfpagemode=UseOutlines,% 181 | plainpages=false, bookmarksnumbered, 182 | bookmarksopen=true,% 183 | bookmarksopenlevel=1,% 184 | hypertexnames=true, pdfhighlight=/O,% 185 | urlcolor=webbrown, linkcolor=RoyalBlue, 186 | citecolor=webgreen,% 187 | %hyperfootnotes=false,pdfpagelabels, 188 | pdfsubject={},% 189 | pdfkeywords={},% 190 | pdfcreator={pdfLaTeX},% 191 | pdfproducer={LaTeX with hyperref and ClassicThesis}% 192 | } 193 | 194 | 195 | %************************************************************ 196 | % minitoc 197 | %************************************************************ 198 | \@ifpackageloaded{minitoc} 199 | {% 200 | \MakeLowercase{\gdef\noexpand\ptctitle{\ptctitle}} 201 | \MakeLowercase{\gdef\noexpand\mtctitle{\mtctitle}} 202 | \MakeLowercase{\gdef\noexpand\stctitle{\stctitle}} 203 | \setlength{\mtcindent}{0pt} 204 | \renewcommand{\mtifont}{\normalsize\sffamily 205 | \scshape\lsstyle} 206 | } 207 | {} 208 | 209 | 210 | %************************************************************ 211 | % \ctLaTeX, \ctLaTeXe, \ctTeX 212 | %************************************************************ 213 | \def\@ppljLaTeX{{\upshape 214 | \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% 215 | \math@fontsfalse\selectfont A}% 216 | \sbox\tw@ T% 217 | L\kern-.55\wd\z@ 218 | \vbox to\ht\tw@{\copy\z@\vss}% 219 | \kern-.25\wd0 220 | \@ctTeX}} 221 | \def\@ppljTeX{{\upshape T\kern -.08em \lower .3ex\hbox{E}% 222 | \kern -.08em X}} 223 | 224 | \def\@ppljscLaTeX{{\upshape\scshape 225 | \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% 226 | \math@fontsfalse\selectfont a}% 227 | \sbox\tw@ t% 228 | l\kern-.6\wd\z@ 229 | \vbox to\ht\tw@{\copy\z@\vss}% 230 | \kern-.25\wd0 231 | \@ctTeX}} 232 | \def\@ppljscTeX{{\upshape\scshape t\kern -.085em 233 | \lower .25ex\hbox{e}\kern -.085em x}} 234 | 235 | \def\@iwonaLaTeX{{\upshape 236 | \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% 237 | \math@fontsfalse\selectfont A}% 238 | \sbox\tw@ T% 239 | L\kern-.5\wd\z@ 240 | \vbox to\ht\tw@{\copy\z@\vss}% 241 | \kern-.2\wd0 242 | \@ctTeX}} 243 | \def\@iwonaTeX{{\upshape T\kern -.12em \lower .3ex\hbox{E}% 244 | \kern -.12em X}} 245 | 246 | \def\@iwonascLaTeX{{\upshape\scshape 247 | \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% 248 | \math@fontsfalse% 249 | \selectfont a}% 250 | \sbox\tw@ t% 251 | l\kern-.5\wd\z@ 252 | \vbox to\ht\tw@{\copy\z@\vss}% 253 | \kern-.2\wd0 254 | \@ctTeX}} 255 | \def\@iwonascTeX{{\upshape\scshape t\kern -.1em 256 | \lower .25ex\hbox{e}\kern -.1em x}} 257 | 258 | \def\ct@sc{sc} 259 | \def\@ctTeX{\csname @\f@family\ifx\f@shape\ct@sc sc% 260 | \fi TeX\endcsname} 261 | 262 | \DeclareRobustCommand\ctLaTeX{% 263 | \texorpdfstring{\textls[1]{\csname @\f@family\ifx% 264 | \f@shape\ct@sc sc\fi LaTeX\endcsname}}{LaTeX}} 265 | \DeclareRobustCommand\ctLaTeXe{% 266 | \texorpdfstring{\textls[1]{\ctLaTeX\csname @\ifx% 267 | \f@shape\ct@sc sc\fi twoe\endcsname}}{LaTeX2e}} 268 | 269 | \def\@twoe{\kern.1em$\m@th2_{\textstyle\varepsilon}$} 270 | \def\@sctwoe{\kern.15em$\m@th{\scriptscriptstyle2}% 271 | _\varepsilon$} 272 | 273 | \DeclareRobustCommand\ctTeX{% 274 | \texorpdfstring{\textls[1]{\@ctTeX}}{TeX}} 275 | 276 | \def\toc@headingbkORrp{% 277 | \def\toc@heading{% 278 | \chapter*{\contentsname}% 279 | \@mkboth{\spacedlowsmallcaps{\contentsname}} 280 | {\spacedlowsmallcaps{\contentsname}}}} 281 | \@ifclassloaded{scrreprt}{\toc@headingbkORrp}{} 282 | \@ifclassloaded{scrbook}{\toc@headingbkORrp}{} -------------------------------------------------------------------------------- /classicthesis.sty: -------------------------------------------------------------------------------- 1 | % ******************************************************************** 2 | % classicthesis.sty 3 | % 4 | % Copyright (C) 2012 Andr\'e Miede http://www.miede.de 5 | % 6 | % If you like the style then I would appreciate a postcard. My address 7 | % can be found in the file ClassicThesis.pdf. A collection of the 8 | % postcards I received so far is available online at 9 | % http://postcards.miede.de 10 | % 11 | % License: 12 | % This program is free software; you can redistribute it and/or modify 13 | % it under the terms of the GNU General Public License as published by 14 | % the Free Software Foundation; either version 2 of the License, or 15 | % (at your option) any later version. 16 | % 17 | % This program is distributed in the hope that it will be useful, 18 | % but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | % GNU General Public License for more details. 21 | % 22 | % You should have received a copy of the GNU General Public License 23 | % along with this program; see the file COPYING. If not, write to 24 | % the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 25 | % Boston, MA 02111-1307, USA. 26 | % 27 | % ******************************************************************** 28 | % Important: 29 | % 30 | % This style can also be used without the thesis template. 31 | % It works with both LaTeX and PDFLaTeX now. XeLaTeX should also work. 32 | % 33 | % * You must not use "u etc. in strings/commands that will be spaced out 34 | % (use \"u or real umlauts instead) 35 | % * There is a problem with the case of math text in part-, 36 | % chapter-, and section titles (either the case or the spacing breaks). 37 | % => this can be fixed by using pdftex 1.40 or later and enabling the 38 | % option pdfspacing of this package 39 | % 40 | % ******************************************************************** 41 | \NeedsTeXFormat{LaTeX2e} 42 | \ProvidesPackage{classicthesis}[2012/08/12 v4.1 Typographic style for a classic-looking thesis] 43 | \RequirePackage{ifthen} 44 | \newboolean{@tocaligned} % the left column of the toc will be aligned (no indention) 45 | \newboolean{@eulerchapternumbers} % use AMS Euler for chapter font (otherwise Palatino) 46 | \newboolean{@drafting} % print version information on pages 47 | \newboolean{@linedheaders} % chaper headers will have line above and beneath 48 | \newboolean{@listsseparated} % toggles the vertical space between lof/lot entries of different chapters 49 | \newboolean{@nochapters} % disable all chapter-specific commands 50 | \newboolean{@beramono} % toggle nice monospaced font (w/ bold) + pre-installed 51 | \newboolean{@eulermath} % use awesome Euler fonts for math 52 | \newboolean{@parts} % use part division for the text 53 | \newboolean{@minionpro} % setup for minion pro font 54 | \newboolean{@minionprospacing} % use minion pro's textssc for letter spacing 55 | \newboolean{@pdfspacing} % use pdftex for letterspacing (via microtype) 56 | \newboolean{@subfig} % setup for preloaded @subfig package 57 | \newboolean{@a5paper} % use those tiny DIN A5 pages 58 | \newboolean{@dottedtoc} % page numbers in ToC flushed right 59 | \newboolean{@listings} % load listings package (if not already) and setup LoL 60 | \newboolean{@manychapters} % additional space in ToC after chapter number (if two digits are needed) 61 | \newboolean{@floatperchapter} % numbering per chapter for all floats (i.e., Figure 1.1) 62 | 63 | % ******************************************************************** 64 | % Options 65 | % ******************************************************************** 66 | \DeclareOption{tocaligned}{\setboolean{@tocaligned}{true}} 67 | \DeclareOption{eulerchapternumbers}{\setboolean{@eulerchapternumbers}{true}} 68 | \DeclareOption{drafting}{\setboolean{@drafting}{true}} 69 | \DeclareOption{linedheaders}{\setboolean{@linedheaders}{true}} 70 | \DeclareOption{listsseparated}{\setboolean{@listsseparated}{true}} 71 | \DeclareOption{subfigure}{% 72 | \PackageWarningNoLine{classicthesis}{Package "subfigure" and option "subfigure" are deprecated, used "subfig" instead.} 73 | \setboolean{@subfig}{true}% 74 | } 75 | \DeclareOption{subfig}{\setboolean{@subfig}{true}} 76 | \DeclareOption{nochapters}{\setboolean{@nochapters}{true}} 77 | \DeclareOption{beramono}{\setboolean{@beramono}{true}} 78 | \DeclareOption{eulermath}{\setboolean{@eulermath}{true}} 79 | \DeclareOption{parts}{\setboolean{@parts}{true}} 80 | \DeclareOption{a5paper}{\setboolean{@a5paper}{true}} 81 | \DeclareOption{minionpro}{\setboolean{@minionpro}{true}} 82 | \DeclareOption{minionprospacing}{\setboolean{@minionprospacing}{true}} 83 | \DeclareOption{pdfspacing}{\setboolean{@pdfspacing}{true}} 84 | \DeclareOption{dottedtoc}{\setboolean{@dottedtoc}{true}} 85 | \DeclareOption{listings}{\setboolean{@listings}{true}} 86 | \DeclareOption{manychapters}{\setboolean{@manychapters}{true}} 87 | \DeclareOption{floatperchapter}{\setboolean{@floatperchapter}{true}} 88 | \ProcessOptions\relax 89 | 90 | % subfig-related stuff 91 | \@ifpackageloaded{subfig}% 92 | {\setboolean{@subfig}{true}% 93 | }{\relax} 94 | \@ifpackageloaded{subfigure}% 95 | {\setboolean{@subfig}{true}% 96 | \PackageWarningNoLine{classicthesis}{Package "subfigure" and option "subfigure" are deprecated, % 97 | use "subfig" instead.} 98 | }{\relax} 99 | \ifthenelse{\boolean{@subfig}}% 100 | {\PassOptionsToPackage{subfigure}{tocloft}% 101 | }{\relax}% 102 | 103 | % listings-related stuff 104 | \ifthenelse{\boolean{@listings}}% 105 | {\@ifpackageloaded{listings}% 106 | {\relax}{\RequirePackage{listings}}% 107 | }{\relax}% 108 | 109 | % fine-tuning if we use minionprospacing 110 | \ifthenelse{\boolean{@minionprospacing}}% 111 | {% 112 | \PackageInfo{classicthesis}{Using option "minionprospacing". % 113 | This activates "minionpro" in general and turns off % 114 | the option "pdfspacing".}% 115 | % is the user trying to use pdfspacing at the same time? 116 | \ifthenelse{\boolean{@pdfspacing}}% 117 | {% both minionprospacing and pdfspacing are active 118 | \PackageWarningNoLine{classicthesis}{You cannot use "pdfspacing" at the same time % 119 | as "minionprospacing"!}% 120 | }{\relax}% 121 | \setboolean{@minionpro}{true}% 122 | \setboolean{@pdfspacing}{false}% 123 | }{\relax} 124 | 125 | % fine-tuning if we do not use chapters 126 | \ifthenelse{\boolean{@nochapters}}% 127 | {% 128 | % is the user trying to use parts at the same time? 129 | \ifthenelse{\boolean{@parts}}% 130 | {% both parts and nochapters are active 131 | \PackageWarningNoLine{classicthesis}{You cannot use "parts" at the same time % 132 | as "nochapters"!}% 133 | }{\relax}% 134 | % is the user trying to use manychapters at the same time? 135 | \ifthenelse{\boolean{@manychapters}}% 136 | {% both manychapters and nochapters are active 137 | \PackageWarningNoLine{classicthesis}{You cannot use "manychapters" at the same time % 138 | as "nochapters"!}% 139 | }{\relax}% 140 | % is the user trying to use floatperchapter at the same time? 141 | \ifthenelse{\boolean{@floatperchapter}}% 142 | {% both manychapters and nochapters are active 143 | \PackageWarningNoLine{classicthesis}{You cannot use "floatperchapter" at the same time % 144 | as "nochapters"!}% 145 | }{\relax}% 146 | % turn off some things if we do not use chapters 147 | \PackageInfo{classicthesis}{Using option "nochapters" (probably for an article). % 148 | This turns off the options "linedheaders", "manychapters", "floatperchapter",% 149 | "listsseparated", "eulerchapternumbers", and "parts". Please be aware of that.} 150 | \setboolean{@linedheaders}{false}% 151 | \setboolean{@listsseparated}{false}% 152 | \setboolean{@eulerchapternumbers}{false}% 153 | \setboolean{@parts}{false}% 154 | \setboolean{@manychapters}{false}% 155 | \setboolean{@floatperchapter}{false}% 156 | }{\relax}% 157 | 158 | % ******************************************************************** 159 | % PDF and XeLaTeX Stuff 160 | % ******************************************************************** 161 | \RequirePackage{ifpdf} 162 | \ifpdf\RequirePackage{hyperref}\fi % for texorpdfstring command below 163 | 164 | % Necessary to rewrite hacks for chapters and parts and toc 165 | \RequirePackage{ifxetex} 166 | \ifxetex\RequirePackage{hyperref}\fi % for texorpdfstring command below 167 | 168 | % pdfspacing does not work with XeLaTeX 169 | \ifxetex% 170 | \ifthenelse{\boolean{@pdfspacing}}% 171 | {% pdfspacing is used with XeLaTeX 172 | \PackageWarningNoLine{classicthesis}{You cannot use the option % 173 | "pdfspacing" with XeLaTeX!}% 174 | }{\relax}% 175 | \setboolean{@pdfspacing}{false}% 176 | \fi 177 | 178 | % ******************************************************************** 179 | % Colors 180 | % ******************************************************************** 181 | \PassOptionsToPackage{dvipsnames}{xcolor} 182 | \RequirePackage{xcolor} % [dvipsnames] 183 | \definecolor{halfgray}{gray}{0.55} % chapter numbers will be semi transparent .5 .55 .6 .0 184 | \definecolor{webgreen}{rgb}{0,.5,0} 185 | \definecolor{webbrown}{rgb}{.6,0,0} 186 | %\definecolor{Maroon}{cmyk}{0, 0.87, 0.68, 0.32} 187 | %\definecolor{RoyalBlue}{cmyk}{1, 0.50, 0, 0} 188 | %\definecolor{Black}{cmyk}{0, 0, 0, 0} 189 | 190 | % ******************************************************************** 191 | % Font Stuff 192 | % ******************************************************************** 193 | % specialists: MinionPro 194 | \ifthenelse{\boolean{@minionpro}}% 195 | {% 196 | % in order have Euler math fonts work with Minion, special option is needed 197 | \ifthenelse{\boolean{@eulermath}}% 198 | {% 199 | \PassOptionsToPackage{opticals,mathlf,onlytext}{MinionPro}% 200 | \RequirePackage{MinionPro} % opticals, fullfamily, osf 201 | }{% 202 | \PassOptionsToPackage{opticals,mathlf}{MinionPro}% 203 | \RequirePackage{MinionPro} % opticals, fullfamily, osf 204 | }% 205 | }{% 206 | % default: Palatino 207 | \PassOptionsToPackage{osf,sc}{mathpazo}% 208 | \RequirePackage{mathpazo} % Palatino with real small caps and old style figures 209 | \linespread{1.05} % a bit more for Palatino 210 | } 211 | 212 | \ifthenelse{\boolean{@beramono}}% 213 | {\PassOptionsToPackage{scaled=0.85}{beramono}% 214 | \RequirePackage{beramono}}% 215 | {% 216 | \relax% 217 | % put your own suitable typewriter font here 218 | %\renewcommand{\ttdefault}{\rmdefault} 219 | } 220 | \ifthenelse{\boolean{@eulermath}}% 221 | {\PassOptionsToPackage{euler-digits}{eulervm}% 222 | \RequirePackage{eulervm}} % Euler math fonts 223 | {\relax} 224 | 225 | \ifthenelse{\boolean{@eulerchapternumbers}}% font for the chapter numbers 226 | {\newfont{\chapterNumber}{eurb10 scaled 7000}}% 227 | {\newfont{\chapterNumber}{pplr9d scaled 7000}} 228 | % Euler eurb10 / Palatino OSF pplr9d / Palatino SC pplrc9d 229 | % Latin Modern cork-lmr10 / Minion MinionPro-Regular-osf-t1 230 | % (MinionPro-SemiboldCapt-osf-t1 MinionPro-SemiboldDisp-osf-t1) 231 | 232 | \RequirePackage{microtype} % character protruding and other micro-typography stuff 233 | % [expansion=false] 234 | 235 | % ******************************************************************** 236 | % Textblock size 237 | %******************************************************* 238 | \@ifpackageloaded{typearea}% 239 | {\relax}{% 240 | \RequirePackage{typearea}% 241 | } 242 | \ifthenelse{\boolean{@a5paper}}% 243 | {% A5 244 | \ifthenelse{\boolean{@minionpro}}% 245 | {% Minion gets some extra sizes 246 | \PackageInfo{classicthesis}{A5 paper, MinionPro}% 247 | \areaset[current]{278pt}{556pt}% 248 | \setlength{\marginparwidth}{5em}% 249 | \setlength{\marginparsep}{1.25em}% 250 | }{% Palatino or other 251 | \PackageInfo{classicthesis}{A5 paper, Palatino or other}% 252 | \areaset[current]{288pt}{555pt}% 253 | \setlength{\marginparwidth}{4em}% 254 | \setlength{\marginparsep}{1.25em}% 255 | }% 256 | }{% A4 257 | \ifthenelse{\boolean{@minionpro}}% 258 | {% Minion gets some extra sizes 259 | \PackageInfo{classicthesis}{A4 paper, MinionPro}% 260 | \areaset[current]{312pt}{684pt}% 609 + 33 + 42 head \the\footskip 261 | \setlength{\marginparwidth}{7.5em}% 262 | \setlength{\marginparsep}{2em}% 263 | }{% Palatino or other 264 | \PackageInfo{classicthesis}{A4 paper, Palatino or other} 265 | \areaset[current]{336pt}{750pt} % ~ 336 * factor 2 + 33 head + 42 \the\footskip 266 | % \areaset{336pt}{761pt} % 686 (factor 2.2) + 33 head + 42 head \the\footskip 10pt 267 | \setlength{\marginparwidth}{7em}% 268 | \setlength{\marginparsep}{2em}% 269 | }% 270 | } 271 | % Here are some suggestions for the text widths and heights: 272 | % Palatino 10pt: 288--312pt | 609--657pt 273 | % Palatino 11pt: 312--336pt | 657--705pt 274 | % Palatino 12pt: 360--384pt | 768pt 275 | % Minion 10pt: 264--288pt | 561--609pt 276 | % Minion 11pt: 288--312pt | 609--657pt 277 | % Minion 12pt: 336pt | 672pt 278 | % Libertine 10pt: 279 | % Libertine 11pt: 280 | % Libertine 12pt: 281 | % kpfonts 10pt: 282 | % kpfonts 11pt: 283 | % kpfonts 12pt: 284 | 285 | % ******************************************************************** 286 | % Own Stuff 287 | % ******************************************************************** 288 | % Disable single lines at the start of a paragraph (Schusterjungen) 289 | \clubpenalty = 10000 290 | % Disable single lines at the end of a paragraph (Hurenkinder) 291 | \widowpenalty = 10000 292 | \displaywidowpenalty = 10000 % formulas 293 | 294 | % Graffiti as in GKP's book "Concrete Mathematics" 295 | % thanks to Lorenzo Pantieri and Enrico Gregorio 296 | \def\graffito@setup{% 297 | \slshape\footnotesize% 298 | \parindent=0pt \lineskip=0pt \lineskiplimit=0pt % 299 | \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300% 300 | \doublehyphendemerits=100000% 301 | \finalhyphendemerits=\doublehyphendemerits} 302 | %\DeclareRobustCommand{\graffito}[1]{\marginpar% 303 | % [\graffito@setup\raggedleft\hspace{0pt}{#1}]% 304 | % {\graffito@setup\raggedright\hspace{0pt}{#1}}} 305 | \let\oldmarginpar\marginpar 306 | \renewcommand{\marginpar}[1]{\oldmarginpar% 307 | [\graffito@setup\raggedleft\hspace{0pt}{#1}]% 308 | {\graffito@setup\raggedright\hspace{0pt}{#1}}} 309 | 310 | % Enumeration environment with small caps 311 | \newenvironment{aenumerate} 312 | {\def\theenumi{\textsc{\alph{enumi}}}% 313 | \enumerate} 314 | {\endenumerate} 315 | 316 | % ******************************************************************** 317 | % Fancy Stuff 318 | % ******************************************************************** 319 | \RequirePackage{booktabs} % for better rules in tables 320 | \RequirePackage{textcase} % for \MakeTextUppercase 321 | 322 | \ifthenelse{\boolean{@minionprospacing}}% 323 | {% 324 | \PackageInfo{classicthesis}{Using MinionPro's textssc for character spacing.}% 325 | \DeclareRobustCommand{\spacedallcaps}[1]{\textssc{\MakeTextUppercase{#1}}}% 326 | \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textssc{\MakeTextLowercase{#1}}}% 327 | }{% 328 | \ifthenelse{\boolean{@pdfspacing}}% 329 | {% 330 | \PackageInfo{classicthesis}{Using pdftex/microtype for character spacing.% 331 | Make sure your pdftex is version 1.40 or higher.}% 332 | \microtypesetup{expansion=false}% 333 | \DeclareRobustCommand{\spacedallcaps}[1]{\textls[160]{\MakeTextUppercase{#1}}}% 334 | \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}% 335 | }{% 336 | \RequirePackage{soul} % for letterspacing 337 | \sodef\allcapsspacing{\upshape}{0.15em}{0.65em}{0.6em}% 338 | \sodef\lowsmallcapsspacing{\scshape}{0.075em}{0.5em}{0.6em}% 339 | \DeclareRobustCommand{\spacedallcaps}[1]{\MakeTextUppercase{\allcapsspacing{#1}}}% 340 | \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\MakeTextLowercase{\textsc{\lowsmallcapsspacing{#1}}}}%\protect 341 | }% 342 | } 343 | 344 | % ******************************************************************** 345 | % headlines 346 | % ******************************************************************** 347 | \PassOptionsToPackage{automark}{scrpage2} 348 | \RequirePackage{scrpage2} % provides headers and footers (KOMA Script) 349 | \clearscrheadings 350 | \setheadsepline{0pt} 351 | \ifthenelse{\boolean{@nochapters}}% 352 | {\relax}% 353 | {\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}} 354 | \renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}} 355 | \lehead{\mbox{\llap{\small\thepage\kern2em}\headmark\hfil}} 356 | \rohead{\mbox{\hfil{\headmark}\rlap{\small\kern2em\thepage}}} 357 | \renewcommand{\headfont}{\small} 358 | % \DeclareRobustCommand{\fixBothHeadlines}[2]{} % <--- ToDo 359 | % hack to get the content headlines right (thanks, Lorenzo!) 360 | \def\toc@heading{% 361 | \ifthenelse{\boolean{@nochapters}}% 362 | {\section*{\contentsname}}%nochapters 363 | {\chapter*{\contentsname}}%chapters 364 | \@mkboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}} 365 | 366 | 367 | % ******************************************************************** 368 | % layout of the chapter-, section-, subsection-, subsubsection-, 369 | % paragraph and description-headings 370 | % ******************************************************************** 371 | \RequirePackage{titlesec} 372 | % parts 373 | \ifthenelse{\boolean{@parts}}% 374 | {% 375 | % \newcommand{\ctparttext}{\relax} 376 | \newcommand{\ct@parttext}{\relax} % Thanks to Ivo 377 | \newcommand{\ctparttext}[1]{\renewcommand{\ct@parttext}{#1 \relax}} 378 | \titleformat{\part}[display] 379 | {\normalfont\centering\large}% 380 | {\thispagestyle{empty}\partname~\MakeTextUppercase{\thepart}}{1em}% 381 | {\color{Maroon}\spacedallcaps}[\bigskip\normalfont\normalsize\color{Black}\begin{quote}\ct@parttext\end{quote}] 382 | }{\relax} 383 | % chapters 384 | \ifthenelse{\boolean{@linedheaders}}% 385 | {% lines above and below, number right 386 | \titleformat{\chapter}[display]% 387 | {\relax}{\raggedleft{\color{halfgray}\chapterNumber\thechapter} \\ }{0pt}% 388 | {\titlerule\vspace*{.9\baselineskip}\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% 389 | }{% something like Bringhurst 390 | \titleformat{\chapter}[display]% 391 | {\relax}{\mbox{}\oldmarginpar{\vspace*{-3\baselineskip}\color{halfgray}\chapterNumber\thechapter}}{0pt}% 392 | {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% 393 | } 394 | % sections \FloatBarrier 395 | \titleformat{\section} 396 | {\relax}{\textsc{\MakeTextLowercase{\thesection}}}{1em}{\spacedlowsmallcaps} 397 | % subsections 398 | \titleformat{\subsection} 399 | {\relax}{\textsc{\MakeTextLowercase{\thesubsection}}}{1em}{\normalsize\itshape} 400 | % subsubsections 401 | \titleformat{\subsubsection} 402 | {\relax}{\textsc{\MakeTextLowercase{\thesubsubsection}}}{1em}{\normalsize\itshape} 403 | % paragraphs 404 | \titleformat{\paragraph}[runin] 405 | {\normalfont\normalsize}{\theparagraph}{0pt}{\spacedlowsmallcaps} 406 | % descriptionlabels 407 | \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}\spacedlowsmallcaps{#1}} % spacedlowsmallcaps textit textsc 408 | % spacing 409 | \ifthenelse{\boolean{@nochapters}}% 410 | {\relax}% 411 | {\titlespacing*{\chapter}{0pt}{1\baselineskip}{1.2\baselineskip}} 412 | \titlespacing*{\section}{0pt}{1.25\baselineskip}{1\baselineskip} 413 | \titlespacing*{\subsection}{0pt}{1.25\baselineskip}{1\baselineskip} 414 | \titlespacing*{\paragraph}{0pt}{1\baselineskip}{1\baselineskip} 415 | 416 | % ******************************************************************** 417 | % layout of the TOC, LOF and LOT (LOL-workaround see next section) 418 | % ******************************************************************** 419 | \PassOptionsToPackage{titles}{tocloft} 420 | \RequirePackage{tocloft} 421 | % avoid page numbers being right-aligned in fixed-size box 422 | \newlength{\newnumberwidth} 423 | \settowidth{\newnumberwidth}{999} % yields overfull hbox warnings for pages > 999 424 | \cftsetpnumwidth{\newnumberwidth} 425 | 426 | % have the bib neatly positioned after the rest 427 | \newlength{\beforebibskip} 428 | \setlength{\beforebibskip}{0em} 429 | 430 | % space for more than nine chapters 431 | \newlength{\newchnumberwidth} 432 | \settowidth{\newchnumberwidth}{.} % <--- tweak here if more space required 433 | \ifthenelse{\boolean{@manychapters}}% <--- many chapters option 434 | {% 435 | \addtolength{\cftchapnumwidth}{\newchnumberwidth}% 436 | \addtolength{\cftsecnumwidth}{\newchnumberwidth} 437 | \addtolength{\cftsecindent}{\newchnumberwidth} 438 | \addtolength{\cftsubsecnumwidth}{\newchnumberwidth} 439 | \addtolength{\cftsubsecindent}{2\newchnumberwidth} 440 | \addtolength{\cftsubsubsecnumwidth}{\newchnumberwidth} 441 | }{\relax}% 442 | 443 | % pagenumbers right after the titles 444 | % parts 445 | \ifthenelse{\boolean{@parts}}% 446 | {% 447 | \renewcommand{\thepart}{\roman{part}}% 448 | \renewcommand{\cftpartpresnum}{\scshape}% \MakeTextLowercase 449 | % \renewcommand{\cftpartaftersnum}{\cftchapaftersnum}% 450 | % \renewcommand{\cftpartaftersnumb}{\quad}% 451 | % \setlength{\cftpartnumwidth}{\cftpartnumwidth} 452 | \renewcommand{\cftpartfont}{\color{Maroon}\normalfont}% 453 | \renewcommand{\cftpartpagefont}{\normalfont}% 454 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 455 | {% 456 | \renewcommand{\cftpartleader}{\hspace{1.5em}}% 457 | \renewcommand{\cftpartafterpnum}{\cftparfillskip}% 458 | }% 459 | \setlength{\cftbeforepartskip}{1em}% 460 | \setlength{\cftbeforechapskip}{.1em}% 461 | \setlength{\beforebibskip}{\cftbeforepartskip}% 462 | }{\relax} 463 | % chapters 464 | \ifthenelse{\boolean{@nochapters}}% 465 | {\relax}% 466 | {% 467 | \renewcommand{\cftchappresnum}{\scshape\MakeTextLowercase}% 468 | \renewcommand{\cftchapfont}{\normalfont}% 469 | \renewcommand{\cftchappagefont}{\normalfont}% 470 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 471 | {% 472 | \renewcommand{\cftchapleader}{\hspace{1.5em}}% 473 | \renewcommand{\cftchapafterpnum}{\cftparfillskip}% 474 | } 475 | %\setlength{\cftbeforechapskip}{.1em}% 476 | } 477 | % sections 478 | \ifthenelse{\boolean{@nochapters}}% 479 | {% 480 | \setlength{\cftbeforesecskip}{.1em}% 481 | \setlength{\beforebibskip}{1em}% 482 | }% 483 | {\relax} 484 | \renewcommand{\cftsecpresnum}{\scshape\MakeTextLowercase}% 485 | \renewcommand{\cftsecfont}{\normalfont}% 486 | \renewcommand{\cftsecpagefont}{\normalfont}% 487 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 488 | {% 489 | \renewcommand{\cftsecleader}{\hspace{1.5em}}% 490 | \renewcommand{\cftsecafterpnum}{\cftparfillskip}% 491 | } 492 | \ifthenelse{\boolean{@tocaligned}}{\renewcommand{\cftsecindent}{0em}}{\relax} 493 | % subsections 494 | \renewcommand{\cftsubsecpresnum}{\scshape\MakeTextLowercase}% 495 | \renewcommand{\cftsubsecfont}{\normalfont}% 496 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 497 | {% 498 | \renewcommand{\cftsubsecleader}{\hspace{1.5em}}% 499 | \renewcommand{\cftsubsecafterpnum}{\cftparfillskip}% 500 | } 501 | \ifthenelse{\boolean{@tocaligned}}{\renewcommand{\cftsubsecindent}{0em}}{\relax} 502 | % subsubsections 503 | \renewcommand{\cftsubsubsecpresnum}{\scshape\MakeTextLowercase}% 504 | \renewcommand{\cftsubsubsecfont}{\normalfont}% 505 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 506 | {% 507 | \renewcommand{\cftsubsubsecleader}{\hspace{1.5em}}% 508 | \renewcommand{\cftsubsubsecafterpnum}{\cftparfillskip}% 509 | } 510 | \ifthenelse{\boolean{@tocaligned}}{\renewcommand{\cftsubsubsecindent}{0em}}{\relax} 511 | % figures 512 | \renewcommand{\cftfigpresnum}{\scshape\MakeTextLowercase}% 513 | \renewcommand{\cftfigfont}{\normalfont}% 514 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 515 | {% 516 | \renewcommand{\cftfigleader}{\hspace{1.5em}}% 517 | \renewcommand{\cftfigafterpnum}{\cftparfillskip}% 518 | } 519 | \renewcommand{\cftfigpresnum}{\figurename~}%Fig.~} 520 | \newlength{\figurelabelwidth} 521 | \settowidth{\figurelabelwidth}{\cftfigpresnum~999} 522 | \addtolength{\figurelabelwidth}{2.5em} 523 | \cftsetindents{figure}{0em}{\figurelabelwidth} 524 | % tables 525 | \renewcommand{\cfttabpresnum}{\scshape\MakeTextLowercase}% 526 | \renewcommand{\cfttabfont}{\normalfont}% 527 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 528 | {% 529 | \renewcommand{\cfttableader}{\hspace{1.5em}}% 530 | \renewcommand{\cfttabafterpnum}{\cftparfillskip}% 531 | } 532 | \renewcommand{\cfttabpresnum}{\tablename~}%Tab.~} 533 | \newlength{\tablelabelwidth} 534 | \settowidth{\tablelabelwidth}{\cfttabpresnum~999} 535 | \addtolength{\tablelabelwidth}{2.5em} 536 | %\cftsetindents{table}{0em}{\tablelabelwidth} 537 | \cftsetindents{table}{0em}{\figurelabelwidth} 538 | % listings 539 | \ifthenelse{\boolean{@listings}}% 540 | {% 541 | \newlistof{listings}{lol}{\lstlistlistingname}% 542 | \renewcommand{\cftlistingspresnum}{\scshape\MakeTextLowercase}% 543 | \renewcommand{\cftlistingsfont}{\normalfont}% 544 | \renewcommand{\cftlistingspresnum}{\lstlistingname~}% 545 | \renewcommand{\cftlistingspagefont}{\normalfont}% 546 | \ifthenelse{\boolean{@dottedtoc}}{\relax}% 547 | {% 548 | \renewcommand{\cftlistingsleader}{\hspace{1.5em}}% 549 | \renewcommand{\cftlistingsafterpnum}{\cftparfillskip}% 550 | } 551 | \newlength{\listingslabelwidth}% 552 | \settowidth{\listingslabelwidth}{\cftlistingspresnum~999}% 553 | \addtolength{\listingslabelwidth}{2.5em}% 554 | %\cftsetindents{listings}{0em}{\listingslabelwidth}% 555 | \cftsetindents{listings}{0em}{\figurelabelwidth}% 556 | \let\l@lstlisting\l@listings% 557 | \let\lstlistoflistings\listoflistings% 558 | }{\relax}% 559 | 560 | % dirty work-around to get the spacing after the toc/lot/lof-titles right 561 | \ifthenelse{\boolean{@parts}}% 562 | {% 563 | \AtBeginDocument{\addtocontents{toc}{\protect\vspace{-\cftbeforepartskip}}} 564 | }{% 565 | \ifthenelse{\boolean{@nochapters}}% 566 | {\relax}% 567 | {\AtBeginDocument{\addtocontents{toc}{\protect\vspace{-\cftbeforechapskip}}}} 568 | } 569 | 570 | % another dirty work-around to get the spaced low small caps into the toc ;-( 571 | \ifthenelse{\boolean{@nochapters}}% 572 | {\relax}% 573 | {% 574 | %% use modified \chapter (thanks to Hinrich Harms) 575 | \let\oldchap=\chapter 576 | \renewcommand*{\chapter}{% 577 | \secdef{\Chap}{\ChapS}% 578 | } 579 | \newcommand\ChapS[1]{\oldchap*{#1}}% 580 | \newcommand\Chap[2][]{% 581 | \ifpdf\oldchap[\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}]{#2}% 582 | \else\oldchap[\spacedlowsmallcaps{#1}]{#2}% 583 | \fi% 584 | }% 585 | \ifxetex % thanks to Joerg Weber 586 | \renewcommand\Chap[2][]{% 587 | \ifxetex\oldchap[\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}]{#2}% 588 | \else\oldchap[\spacedlowsmallcaps{#1}]{#2}% 589 | \fi% 590 | }% 591 | \fi% 592 | } 593 | 594 | % yet another dirty work-around to get the spaced low small caps into the toc ;-( 595 | \ifthenelse{\boolean{@parts}}% 596 | {% 597 | %% use modified \part (thanks to Hinrich Harms) 598 | \let\oldpart=\part% 599 | \renewcommand*{\part}{% 600 | \secdef{\Part}{\PartS}% 601 | }% 602 | \newcommand\PartS[1]{\oldpart*{#1}}% 603 | \newcommand\Part[2][]{% 604 | \ifpdf\pdfstringdefDisableCommands{\let\thepart\@gobbletwo}% 605 | \oldpart[\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}]{#2}% spacedallcaps spacedlowsmallcaps 606 | \else% 607 | \oldpart[\spacedlowsmallcaps{#1}]{#2}% 608 | \fi% 609 | % \renewcommand{\ct@parttext}{\relax}% Thanks to Ivo! 610 | \ctparttext{\relax}% 611 | }% 612 | \ifxetex% thanks to Joerg Weber 613 | \renewcommand\Part[2][]{% 614 | \ifxetex\pdfstringdefDisableCommands{\let\thepart=\@gobbletwo}% 615 | \oldpart[\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}]{#2}% spacedallcaps spacedlowsmallcaps 616 | \else% 617 | \oldpart[\spacedlowsmallcaps{#1}]{#2}% 618 | \fi% 619 | \ctparttext{\relax}% 620 | }% 621 | \fi% 622 | }{\relax} 623 | 624 | \newcommand{\tocEntry}[1]{% for bib, etc. 625 | \ifpdf\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}% 626 | \else{#1}\fi% 627 | } 628 | \ifxetex% thanks to Joerg Weber 629 | \renewcommand{\tocEntry}[1]{% for bib, etc. 630 | \ifxetex\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}% 631 | \else{#1}\fi% 632 | } \fi 633 | 634 | % % remove the vertical space between lof/lot entries of different chapters 635 | \ifthenelse{\boolean{@listsseparated}}{% 636 | \PackageWarningNoLine{classicthesis}{Option "listsseparated" deprecated as of version 2.9.}% 637 | }{\relax} 638 | % \ifthenelse{\boolean{@listsseparated}}{% 639 | % \AtBeginDocument{% 640 | % \addtocontents{lof}{\protect\vspace{-\cftbeforechapskip}}% 641 | % \addtocontents{lot}{\protect\vspace{-\cftbeforechapskip}}% 642 | % \ifthenelse{\boolean{@listings}}% 643 | % {% 644 | % \addtocontents{lol}{\protect\vspace{-\cftbeforechapskip}}% 645 | % }{\relax}% 646 | % }% 647 | % }{% 648 | \DeclareRobustCommand*{\deactivateaddvspace}{\let\addvspace\@gobble}% 649 | \AtBeginDocument{% 650 | \addtocontents{lof}{\deactivateaddvspace}% 651 | \addtocontents{lot}{\deactivateaddvspace}% 652 | \ifthenelse{\boolean{@listings}}% 653 | {% 654 | \addtocontents{lol}{\deactivateaddvspace}% 655 | }{\relax}% 656 | }% 657 | % } 658 | 659 | % ******************************************************************** 660 | % footnotes setup 661 | % ******************************************************************** 662 | \ifdefined\deffootnote 663 | % KOMA-command, footnotemark not superscripted at the bottom 664 | \deffootnote{0em}{0em}{\thefootnotemark\hspace*{.5em}}% 665 | \message{Using KOMA-command "deffootnote" for footnote setup}% 666 | \else 667 | \PassOptionsToPackage{flushmargin}{footmisc}% 668 | \RequirePackage{footmisc}% 669 | \setlength{\footnotemargin}{-.5em}% 670 | \PackageWarningNoLine{classicthesis}{Using package "footmisc" with option % 671 | "flushmargin" for footnote setup (not 100\% the same as with KOMA)}% 672 | \fi 673 | 674 | % ******************************************************************** 675 | % Drafting Stuff 676 | % ******************************************************************** 677 | \RequirePackage{scrtime} % time access 678 | \newcommand{\finalVersionString}{\relax} 679 | \providecommand{\myVersion}{$\!\!$} % w/o classicthesis-config.tex 680 | \ifthenelse{\boolean{@drafting}}{% 681 | % \RequirePackage{draftwatermark}% 682 | % \SetWatermarkLightness{0.9} 683 | % \SetWatermarkScale{.5} 684 | % \SetWatermarkText{\today\ at \thistime} 685 | \PassOptionsToPackage{draft}{prelim2e} 686 | \RequirePackage{prelim2e} 687 | \renewcommand{\PrelimWords}{\relax} 688 | \renewcommand{\PrelimText}{\footnotesize[\,\today\ at \thistime\ -- \texttt{classicthesis}~\myVersion\,]} 689 | }{\renewcommand{\finalVersionString}{\emph{Final Version} as of \today\ (\texttt{classicthesis}~\myVersion).}} 690 | 691 | % ******************************************************************** 692 | % Caption numbering now w/o chapter number 693 | % ******************************************************************** 694 | \ifthenelse{\boolean{@floatperchapter}}{% 695 | \ifthenelse{\boolean{@listings}}{% 696 | \lstset{numberbychapter=true}}{\relax}% numberbychapter works in listings>=1.4 697 | }{% 698 | \ifthenelse{\boolean{@listings}}{% 699 | \lstset{numberbychapter=false}}{\relax}% 700 | \RequirePackage{remreset}% 701 | \makeatletter% 702 | \ifthenelse{\boolean{@nochapters}}% 703 | {\relax}{% 704 | \@removefromreset{table}{chapter} % requires remreset package 705 | }% 706 | \renewcommand{\thetable}{\arabic{table}}% 707 | \makeatother% 708 | \makeatletter% 709 | \ifthenelse{\boolean{@nochapters}}% 710 | {\relax}{% 711 | \@removefromreset{figure}{chapter} % requires remreset package 712 | }% 713 | \renewcommand{\thefigure}{\arabic{figure}}% 714 | \makeatother% 715 | \makeatletter% 716 | \ifthenelse{\boolean{@nochapters}}% 717 | {\relax}{% 718 | \@removefromreset{equation}{chapter} % requires remreset package 719 | }% 720 | \renewcommand{\theequation}{\arabic{equation}}% 721 | \makeatother% 722 | } 723 | 724 | % ******************************************************************** 725 | % Backward-compatibility 726 | % ******************************************************************** 727 | \let\myChapter\chapter 728 | \let\myPart\part 729 | \let\graffito\marginpar 730 | --------------------------------------------------------------------------------