diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-11 23:49:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-11 23:49:35 +0000 |
commit | aecf512be299752118f8d9d79e7b06895c56a8a0 (patch) | |
tree | 89022e2bc2b1565878bf01be54b9dde7070a2344 /Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty | |
parent | a82c24b304d3a6727a9cd210d82b33b2c9e3119b (diff) |
classicthesis update (11feb10)
git-svn-id: svn://tug.org/texlive/trunk@16974 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/classicthesis/classicthesis-ldpkg.sty | 60 |
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~% |