add option for other include filepaths
This commit is contained in:
parent
d71eb1005d
commit
b8e4df1b84
1 changed files with 14 additions and 6 deletions
|
@ -2,16 +2,24 @@
|
||||||
\ProvidesPackage{mkessler-bibliography}[2021-09-06 - Package to easily print bibliography and image attributions in document]
|
\ProvidesPackage{mkessler-bibliography}[2021-09-06 - Package to easily print bibliography and image attributions in document]
|
||||||
%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
\newif\ifenglish\englishtrue
|
\newif\ifenglish\englishtrue
|
||||||
\DeclareOption{german}{\englishfalse}
|
\DeclareOptionX{german}{\englishfalse}
|
||||||
\DeclareOption{english}{\englishtrue}
|
\DeclareOptionX{english}{\englishtrue}
|
||||||
\DeclareOption*{\PackageWarning{mkessler-bibliography}{Unknown '\CurrentOption'}}
|
|
||||||
\ProcessOptions\relax
|
\def\mkessler@bibliography@bibfile{bibliography.bib}
|
||||||
|
\def\mkessler@bibliography@imagefile{images.bib}
|
||||||
|
\DeclareOptionX{bibfile}[bibliography.bib]{\def\mkessler@bibliography@bibfile{#1}}
|
||||||
|
\DeclareOptionX{imagefile}[images.bib]{\def\mkessler@bibliography@imagefile{#1}}
|
||||||
|
|
||||||
|
\DeclareOptionX*{\PackageWarning{mkessler-bibliography}{Unknown '\CurrentOption'}}
|
||||||
|
\ProcessOptionsX\relax
|
||||||
|
|
||||||
%%%%Bibliography management
|
%%%%Bibliography management
|
||||||
\RequirePackage[backend=biber,style=alphabetic]{biblatex}
|
\RequirePackage[backend=biber,style=alphabetic]{biblatex}
|
||||||
\addbibresource{bibliography.bib}
|
\addbibresource{\mkessler@bibliography@bibfile}
|
||||||
\addbibresource{images.bib}
|
\addbibresource{\mkessler@bibliography@imagefile}
|
||||||
|
|
||||||
%Provide simpler commands to properly print image attributions and literature
|
%Provide simpler commands to properly print image attributions and literature
|
||||||
\DeclareRobustCommand*{\printimageattributions}{
|
\DeclareRobustCommand*{\printimageattributions}{
|
||||||
|
|
Loading…
Reference in a new issue