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.sty60
1 files changed, 35 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty b/Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty
index 15d395d6292..fe55179a056 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) 2009 André Miede http://www.miede.de
+% Copyright (C) 2010 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}[2009/08/01 v2.6 Package Loader for Classic Thesis Style]
+\ProvidesPackage{classicthesis-ldpkg}[2010/02/13 v2.7 Package Loader for Classic Thesis Style]
\@ifpackageloaded{classicthesis}%
{\PackageWarningNoLine{classicthesis-ldpkg}{Package "classicthesis" should be loaded AFTER "classicthesis-ldpkg".}}%
@@ -37,7 +37,9 @@
% ********************************************************************
\RequirePackage{ifthen}
\newboolean{cld@nochapters} % disable all chapter-specific commands
+ \newboolean{cld@backref} % enable backrefs in the bibliography
\DeclareOption{nochapters}{\setboolean{cld@nochapters}{true}}
+\DeclareOption{backref}{\setboolean{cld@backref}{true}}
\ProcessOptions\relax
% ********************************************************************
@@ -117,16 +119,20 @@
}
\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
-
+% \makeatletter
+% \@ifpackageloaded{listings}{%
+% \ifthenelse{\boolean{cld@nochapters}}%
+% {\relax}{%
+% \@removefromreset{lstlisting}{chapter}% requires remreset package
+% %\@removefromreset{listings}{chapter}% requires remreset package
+% }
+% \AtBeginDocument{%
+% \renewcommand{\thelstlisting}{\arabic{lstlisting}}% % <-- might cause an error with some TeX distributions
+% \renewcommand{\thelistings}{\arabic{listings}}% % <-- might cause an error with some TeX distributions
+% }%
+% }{\relax}
+% \makeatother
+
% ********************************************************************
% enable subfigures in figures
\RequirePackage{subfig}
@@ -134,7 +140,7 @@
% ********************************************************************
% Using PDFLaTeX:
% ********************************************************************
-\RequirePackage[pdftex,hyperfootnotes=false,pdfpagelabels,pagebackref]{hyperref} % backref linktocpage pagebackref
+\RequirePackage[pdftex,hyperfootnotes=false,pdfpagelabels]{hyperref} % backref linktocpage pagebackref
\pdfcompresslevel=9
\pdfadjustspacing=1
\RequirePackage[pdftex]{graphicx} % PDFTeX driver for graphicx
@@ -169,18 +175,22 @@
\newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}
\newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}
-\RequirePackage[hyperpageref]{backref} % to be loaded after hyperref package
- \renewcommand{\backreftwosep}{ and~} % seperate 2 pages
- \renewcommand{\backreflastsep}{, and~} % seperate last of longer list
- \renewcommand*{\backref}[1]{} % Disable standard
- \renewcommand*{\backrefalt}[4]{% Detailed backref
- \ifcase #1 %
- \backrefnotcitedstring%
- \or
- \backrefcitedsinglestring{#2}%
- \else
- \backrefcitedmultistring{#2}%
- \fi}
+\ifthenelse{\boolean{cld@backref}}%
+{%
+ \RequirePackage[hyperpageref]{backref} % to be loaded after hyperref package
+ \renewcommand{\backreftwosep}{ and~} % seperate 2 pages
+ \renewcommand{\backreflastsep}{, and~} % seperate last of longer list
+ \renewcommand*{\backref}[1]{} % Disable standard
+ \renewcommand*{\backrefalt}[4]{% Detailed backref
+ \ifcase #1 %
+ \backrefnotcitedstring%
+ \or%
+ \backrefcitedsinglestring{#2}%
+ \else%
+ \backrefcitedmultistring{#2}%
+ \fi}%
+}{\relax}
+
% \hspace*{\fill}{\scriptsize\itshape\mbox{%
% \ifnum#1=1 %
% (Cited on page~%