Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2737c17715 | ||
![]() |
54f8711c92 | ||
![]() |
d819e73c9e | ||
![]() |
3f1a22681b | ||
![]() |
393d93fbb4 | ||
![]() |
4a9b8da858 | ||
![]() |
fae3a28f40 | ||
![]() |
b75ea3e5f0 | ||
![]() |
7c18ab1ca9 | ||
![]() |
93ca1b00c3 | ||
![]() |
8ee8670cdc | ||
![]() |
c245c1d72f | ||
![]() |
867c932195 | ||
![]() |
f3d22715a1 | ||
![]() |
abfae2bf89 | ||
![]() |
1d95fd9ee6 | ||
![]() |
37e63d2a26 | ||
![]() |
9ea1d3661f |
23
.gitignore
vendored
23
.gitignore
vendored
@@ -1,11 +1,12 @@
|
||||
Clean-Thesis-blx.bib
|
||||
Clean-Thesis.aux
|
||||
Clean-Thesis.bbl
|
||||
Clean-Thesis.blg
|
||||
Clean-Thesis.lof
|
||||
Clean-Thesis.log
|
||||
Clean-Thesis.lot
|
||||
Clean-Thesis.out
|
||||
Clean-Thesis.run.xml
|
||||
Clean-Thesis.synctex.gz
|
||||
Clean-Thesis.toc
|
||||
*blx.bib
|
||||
*.aux
|
||||
*.bbl
|
||||
*.blg
|
||||
*.lof
|
||||
*.log
|
||||
*.lot
|
||||
*.out
|
||||
*.run.xml
|
||||
*.synctex.gz
|
||||
*.toc
|
||||
*.bcf
|
||||
|
BIN
Clean-Thesis.pdf
BIN
Clean-Thesis.pdf
Binary file not shown.
2
README
2
README
@@ -1,7 +1,7 @@
|
||||
Clean Thesis
|
||||
-- A LaTeX Style for Thesis Documents --
|
||||
|
||||
Copyright (C) 2011 Ricardo Langner
|
||||
Copyright (C) 2011-2013 Ricardo Langner
|
||||
|
||||
|
||||
Readme:
|
||||
|
BIN
cleanthesis.pdf
Normal file
BIN
cleanthesis.pdf
Normal file
Binary file not shown.
417
cleanthesis.sty
417
cleanthesis.sty
@@ -2,7 +2,7 @@
|
||||
% Clean Thesis
|
||||
% -- A LaTeX Style for Thesis Documents --
|
||||
%
|
||||
% Copyright (C) 2011 Ricardo Langner
|
||||
% Copyright (C) 2011-2013 Ricardo Langner
|
||||
% **************************************************
|
||||
%
|
||||
% Readme:
|
||||
@@ -10,7 +10,7 @@
|
||||
% *** Clean, Simple, Elegant ***
|
||||
% "Clean Thesis" is a LaTeX style for thesis documents, developed
|
||||
% for my diplom thesis (Diplomarbeit). The style can be understood
|
||||
% as my personal compromise — a typical clean looking scientific
|
||||
% as my personal compromise - a typical clean looking scientific
|
||||
% document combined and polished with minor beautifications.
|
||||
%
|
||||
% The design of this "Clean Thesis" style is inspired
|
||||
@@ -53,81 +53,171 @@
|
||||
% along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
% **************************************************
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{cleanthesis}[2011/05/27 v0.1b Clean-looking thesis style inspired by Apple's user guide documents]
|
||||
|
||||
\RequirePackage{ifthen}
|
||||
\newboolean{@sansserif}
|
||||
\newboolean{@colorbw}
|
||||
\newboolean{@colorreduced}
|
||||
\newboolean{@figurecaptionoutside}
|
||||
\newboolean{@sectionlabeloutside}
|
||||
\newboolean{@subsectionlabeloutside}
|
||||
|
||||
\ProvidesPackage{cleanthesis}[2013/05/12 v0.3 Clean-looking thesis style inspired by Apple's user guide documents]
|
||||
%
|
||||
% **************************************************
|
||||
% Style Options
|
||||
% Package options
|
||||
% **************************************************
|
||||
\DeclareOption{sansserif}{\setboolean{@sansserif}{true}}
|
||||
\DeclareOption{colorbw}{\setboolean{@colorbw}{true}}
|
||||
\DeclareOption{colorreduced}{\setboolean{@colorreduced}{true}}
|
||||
\DeclareOption{figurecaptionoutside}{\setboolean{@figurecaptionoutside}{true}}
|
||||
\DeclareOption{sectionlabeloutside}{\setboolean{@sectionlabeloutside}{true}}
|
||||
\DeclareOption{subsectionlabeloutside}{\setboolean{@subsectionlabeloutside}{true}}
|
||||
\DeclareOption*{%
|
||||
%
|
||||
% -- process all available package options
|
||||
%
|
||||
%
|
||||
% The xkeyval package enables us to handle for example key-value pairs
|
||||
% in an easy way
|
||||
\RequirePackage{xkeyval}
|
||||
|
||||
% OPTION sansserif
|
||||
% --> values = true|false
|
||||
\define@boolkey[ct]{cthesis}{sansserif}[true]{}
|
||||
\setkeys[ct]{cthesis}{sansserif=false}
|
||||
|
||||
% OPTION hangfigurecaption
|
||||
% --> values = true|false
|
||||
\define@boolkey[ct]{cthesis}{hangfigurecaption}[true]{}
|
||||
\setkeys[ct]{cthesis}{hangfigurecaption=false}
|
||||
|
||||
% OPTION hangsection
|
||||
% --> values = true|false
|
||||
\define@boolkey[ct]{cthesis}{hangsection}[true]{}
|
||||
\setkeys[ct]{cthesis}{hangsection=true}
|
||||
|
||||
% OPTION hangsubsection
|
||||
% --> values = true|false
|
||||
\define@boolkey[ct]{cthesis}{hangsubsection}[true]{}
|
||||
\setkeys[ct]{cthesis}{hangsubsection=true}
|
||||
|
||||
% OPTION figuresep
|
||||
% --> values = none|colon|period|space|quad|endash
|
||||
\define@choicekey*[ct]{cthesis}{figuresep}{none,colon,period,space,quad,newline,endash}[endash]{\def\cthesis@figuresep{#1}}
|
||||
\setkeys[ct]{cthesis}{figuresep=endash}
|
||||
|
||||
% OPTION colorize
|
||||
% --> values = full|reduced|bw
|
||||
\define@choicekey*[ct]{cthesis}{colorize}[\val\colorizenr]{full,reduced,bw}[full]{\def\cthesis@colorize{\colorizenr}}
|
||||
\setkeys[ct]{cthesis}{colorize=full}
|
||||
|
||||
% OPTION colortheme
|
||||
% --> values = bluemagenta|bluegreen
|
||||
\define@choicekey*[ct]{cthesis}{colortheme}[\val\themenr]{bluemagenta,bluegreen}[bluemagenta]{\def\cthesis@colortheme{\themenr}}
|
||||
\setkeys[ct]{cthesis}{colortheme=bluemagenta}
|
||||
|
||||
% OPTION bibsys
|
||||
% --> values = biber|bibtex
|
||||
\define@choicekey*[ct]{cthesis}{bibsys}[\val\colorizenr]{biber,bibtex}[bibtex]{\def\cthesis@bibsys{#1}}
|
||||
\setkeys[ct]{cthesis}{bibsys=bibtex}
|
||||
|
||||
\DeclareOptionX*{
|
||||
\PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}%
|
||||
}
|
||||
\ProcessOptions\relax % executes the code for each option
|
||||
|
||||
\ProcessOptionsX[ct]<cthesis>
|
||||
|
||||
|
||||
% **************************************************
|
||||
% Color Definitions
|
||||
% **************************************************
|
||||
%
|
||||
% -- defines color themes and color commands
|
||||
%
|
||||
%
|
||||
% The xcolor package enables us to create/handle/name different colors
|
||||
\RequirePackage[dvipsnames]{xcolor}
|
||||
|
||||
% general clean thesis colors
|
||||
\definecolor{cthesisblack}{gray}{.05}
|
||||
\definecolor{cthesisgraylight}{gray}{.8}
|
||||
\definecolor{cthesismaincolor}{cmyk}{1, .50, .10, .01}
|
||||
\definecolor{cthesisaccessorycolor}{cmyk}{.18, .98, .18, 0}
|
||||
% updates all colors regarding the defined main and accessory
|
||||
% color, as well as the defined colorize mode (full, reduced, bw)
|
||||
\long\def\ct@cthesis@updatecolors{%
|
||||
% sets all colors (like colorize == full)
|
||||
% -- footer colors
|
||||
\colorlet{ctcolorfooterpage}{ctcolorblack}
|
||||
\colorlet{ctcolorfooterline}{ctcolormain}
|
||||
\colorlet{ctcolorfootermark}{ctcolorblack}
|
||||
\colorlet{ctcolorfootertitle}{ctcolormain}
|
||||
% -- sectioning colors
|
||||
\colorlet{ctcolorpartnum}{ctcolormain}
|
||||
\colorlet{ctcolorpartline}{ctcolorblack}
|
||||
\colorlet{ctcolorparttext}{ctcolorblack}
|
||||
\colorlet{ctcolorchapternum}{ctcolormain}
|
||||
\colorlet{ctcolorchapterline}{ctcolormain}
|
||||
\colorlet{ctcolorsection}{ctcolormain}
|
||||
\colorlet{ctcolorsubsection}{ctcolormain}
|
||||
\colorlet{ctcolorparagraph}{ctcolorblack}
|
||||
% --> text colors
|
||||
\colorlet{ctcolorfloatlabel}{ctcoloraccessory}
|
||||
\colorlet{ctcolorlistlabel}{ctcolormain}
|
||||
|
||||
% footer colors
|
||||
\colorlet{cthesiscolorfooterpage}{cthesisblack}
|
||||
\colorlet{cthesiscolorfooterline}{cthesismaincolor}
|
||||
\colorlet{cthesiscolorfootermark}{cthesisblack}
|
||||
\colorlet{cthesiscolorfootertitle}{cthesismaincolor}
|
||||
\ifcase\cthesis@colorize
|
||||
% case = 0 (colorize == full)
|
||||
% do nothing
|
||||
\or
|
||||
% case = 1 (colorize == reduced)
|
||||
% --> footer colors
|
||||
\colorlet{ctcolorfooterline}{ctcolorgray}
|
||||
\colorlet{ctcolorfootertitle}{ctcolorgray}
|
||||
% --> sectioning colors
|
||||
\colorlet{ctcolorsubsection}{ctcolorblack}
|
||||
\colorlet{ctcolorpartnum}{ctcolorblack}
|
||||
% --> text colors
|
||||
\colorlet{ctcolorlistlabel}{ctcolorblack}
|
||||
\or
|
||||
% case = 2 (colorize == bw)
|
||||
% --> footer colors
|
||||
\colorlet{ctcolorfooterline}{ctcolorgray}
|
||||
\colorlet{ctcolorfootertitle}{ctcolorgray}
|
||||
% --> sectioning colors
|
||||
\colorlet{ctcolorpartnum}{ctcolorblack}
|
||||
\colorlet{ctcolorchapternum}{ctcolorblack}
|
||||
\colorlet{ctcolorchapterline}{ctcolorblack}
|
||||
\colorlet{ctcolorsection}{ctcolorblack}
|
||||
\colorlet{ctcolorsubsection}{ctcolorblack}
|
||||
% --> text colors
|
||||
\colorlet{ctcolorfloatlabel}{ctcolorblack}
|
||||
\colorlet{ctcolorlistlabel}{ctcolorblack}
|
||||
\else
|
||||
\fi
|
||||
}
|
||||
|
||||
% chapter colors
|
||||
\colorlet{cthesiscolorchapternum}{cthesismaincolor}
|
||||
\colorlet{cthesiscolorchapterline}{cthesismaincolor}
|
||||
% sets the main and accessory color for the document
|
||||
\def\cthesissetcolor#1#2#3{%
|
||||
\definecolor{ctcolormain}{#1}{#2}%
|
||||
\definecolor{ctcoloraccessory}{#1}{#3}%
|
||||
\ct@cthesis@updatecolors%
|
||||
}
|
||||
|
||||
% text colors
|
||||
\colorlet{cthesiscolorsection}{cthesismaincolor}
|
||||
\colorlet{cthesiscolorsubsection}{cthesismaincolor}
|
||||
\colorlet{cthesiscolorfloatlabel}{cthesisaccessorycolor}
|
||||
\colorlet{cthesiscolorlistlabel}{cthesismaincolor}
|
||||
% sets the blue-magenta color theme (blue/magenta)
|
||||
\def\cthesissetcolorbluemagenta{%
|
||||
\cthesissetcolor{cmyk}{1, .50, .10, .01}{.18, .98, .18, 0}%
|
||||
}
|
||||
|
||||
% sets the blue-green color theme (blue/green)
|
||||
\def\cthesissetcolorbluegreen{%
|
||||
\cthesissetcolor{cmyk}{.61, .47, .03, 0}{.48, .05, .91, 0}%
|
||||
}
|
||||
|
||||
% defines general colors
|
||||
\definecolor{ctcolorblack}{gray}{0}
|
||||
\definecolor{ctcolorgray}{gray}{.5}
|
||||
\definecolor{ctcolorgraylight}{gray}{.8}
|
||||
|
||||
% sets the color theme regarding the given package option colortheme
|
||||
\ifcase\cthesis@colortheme
|
||||
% case 0 (colortheme == bluemagenta)
|
||||
\cthesissetcolorbluemagenta
|
||||
\or
|
||||
% case 1 (colortheme == bluegreen)
|
||||
\cthesissetcolorbluegreen
|
||||
\else
|
||||
% all other cases
|
||||
\cthesissetcolorbluemagenta
|
||||
\fi
|
||||
|
||||
\ifthenelse{\boolean{@colorbw}}%
|
||||
{%
|
||||
\setboolean{@colorreduced}{true}%
|
||||
%
|
||||
\colorlet{cthesiscolorchapternum}{cthesisblack}%
|
||||
\colorlet{cthesiscolorchapterline}{cthesisblack}%
|
||||
%
|
||||
\colorlet{cthesiscolorsection}{cthesisblack}%
|
||||
\colorlet{cthesiscolorfloatlabel}{cthesisblack}%
|
||||
}{}
|
||||
\ifthenelse{\boolean{@colorreduced}}%
|
||||
{%
|
||||
\colorlet{cthesiscolorfooterline}{cthesisblack}
|
||||
\colorlet{cthesiscolorfootertitle}{cthesisblack}
|
||||
\colorlet{cthesiscolorsubsection}{cthesisblack}
|
||||
\colorlet{cthesiscolorlistlabel}{cthesisblack}
|
||||
}{}
|
||||
|
||||
% **************************************************
|
||||
% Font Definitions (see http://www.tug.dk/FontCatalogue/)
|
||||
% **************************************************
|
||||
\RequirePackage[T1]{fontenc} % font types and character verification
|
||||
\ifthenelse{\boolean{@sansserif}}%
|
||||
{%
|
||||
%\ifthenelse{\boolean{@sansserif}}%
|
||||
\ifct@cthesis@sansserif
|
||||
% {%
|
||||
% Using sans-serif fonts
|
||||
%
|
||||
%\RequirePackage{helvet} % Font: Helvetica
|
||||
@@ -136,13 +226,15 @@
|
||||
%\RequirePackage{libertine} % Font: Biolinum, the standard sans serif typeface with the Libertine package
|
||||
%\RequirePackage[scaled]{berasans} % Font: Bera Sans, a a version of Bitstream Vera Sans slightly enhanced
|
||||
\renewcommand*\familydefault{\sfdefault}%
|
||||
}{%
|
||||
% }{%
|
||||
\else
|
||||
% Using serif fonts
|
||||
%
|
||||
\RequirePackage{lmodern} % font set: Latin Modern
|
||||
\RequirePackage{charter} % font set: Charter
|
||||
%\RequirePackage{fourier} % font set: (basically improved utopia)
|
||||
}
|
||||
% }
|
||||
\fi
|
||||
|
||||
% **************************************************
|
||||
% Load Packages
|
||||
@@ -156,19 +248,21 @@
|
||||
\RequirePackage{blindtext} % package for blind text
|
||||
\RequirePackage{textcomp} % different symbols
|
||||
\RequirePackage{hyperref} % interactive link inside the document
|
||||
\RequirePackage{titlesec} % to modify sectioning commands, e.g. chapter
|
||||
|
||||
%
|
||||
\RequirePackage[ % modify figure and table captions
|
||||
font={small}, % - small font size
|
||||
labelfont={bf,sf,color=cthesiscolorfloatlabel},% - label in bold, sans-serif and magenta
|
||||
labelsep=endash, % - separator
|
||||
labelfont={bf,sf,color=ctcolorfloatlabel},% - label in bold, sans-serif and magenta
|
||||
labelsep=\cthesis@figuresep, % - separator: none, colon, period, space, quad, newline, endash
|
||||
singlelinecheck=false % - no centered single-lined captions
|
||||
]{caption}[2008/08/24]
|
||||
\ifthenelse{\boolean{@figurecaptionoutside}}%
|
||||
{%
|
||||
%\ifthenelse{\boolean{@figurecaptionoutside}}%
|
||||
\ifct@cthesis@hangfigurecaption
|
||||
% {%
|
||||
\DeclareCaptionFormat{llap}{\llap{#1#2}#3\par}%
|
||||
\captionsetup{format=llap,labelsep=quad,singlelinecheck=false}%
|
||||
}{}
|
||||
% }{}
|
||||
\fi
|
||||
%
|
||||
\RequirePackage[ % page layout modifications
|
||||
paper=a4paper, % - use A4 paper size
|
||||
@@ -193,7 +287,7 @@
|
||||
]{csquotes}
|
||||
%
|
||||
\RequirePackage[ % use biblatex for bibliography
|
||||
% backend=biber, % - use biber backend (bibtex replacement)
|
||||
backend=\cthesis@bibsys, % - use biber backend (bibtex replacement) or bibtex
|
||||
bibencoding=utf8, % - use auto file encode
|
||||
style=alphabetic, % - use alphabetic (or numeric) bib style
|
||||
natbib=true, % - allow natbib commands
|
||||
@@ -255,7 +349,7 @@
|
||||
|
||||
\renewcommand{\descriptionlabel}[1]{%
|
||||
\hspace*{\labelsep}%
|
||||
\color{cthesiscolorlistlabel}%
|
||||
\color{ctcolorlistlabel}%
|
||||
\tgherosfont\textbf{#1}%
|
||||
}
|
||||
\newenvironment{my_list_desc}
|
||||
@@ -276,17 +370,17 @@
|
||||
\renewcommand{\chaptermark}[1]{%
|
||||
\markboth{%
|
||||
\footnotesize%
|
||||
{\color{cthesiscolorfootermark}\textbf{\chaptername\ \thechapter}}%
|
||||
{\color{ctcolorfootermark}\textbf{\chaptername\ \thechapter}}%
|
||||
\quad%
|
||||
{\color{cthesiscolorfootertitle}#1}%
|
||||
{\color{ctcolorfootertitle}#1}%
|
||||
}{}%
|
||||
}
|
||||
\renewcommand{\sectionmark}[1]{%
|
||||
\markright{%
|
||||
\footnotesize%
|
||||
{\color{cthesiscolorfootermark}\textbf{\thesection}}%
|
||||
{\color{ctcolorfootermark}\textbf{\thesection}}%
|
||||
\quad%
|
||||
{\color{cthesiscolorfootertitle}#1}%
|
||||
{\color{ctcolorfootertitle}#1}%
|
||||
}%
|
||||
}
|
||||
%
|
||||
@@ -295,18 +389,18 @@
|
||||
\fancyfootoffset[OR]{1.85cm}
|
||||
\fancyfoot[OR]{%
|
||||
{\ }\tgherosfont%
|
||||
{\color{cthesiscolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
\hspace*{10pt}\begin{minipage}[b]{1.5cm}%
|
||||
\color{cthesiscolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\color{ctcolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\end{minipage}%
|
||||
}
|
||||
\fancyfootoffset[EL]{1.85cm}
|
||||
\fancyfoot[EL]{%
|
||||
\tgherosfont%
|
||||
\begin{minipage}[b]{1.5cm}%
|
||||
\raggedleft\color{cthesiscolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\raggedleft\color{ctcolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\end{minipage}%
|
||||
\hspace*{10pt}{\color{cthesiscolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
\hspace*{10pt}{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
}
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\renewcommand{\footrulewidth}{0pt}
|
||||
@@ -319,19 +413,19 @@
|
||||
\fancyfoot[OR]{%
|
||||
{\ }\tgherosfont\footnotesize%
|
||||
\rightmark%
|
||||
\hspace*{0.75cm}{\color{cthesiscolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
\hspace*{0.75cm}{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
\hspace*{10pt}\begin{minipage}[b]{1.5cm}%
|
||||
\color{cthesiscolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\color{ctcolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\end{minipage}%
|
||||
}
|
||||
\fancyfootoffset[EL]{1.85cm}
|
||||
\fancyfoot[EL]{%
|
||||
\tgherosfont\footnotesize%
|
||||
\begin{minipage}[b]{1.5cm}%
|
||||
\raggedleft\color{cthesiscolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\raggedleft\color{ctcolorfooterpage}\normalsize\textbf{\thepage}%
|
||||
\end{minipage}%
|
||||
\footnotesize%
|
||||
\hspace*{10pt}{\color{cthesiscolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
\hspace*{10pt}{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
|
||||
\hspace*{0.75cm}\leftmark%
|
||||
}
|
||||
}
|
||||
@@ -392,78 +486,167 @@
|
||||
% **************************************************
|
||||
% Sectioning Commands
|
||||
% **************************************************
|
||||
%
|
||||
\newcommand*{\ctSetFont}[3]{%
|
||||
arg1=#1, arg2=#2, arg3=#3%
|
||||
}
|
||||
|
||||
% own font definitions
|
||||
\newcommand{\helv}{\fontfamily{phv}\fontsize{9}{11}\selectfont}
|
||||
\newcommand{\book}{\fontfamily{pbk}\fontseries{m}\fontsize{11}{13}\selectfont}
|
||||
\newcommand{\tgherosfont}{\fontfamily{qhv}\selectfont}
|
||||
\newcommand{\thesischapterfont}{\color{cthesisblack}\huge \fontfamily{phv}\selectfont}
|
||||
%\newcommand{\thesissectionfont}{\color{cthesismaincolor}\LARGE\bfseries \tgherosfont}
|
||||
\newcommand{\thesissectionfont}{\color{cthesiscolorsection}\LARGE \tgherosfont}
|
||||
\newcommand{\thesissubsectionfont}{\color{cthesiscolorsubsection}\Large \tgherosfont}
|
||||
|
||||
\newcommand{\thesispartlabelfont}{\color{ctcolorpartnum}\book\fontsize{60}{60}\selectfont}
|
||||
\newcommand{\thesispartfont}{\color{ctcolorparttext}\huge \tgherosfont\selectfont}
|
||||
\newcommand{\thesischapterfont}{\color{ctcolorblack}\huge \fontfamily{phv}\selectfont}
|
||||
%\newcommand{\thesissectionfont}{\color{ctcolormain}\LARGE\bfseries \tgherosfont}
|
||||
\newcommand{\thesissectionfont}{\color{ctcolorsection}\LARGE \tgherosfont}
|
||||
\newcommand{\thesissubsectionfont}{\color{ctcolorsubsection}\Large \tgherosfont}
|
||||
\newcommand{\thesisparagraphfont}{\color{ctcolorparagraph}\tgherosfont\small\bfseries}
|
||||
%
|
||||
% headings
|
||||
\setkomafont{part}{\thesispartfont} % for chapter entries
|
||||
\setkomafont{chapter}{\thesischapterfont} % for chapter entries
|
||||
\setkomafont{section}{\thesissectionfont} % for section entries
|
||||
\setkomafont{subsection}{\thesissubsectionfont} % for section entries
|
||||
\addtokomafont{subsubsection}{\tgherosfont}
|
||||
\addtokomafont{paragraph}{\tgherosfont}
|
||||
%\addtokomafont{paragraph}{\tgherosfont}
|
||||
\setkomafont{paragraph}{\thesisparagraphfont}
|
||||
|
||||
%\setkomafont{subsection}{\large} % for subsection entries
|
||||
|
||||
% usage: \titleformat{⟨command)}[⟨shape⟩]{⟨format⟩}{⟨label⟩}{⟨sep⟩}{⟨before⟩}[⟨after⟩]
|
||||
|
||||
|
||||
%
|
||||
% **************************************************
|
||||
% Sectioning
|
||||
% **************************************************
|
||||
%
|
||||
% -- modifications regarding sectioning (structural) commands,
|
||||
% i.e. \part, \chapter, \section, \subsection, \subsubsection, \paragraph
|
||||
%
|
||||
%
|
||||
% The package titlesec enables us to modify (style) the sectioning commands
|
||||
% -- usage: \titlespacing{\command}{left}{before-sep}{after-sep}[right-sep]
|
||||
% -- usage: \titleformat{\command}[shape]{format}{label}{sep}{before}[after]
|
||||
% -- usage: \titleclass{\command}{class}
|
||||
% -- classes: page (single page), top (like chapters),
|
||||
% straight (title in the middle)
|
||||
\RequirePackage{titlesec}
|
||||
%
|
||||
% > formats: \part
|
||||
\titleclass{\part}{top} % <-- display:
|
||||
\assignpagestyle{\part}{empty} % <-- no page numbers/decorations
|
||||
\titleformat{\part}%
|
||||
[display]%
|
||||
{\usekomafont{part}}%
|
||||
{\raggedleft{%
|
||||
{\thesispartlabelfont%
|
||||
\partname\ \thepart\ \quad}%
|
||||
{\color{ctcolorpartline}%
|
||||
\hspace*{-200pt}\rule[20pt]{600pt}{2pt}}
|
||||
}%
|
||||
}%
|
||||
{0em}%
|
||||
{\raggedleft}%
|
||||
[\phantomsection]
|
||||
%
|
||||
% > formats: \chapter
|
||||
\titleformat{\chapter}[display]%
|
||||
{\usekomafont{chapter}}%
|
||||
{%
|
||||
\vspace{-8em}
|
||||
\raggedleft{%
|
||||
{\color{cthesiscolorchapterline}\rule[-5pt]{2pt}{5cm}}\quad%
|
||||
{\color{cthesiscolorchapternum}\fontsize{60}{60}\selectfont\thechapter}%
|
||||
{\vspace{-8em}\raggedleft{%
|
||||
{\color{ctcolorchapterline}%
|
||||
\rule[-5pt]{2pt}{5cm}}\quad%
|
||||
{\color{ctcolorchapternum}
|
||||
\fontsize{60}{60}\selectfont\thechapter}%
|
||||
}%
|
||||
}%
|
||||
{-2.1em}%
|
||||
{\raggedright}%
|
||||
[]
|
||||
|
||||
% format the section
|
||||
\ifthenelse{\boolean{@sectionlabeloutside}}%
|
||||
{%
|
||||
[\phantomsection]
|
||||
%
|
||||
% > formats: \section
|
||||
\titlespacing{\section}{0em}{.75em}{.2em}%[0pt]
|
||||
%\ifthenelse{\boolean{@sectionlabeloutside}}%
|
||||
\ifct@cthesis@hangsection
|
||||
% {%
|
||||
\titleformat{\section}[hang]%
|
||||
{\usekomafont{section}}%
|
||||
{\color{cthesisblack}\thesection\hspace*{10pt}}%
|
||||
{\color{ctcolorblack}\thesection\hspace*{10pt}}%
|
||||
{0pt}%
|
||||
{\raggedright}%
|
||||
[]
|
||||
}{%
|
||||
[\phantomsection]
|
||||
% }{%
|
||||
\else
|
||||
\titleformat{\section}[block]%
|
||||
{\usekomafont{section}}%
|
||||
{\color{cthesisblack}\thesection\hspace*{10pt}}%
|
||||
{\color{ctcolorblack}\thesection\hspace*{10pt}}%
|
||||
{0pt}%
|
||||
{\raggedright}%
|
||||
[]
|
||||
}
|
||||
|
||||
% format the subsection
|
||||
\ifthenelse{\boolean{@subsectionlabeloutside}}%
|
||||
{%
|
||||
[\phantomsection]
|
||||
% }
|
||||
\fi
|
||||
%
|
||||
% > formats: \subsection
|
||||
\titlespacing{\subsection}{0em}{.5em}{0em}%[0pt]
|
||||
%\ifthenelse{\boolean{@subsectionlabeloutside}}%
|
||||
\ifct@cthesis@hangsubsection
|
||||
% {%
|
||||
\titleformat{\subsection}[hang]%
|
||||
{\usekomafont{subsection}}%
|
||||
{\color{cthesisblack}\thesubsection\hspace*{10pt}}%
|
||||
{\color{ctcolorblack}\thesubsection\hspace*{10pt}}%
|
||||
{0pt}%
|
||||
{\raggedright}%
|
||||
[]
|
||||
}{%
|
||||
[\phantomsection]
|
||||
% }{%
|
||||
\else
|
||||
\titleformat{\subsection}[block]%
|
||||
{\usekomafont{subsection}}%
|
||||
{\color{cthesisblack}\thesubsection\hspace*{10pt}}%
|
||||
{\color{ctcolorblack}\thesubsection\hspace*{10pt}}%
|
||||
{0pt}%
|
||||
{\raggedright}%
|
||||
[]
|
||||
}
|
||||
|
||||
[\phantomsection]
|
||||
% }
|
||||
\fi
|
||||
%
|
||||
% > formats: \paragraph
|
||||
\titlespacing{\paragraph}{0pt}{\parsep}{1em}%[0pt]
|
||||
% \titleformat{\paragraph}[runin]%
|
||||
% {\usekomafont{paragraph}}%
|
||||
% {}%
|
||||
% {}%
|
||||
% {}%
|
||||
% []
|
||||
%
|
||||
%
|
||||
% **************************************************
|
||||
% ToC, LoF, LoT
|
||||
% **************************************************
|
||||
%
|
||||
% -- modifications regarding the table of contents,
|
||||
% the list of figures and the list of tables
|
||||
%
|
||||
%
|
||||
% The tocloft package enables us to control the typographic design of the
|
||||
% table of contents, list of figures and list of tables
|
||||
\RequirePackage{tocloft}
|
||||
%
|
||||
% > adjusts the indention for figure and table entries (lof and lot)
|
||||
% -- \cftsetindents{entry}{indent}{numwidth} sets the entry's indent to
|
||||
% the length indent and its numwidth to the length numwidth
|
||||
\cftsetindents{figure}{0em}{3em}
|
||||
\cftsetindents{table}{0em}{3em}
|
||||
%
|
||||
%
|
||||
%
|
||||
% **************************************************
|
||||
% Mishmash
|
||||
% **************************************************
|
||||
%
|
||||
% Clean chapter quotations
|
||||
\newcommand{\hugequote}{%
|
||||
{\book\fontsize{75}{80}\selectfont%
|
||||
\hspace*{-.475em}\color{cthesisgraylight}%
|
||||
\hspace*{-.475em}\color{ctcolorgraylight}%
|
||||
\textit{\glqq}%
|
||||
\vskip -.26em}%
|
||||
}
|
||||
@@ -483,7 +666,7 @@
|
||||
\end{minipage}%
|
||||
\bigskip
|
||||
}
|
||||
|
||||
%
|
||||
% Clean Quotation environment
|
||||
\newenvironment{thesis_quotation}%
|
||||
{%
|
||||
@@ -496,7 +679,9 @@
|
||||
\end{flushright}
|
||||
\end{minipage}%
|
||||
}%
|
||||
|
||||
%
|
||||
% Clean signs around word origins in definitions
|
||||
%\newcommand{\cthesisorigin}[1]{\textsf{\textlangle}#1\textsf{\textrangle}}
|
||||
|
||||
|
||||
|
||||
|
132
cleanthesis.tex
Normal file
132
cleanthesis.tex
Normal file
@@ -0,0 +1,132 @@
|
||||
\documentclass{ltxdockit}
|
||||
\usepackage{btxdockit}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[american]{babel}
|
||||
\usepackage[strict]{csquotes}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{longtable}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{shortvrb}
|
||||
\usepackage{pifont}
|
||||
|
||||
\rcsid{$Id: cleanthesis.tex,v 0.3 2013/05/12 23:50:00 derric stable $}
|
||||
|
||||
\newcommand*{\cleanthesis}{\emph{Clean Thesis}\xspace}
|
||||
\newcommand*{\cthesishome}{http://cleanthesis.der-ric.de/}
|
||||
%\newcommand*{\cthesisctan}{http://www.ctan.org/tex-archive/macros/latex/contrib/../}
|
||||
|
||||
\titlepage{%
|
||||
title={The \sty{cleanthesis} Package},
|
||||
subtitle={A LaTeX Style for Thesis Documents},
|
||||
url={\cthesishome},
|
||||
author={Ricardo Langner},
|
||||
email={info@cleanthesis.der-ric.de},
|
||||
revision={\rcsrevision},
|
||||
date={\rcstoday}}
|
||||
|
||||
\hypersetup{%
|
||||
pdftitle={The \cleanthesis Package},
|
||||
pdfsubject={A LaTeX Style for Thesis Documents},
|
||||
pdfauthor={Ricardo Langner},
|
||||
pdfkeywords={tex, latex, thesis, style}}
|
||||
|
||||
|
||||
%\setcounter{secnumdepth}{4}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\printtitlepage
|
||||
\tableofcontents
|
||||
\listoftables
|
||||
|
||||
\section{Introduction}
|
||||
\label{sec:intro}
|
||||
|
||||
\subsection[About]{About \sty{cleanthesis}}
|
||||
\label{sec:intro:about}
|
||||
|
||||
\subsection{License}
|
||||
\label{sec:intro:license}
|
||||
|
||||
Copyright \textcopyright\ 2011--2013 Ricardo Langner.
|
||||
\cleanthesis is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
\cleanthesis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program.
|
||||
If not, see \url{http://www.gnu.org/licenses/}.
|
||||
|
||||
\subsection{Feedback}
|
||||
\label{sec:intro:feedback}
|
||||
|
||||
\subsection{Acknowledgments}
|
||||
\label{sec:intro:ack}
|
||||
|
||||
I would like to thank the following people for using the \cleanthesis style and giving feedback to me, e.g., features, bugs.
|
||||
|
||||
\begin{itemize}
|
||||
\item \textbf{Anton Augsburg} in his project thesis \\ \url{http://antonaugsburg.de/} (in German only)
|
||||
\item \textbf{Mathias Frisch} in his dissertation (PhD) \\ \url{http://wwwpub.zih.tu-dresden.de/~frisch/}
|
||||
\item \textbf{Sebastian Kleinau} in his bachelor thesis \\ \url{http://www.sk-downloading.de/} (in German only)
|
||||
\end{itemize}
|
||||
|
||||
|
||||
\subsection{Prerequisites}
|
||||
\label{sec:intro:pre}
|
||||
|
||||
The follwing section gives an overview of all resources required by this package.
|
||||
|
||||
\subsubsection{Requirements}
|
||||
\label{sec:intro:req}
|
||||
|
||||
\section{User Guide}
|
||||
\label{sec:userguide}
|
||||
|
||||
\subsection{Package Options}
|
||||
\label{sec:userguide:pkgopt}
|
||||
|
||||
All package options are given in \keyval notation.
|
||||
The value \texttt{true} can be omitted for all boolean keys, \eg \opt{sansserif} without a value is equivalent to \kvopt{sansserif}{true}.
|
||||
|
||||
All of the following options must be used as \sty{cthesis} is loaded, \ie in the optional argument to \cmd{usepackage}.
|
||||
|
||||
\begin{optionlist}
|
||||
|
||||
\boolitem[false]{sansserif}
|
||||
|
||||
Sets whether to use a sans serif font or not.
|
||||
|
||||
\boolitem[false]{hangfigurecaption}
|
||||
|
||||
\boolitem[true]{hangsection}
|
||||
|
||||
\boolitem[true]{hangsubsection}
|
||||
|
||||
\optitem[endash]{figuresep}{\opt{none},\opt{colon},\opt{period},\opt{space},\opt{quad},\opt{endash}}
|
||||
|
||||
This option can be used to define a different label separator for cations of figures. The following value are allowed:
|
||||
|
||||
\begin{valuelist}
|
||||
\item[none] Inserts no character in between.
|
||||
\item[colon] Inserts a colon (\textbf{:}) in between.
|
||||
\item[period] Inserts a period (\textbf{.}) in between.
|
||||
\item[space] Inserts a single space character in between.
|
||||
\item[quad] Inserts a \cmd{\\quad} in between.
|
||||
\item[endash] Inserts an en dash (\textbf{--}) in between.
|
||||
\end{valuelist}
|
||||
|
||||
\optitem[full]{colorize}{\opt{full},\opt{reduced},\opt{bw}}
|
||||
|
||||
\optitem[bluemagenta]{colortheme}{\opt{bluemagenta},\opt{bluegreen}}
|
||||
|
||||
\optitem[bibtex]{bibsys}{\opt{biber},\opt{bibtex}}
|
||||
|
||||
Sets whether to use \texttt{biber} or \texttt{bibtex} as citation management tool (engine).
|
||||
The default (still) is \texttt{bibtex}.
|
||||
|
||||
"\texttt{Biber} [is] a BibTeX replacement for users of BibLaTeX", see <http://biblatex-biber.sourceforge.net/>.
|
||||
|
||||
\end{optionlist}
|
||||
|
||||
\end{document}
|
@@ -11,8 +11,8 @@
|
||||
\label{sec:intro:address}
|
||||
|
||||
\textbf{Ricardo Langner} \\
|
||||
Bunsenstr. 9 \\
|
||||
39124 Magdeburg \\
|
||||
Alfred-Schrapel-Str. 7 \\
|
||||
01307 Dresden \\
|
||||
Germany
|
||||
|
||||
|
||||
|
@@ -6,6 +6,8 @@
|
||||
\pdfbookmark[0]{Colophon}{Colophon}
|
||||
\section*{Colophon}
|
||||
|
||||
This thesis was typeset with \LaTeXe\ using the \textit{Clean Thesis} style. The design of this style is inspired by user guide documents from Apple Inc.
|
||||
This thesis was typeset with \LaTeXe.
|
||||
It uses the \textit{Clean Thesis} style developed by Ricardo Langner.
|
||||
The design of the \textit{Clean Thesis} style is inspired by user guide documents from Apple Inc.
|
||||
|
||||
Download the \textit{Clean Thesis} style at \url{http://cleanthesis.der-ric.de/}.
|
||||
|
@@ -29,7 +29,7 @@
|
||||
|
||||
\vfill
|
||||
{\large \thesisSubject} \\[5mm]
|
||||
{\LARGE \color{cthesismaincolor}\textbf{\thesisTitle} \\[10mm]}
|
||||
{\LARGE \color{ctcolormain}\textbf{\thesisTitle} \\[10mm]}
|
||||
{\Large \thesisName} \\
|
||||
|
||||
\vfill
|
||||
|
BIN
thesis-example.pdf
Normal file
BIN
thesis-example.pdf
Normal file
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
% Clean Thesis
|
||||
% -- A LaTeX Style for Thesis Documents --
|
||||
%
|
||||
% Copyright (C) 2011 Ricardo Langner
|
||||
% Copyright (C) 2011-2013 Ricardo Langner
|
||||
% **************************************************
|
||||
%
|
||||
% Readme:
|
||||
@@ -10,7 +10,7 @@
|
||||
% *** Clean, Simple, Elegant ***
|
||||
% "Clean Thesis" is a LaTeX style for thesis documents, developed
|
||||
% for my diplom thesis (Diplomarbeit). The style can be understood
|
||||
% as my personal compromise — a typical clean looking scientific
|
||||
% as my personal compromise - a typical clean looking scientific
|
||||
% document combined and polished with minor beautifications.
|
||||
%
|
||||
% The design of this "Clean Thesis" style is inspired
|
||||
@@ -83,8 +83,8 @@
|
||||
\newcommand{\thesisTitle}{The Clean Thesis Style}
|
||||
\newcommand{\thesisName}{Ricardo Langner}
|
||||
\newcommand{\thesisSubject}{Documentation}
|
||||
\newcommand{\thesisDate}{June 8, 2011}
|
||||
\newcommand{\thesisVersion}{0.1b}
|
||||
\newcommand{\thesisDate}{May 12, 2013}
|
||||
\newcommand{\thesisVersion}{0.3}
|
||||
|
||||
\newcommand{\thesisFirstReviewer}{Jane Doe}
|
||||
\newcommand{\thesisFirstReviewerUniversity}{\protect{Clean Thesis Style University}}
|
||||
@@ -111,11 +111,13 @@
|
||||
\usepackage[utf8]{inputenc} % defines file's character encoding
|
||||
\usepackage[english]{babel} % babel system, adjust the language of the content
|
||||
\usepackage[ % clean thesis style
|
||||
%sansserif, % - use sans serif font family
|
||||
%colorreduced, % - controls the use of colors; use colorreduced or colorbw
|
||||
%figurecaptionoutside, % - puts the label of figures into the margin
|
||||
sectionlabeloutside, % - puts the label of sections into the margin
|
||||
subsectionlabeloutside, % - puts the label of subsections into the margin
|
||||
figuresep=colon,%
|
||||
sansserif=false,%
|
||||
hangfigurecaption=false,%
|
||||
hangsection=true,%
|
||||
hangsubsection=true,%
|
||||
colorize=full,%
|
||||
colortheme=bluemagenta,%
|
||||
]{cleanthesis}
|
||||
|
||||
\hypersetup{ % setup the hyperref-package options
|
Reference in New Issue
Block a user