summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty')
-rw-r--r--Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty80
1 files changed, 19 insertions, 61 deletions
diff --git a/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty b/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty
index abbff96099f..15d395d6292 100644
--- a/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty
+++ b/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty
@@ -1,7 +1,7 @@
% ********************************************************************
% classicthesis-ldpkg.sty (formerly known as loadpackages.sty)
%
-% Copyright (C) 2008 André Miede http://www.miede.de
+% Copyright (C) 2009 André Miede http://www.miede.de
%
% If you like the style then I would appreciate a postcard. My address
% can be found in the file ClassicThesis.pdf. A collection of the
@@ -26,7 +26,7 @@
%
% ********************************************************************
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{classicthesis-ldpkg}[2008/10/01 v2.5 Package Loader for Classic Thesis Style]
+\ProvidesPackage{classicthesis-ldpkg}[2009/08/01 v2.6 Package Loader for Classic Thesis Style]
\@ifpackageloaded{classicthesis}%
{\PackageWarningNoLine{classicthesis-ldpkg}{Package "classicthesis" should be loaded AFTER "classicthesis-ldpkg".}}%
@@ -51,8 +51,9 @@
\RequirePackage{mparhack} % get marginpar right
\RequirePackage{fixltx2e} % fixes some LaTeX stuff
%\RequirePackage{ellipsis} % ... ;-)
-\RequirePackage{relsize} % scale font up or down
-\RequirePackage[smaller]{acronym} % nice macros for handling all acronyms in the thesis
+\RequirePackage{relsize} % scale font up or down
+\RequirePackage[printonlyused,smaller]{acronym} % nice macros for handling all acronyms in the thesis
+%\renewcommand*{\acsfont}[1]{\textssc{#1}}
\renewcommand{\bflabel}[1]{{#1}\hfill} % fix the list of acronyms
%\RequirePackage{natbib}
@@ -94,6 +95,10 @@
% ********************************************************************
% take care of the caption fonts and sizes (tables and figures)
\RequirePackage{caption}
+
+% ********************************************************************
+% fine typesetting of code listings
+\RequirePackage{listings}
% ********************************************************************
% caption numbering now w/o chapter number
@@ -112,66 +117,19 @@
}
\renewcommand{\thefigure}{\arabic{figure}}
\makeatother
+ \makeatletter
+ \@ifpackageloaded{listings}{%
+ \ifthenelse{\boolean{cld@nochapters}}%
+ {\relax}{%
+ \@removefromreset{lstlisting}{chapter}% requires remreset package
+ }
+ \AtBeginDocument{\renewcommand{\thelstlisting}{\arabic{lstlisting}}} % <-- might cause an error with some TeX distributions
+ }{\relax}
+ \makeatother
% ********************************************************************
% enable subfigures in figures
-\RequirePackage{subfig}
-
-% ********************************************************************
-% fine typesetting of code listings
-\RequirePackage{listings}
-% ********************************************************************
-% caption numbering now w/o chapter number
-%\makeatletter
-% \ifthenelse{\boolean{@nochapters}}%
-% {\relax}{%
-% \@removefromreset{lstlisting}{chapter}% requires remreset package
-% }
-% \renewcommand{\thelstlisting}{\arabic{lstlisting}} % <-- might cause an error with some TeX distributions
-%\makeatother
-% ********************************************************************
-% ...and get the layout of the list of listings right (dirty workaround)
-%\makeatletter
-% \def\@dottedtocline#1#2#3#4#5{%
-% \ifnum #1>\c@tocdepth \else
-% \vskip \z@ \@plus.2\p@
-% {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
-% \parindent #2\relax\@afterindenttrue
-% \interlinepenalty\@M
-% \leavevmode
-% \@tempdima #3\relax
-% \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
-% \hbox{{#4}\nobreak
-% \hspace{1.5em}
-% \nobreak
-% \hb@xt@\@pnumwidth{\normalfont \normalcolor #5}}%
-% \par}%
-% \fi}
-% \def\@pnumwidth{0em}
-%\makeatother
-% ********************************************************************
-% to get the LoL entries right, change line 1461 in listings.sty (v1.3a) to
-% {\protect\hspace{-\parindent}Listing~\thelstlisting\hspace{1.5em}\lst@@caption}%
-% really nasty, if you know of a better way, please let me know
-% ********************************************************************
-%\lstset{emph={trueIndex,root},emphstyle=\color{BlueViolet}}%\underbar} % for special keywords
-% ********************************************************************
-\lstset{language=[LaTeX]Tex,%C++,
- keywordstyle=\color{RoyalBlue},%\bfseries,
- basicstyle=\small\ttfamily,
- %identifierstyle=\color{NavyBlue},
- commentstyle=\color{Green}\ttfamily,
- stringstyle=\rmfamily,
- numbers=none,%left,%
- numberstyle=\scriptsize,%\tiny
- stepnumber=5,
- numbersep=8pt,
- showstringspaces=false,
- breaklines=true,
- frameround=ftff,
- frame=single
- %frame=L
-}
+\RequirePackage{subfig}
% ********************************************************************
% Using PDFLaTeX: