diff --git a/cleanthesis.pdf b/cleanthesis.pdf index 10b2b4d..fef3a73 100644 Binary files a/cleanthesis.pdf and b/cleanthesis.pdf differ diff --git a/cleanthesis.sty b/cleanthesis.sty index 31bc612..710a264 100644 --- a/cleanthesis.sty +++ b/cleanthesis.sty @@ -111,6 +111,11 @@ \define@key[ct]{cthesis}{bibfile}[bib-refs]{\def\cthesis@bibfile{#1}} \setkeys[ct]{cthesis}{bibfile=bib-refs} +% OPTION bibstyle +% --> values = alphabetic|numeric +\define@choicekey*[ct]{cthesis}{bibstyle}[\val\bibstylenr]{alphabetic,numeric}[alphabetic]{\def\cthesis@bibstyle{#1}} +\setkeys[ct]{cthesis}{bibstyle=alphabetic} + \DeclareOptionX*{ \PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}% @@ -295,7 +300,7 @@ \RequirePackage[ % use biblatex for bibliography backend=\cthesis@bibsys, % - use biber backend (bibtex replacement) or bibtex bibencoding=utf8, % - use auto file encode - style=alphabetic, % - use alphabetic (or numeric) bib style + style=\cthesis@bibstyle, % - use alphabetic (or numeric) bib style natbib=true, % - allow natbib commands hyperref=true, % - activate hyperref support backref=true, % - activate backrefs diff --git a/cleanthesis.tex b/cleanthesis.tex index fdc6ffd..bd30434 100644 --- a/cleanthesis.tex +++ b/cleanthesis.tex @@ -145,6 +145,11 @@ The default (still) is \texttt{bibtex}. Sets the file name of the bibtex file used for the bibliography. If this option is not used (defined), the package looks for the default bibliography \texttt{bib-refs.bib}. +\optitem[alphabetic]{bibstyle}{\opt{alphabetic},\opt{numeric}} + +Sets whether to use an \texttt{alphabetic} or a \texttt{numeric} reference style for the bibliography. +The default is \texttt{alphabetic}. + \end{optionlist} \end{document} diff --git a/thesis-example.pdf b/thesis-example.pdf index 0a783f5..7fb2849 100644 Binary files a/thesis-example.pdf and b/thesis-example.pdf differ