Added new package option bibfile: allows you to link/use arbitrary bibtex files

This commit is contained in:
Ricardo Langner
2014-09-30 22:58:40 +02:00
parent 971062a42f
commit 7283093479
4 changed files with 36 additions and 24 deletions

View File

@@ -6,6 +6,7 @@ cleanthesis repository.
=== Latest Dev === === Latest Dev ===
- Created this changelog text file - Created this changelog text file
- Fixed broken package option/parameter colorize (hrzbrg) - Fixed broken package option/parameter colorize (hrzbrg)
- New package option bibfile: allows you to link/use arbitrary bibtex files
=== v0.2.3 === === v0.2.3 ===
- Fixed line breaks for long chapter headlines (caused text overlapping) - Fixed line breaks for long chapter headlines (caused text overlapping)

Binary file not shown.

View File

@@ -106,6 +106,12 @@
\define@choicekey*[ct]{cthesis}{bibsys}[\val\bibsysnr]{biber,bibtex}[bibtex]{\def\cthesis@bibsys{#1}} \define@choicekey*[ct]{cthesis}{bibsys}[\val\bibsysnr]{biber,bibtex}[bibtex]{\def\cthesis@bibsys{#1}}
\setkeys[ct]{cthesis}{bibsys=bibtex} \setkeys[ct]{cthesis}{bibsys=bibtex}
% OPTION bibfile
% --> values = file name of your bibtex file
\define@key[ct]{cthesis}{bibfile}[bib-refs]{\def\cthesis@bibfile{#1}}
\setkeys[ct]{cthesis}{bibfile=bib-refs}
\DeclareOptionX*{ \DeclareOptionX*{
\PackageWarning{cleanthesis}{Unknown option \CurrentOption}% \PackageWarning{cleanthesis}{Unknown option \CurrentOption}%
} }
@@ -304,7 +310,7 @@
maxcitenames=2,% maxcitenames=2,%
mincitenames=1% mincitenames=1%
]{biblatex} ]{biblatex}
\bibliography{bib-refs} \bibliography{\cthesis@bibfile}
\DefineBibliographyStrings{ngerman}{% \DefineBibliographyStrings{ngerman}{%
andothers = {{et\,al\adddot}}, % 'et al.' instead of 'u.a.' andothers = {{et\,al\adddot}}, % 'et al.' instead of 'u.a.'
backrefpage = {{zitiert auf Seite}},% backrefpage = {{zitiert auf Seite}},%

View File

@@ -140,6 +140,11 @@ The default (still) is \texttt{bibtex}.
"\texttt{Biber} [is] a BibTeX replacement for users of BibLaTeX", see \url{http://biblatex-biber.sourceforge.net/}. "\texttt{Biber} [is] a BibTeX replacement for users of BibLaTeX", see \url{http://biblatex-biber.sourceforge.net/}.
\optitem[bib-refs]{bibfile}{file name of your bibtex file}
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}.
\end{optionlist} \end{optionlist}
\end{document} \end{document}