From abfae2bf899082256fbc16f13345f3d78c10e188 Mon Sep 17 00:00:00 2001 From: Ricardo Langner Date: Tue, 31 Jan 2012 17:46:29 +0100 Subject: [PATCH] - Change: first tidy ups --- cleanthesis.sty | 165 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 125 insertions(+), 40 deletions(-) diff --git a/cleanthesis.sty b/cleanthesis.sty index 19d37dd..8aabcd4 100644 --- a/cleanthesis.sty +++ b/cleanthesis.sty @@ -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 @@ -55,6 +55,28 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{cleanthesis}[2011/05/27 v0.1b Clean-looking thesis style inspired by Apple's user guide documents] +%\RequirePackage{xkvview} + +%\RequirePackage{xkeyval} + +% OPTIONS and VALUES +% sansserif = true|false +% colormode = full|reduced|bw +% figurecaptionhang = true|false +% sectionhang = true|false +% subsectionhang = true|false +% figuresep = none|colon|period|space|quad|newline|endash + + +% \define@choicekey*[ct]{warning}{errorlevel}{info,warning,error}[info]{} +% \setkeys{warning}{errorlevel=info} +% \DeclareOptionX*{ + % \PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}% +% } +%\ProcessOptionsX + + + \RequirePackage{ifthen} \newboolean{@sansserif} \newboolean{@colorbw} @@ -77,6 +99,7 @@ } \ProcessOptions\relax % executes the code for each option + % ************************************************** % Color Definitions % ************************************************** @@ -95,9 +118,9 @@ \colorlet{cthesiscolorfootertitle}{cthesismaincolor} % part colors -\colorlet{cthesiscolorpartnum}{cthesisblack} +\colorlet{cthesiscolorpartnum}{cthesismaincolor} \colorlet{cthesiscolorpartline}{cthesisblack} -\colorlet{cthesiscolorparttext}{cthesismaincolor} +\colorlet{cthesiscolorparttext}{cthesisblack} % chapter colors \colorlet{cthesiscolorchapternum}{cthesismaincolor} @@ -108,6 +131,7 @@ \colorlet{cthesiscolorsubsection}{cthesismaincolor} \colorlet{cthesiscolorfloatlabel}{cthesisaccessorycolor} \colorlet{cthesiscolorlistlabel}{cthesismaincolor} +\colorlet{cthesiscolorparagraph}{cthesisblack} \ifthenelse{\boolean{@colorbw}}% {% @@ -118,6 +142,8 @@ % \colorlet{cthesiscolorsection}{cthesisblack}% \colorlet{cthesiscolorfloatlabel}{cthesisblack}% + % + \colorlet{cthesiscolorpartnum}{cthesisblack} }{} \ifthenelse{\boolean{@colorreduced}}% {% @@ -125,6 +151,8 @@ \colorlet{cthesiscolorfootertitle}{cthesisblack} \colorlet{cthesiscolorsubsection}{cthesisblack} \colorlet{cthesiscolorlistlabel}{cthesisblack} + % + \colorlet{cthesiscolorpartnum}{cthesisblack} }{} % ************************************************** @@ -161,7 +189,7 @@ \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 @@ -397,16 +425,23 @@ % ************************************************** % 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{\thesispartlabelfont}{\color{cthesiscolorpartnum}\book\fontsize{60}{60}\selectfont} \newcommand{\thesispartfont}{\color{cthesiscolorparttext}\huge \tgherosfont\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{\thesisparagraphfont}{\color{cthesiscolorparagraph}\tgherosfont\small\bfseries} % % headings \setkomafont{part}{\thesispartfont} % for chapter entries @@ -414,47 +449,63 @@ \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{]{}{