From b75ea3e5f0b8c5074b871631fdde5b6eb1f523ad Mon Sep 17 00:00:00 2001 From: Ricardo Langner Date: Sun, 12 May 2013 23:16:19 +0200 Subject: [PATCH] - Feature: new package option for citation management tool (bib engine), biber or bibtex --- cleanthesis.sty | 7 ++++++- cleanthesis.tex | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cleanthesis.sty b/cleanthesis.sty index 0bab262..203e94a 100644 --- a/cleanthesis.sty +++ b/cleanthesis.sty @@ -101,6 +101,11 @@ \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’}% } @@ -282,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 diff --git a/cleanthesis.tex b/cleanthesis.tex index a519cca..b9529e5 100644 --- a/cleanthesis.tex +++ b/cleanthesis.tex @@ -111,6 +111,13 @@ This option can be used to define a different label separator for cations of fig \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 . + \end{optionlist} \end{document}