Commit b800b345 authored by Lukas Janek Körfer's avatar Lukas Janek Körfer
Browse files

Added bibliography drivers for types standard, patent and online

parent 237bb35c
......@@ -3,9 +3,14 @@
\RequirePackage[autostyle]{csquotes}
\RequirePackage[backend=biber,style=alphabetic]{biblatex}
% Bibliography name
% New strings
\NewBibliographyString{standard}
% German strings
\DefineBibliographyStrings{ngerman}{
bibliography = {Literaturverzeichnis}
bibliography = {Literaturverzeichnis},
standard = {Norm},
patent = {Schutzrecht}
}
% Citation style
......@@ -32,6 +37,7 @@
\renewcommand{\labelnamepunct}{\addcolon\space}
\renewcommand{\multinamedelim}{\addsemicolon\space}
\renewcommand{\finalnamedelim}{\addsemicolon\space}
\renewcommand*{\finentrypunct}{}
% Title format
\DeclareFieldFormat*{title}{#1\isdot}
......@@ -45,6 +51,55 @@
\DeclareFieldFormat*{url}{URL\addcolon\space\url{#1}}
\DeclareFieldFormat*{urldate}{[Stand\addcolon\space#1]}
% Volume format
\DeclareFieldFormat*{volume}{Bd\adddot\space#1}
% Norm / Guideline driver
\DeclareBibliographyDriver{standard}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\iffieldundef{type}{\bibstring{standard}}{\printfield{type}}%
\setunit{\addspace}%
\printfield{label}%
\setunit{\addspace}%
\printfield{number}%
\addspace%
(\mkbibmonth{\thefield{month}}\addspace\printfield{year})%
\setunit{\adddot\addspace}%
\usebibmacro{title}%
\usebibmacro{finentry}%
}
% Patent driver
\DeclareBibliographyDriver{patent}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\bibstring{patent}%
\setunit{\addspace}%
\printlist{location}
\setunit{\addspace}%
\printfield{number}%
\addspace%
(\usebibmacro{date})%
\setunit{\adddot\addspace}%
\usebibmacro{author}%
\setunit{\addcolon\addspace}%
\usebibmacro{title}%
\usebibmacro{finentry}%
}
% Web / Online driver
\DeclareBibliographyDriver{online}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\iffieldundef{author}{\printlist{organization}}{\usebibmacro{author}}%
\setunit{\addcolon\addspace}%
\usebibmacro{title}%
\setunit{\adddot\addspace}%
\printfield{url}%
\setunit{\addspace}%
\usebibmacro{urldate}%
\usebibmacro{finentry}%
}
\endinput
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment