Added new package option bibstyle: allows you to set a reference style for the bibliography [issue 5]
This commit is contained in:
BIN
cleanthesis.pdf
BIN
cleanthesis.pdf
Binary file not shown.
@@ -111,6 +111,11 @@
|
|||||||
\define@key[ct]{cthesis}{bibfile}[bib-refs]{\def\cthesis@bibfile{#1}}
|
\define@key[ct]{cthesis}{bibfile}[bib-refs]{\def\cthesis@bibfile{#1}}
|
||||||
\setkeys[ct]{cthesis}{bibfile=bib-refs}
|
\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*{
|
\DeclareOptionX*{
|
||||||
\PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}%
|
\PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}%
|
||||||
@@ -295,7 +300,7 @@
|
|||||||
\RequirePackage[ % use biblatex for bibliography
|
\RequirePackage[ % use biblatex for bibliography
|
||||||
backend=\cthesis@bibsys, % - use biber backend (bibtex replacement) or bibtex
|
backend=\cthesis@bibsys, % - use biber backend (bibtex replacement) or bibtex
|
||||||
bibencoding=utf8, % - use auto file encode
|
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
|
natbib=true, % - allow natbib commands
|
||||||
hyperref=true, % - activate hyperref support
|
hyperref=true, % - activate hyperref support
|
||||||
backref=true, % - activate backrefs
|
backref=true, % - activate backrefs
|
||||||
|
@@ -145,6 +145,11 @@ The default (still) is \texttt{bibtex}.
|
|||||||
Sets the file name of the bibtex file used for the bibliography.
|
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}.
|
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{optionlist}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user