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

Fixed formatting of certain fields (title, url, urldate)

parent 2a9b22aa
\ProvidesPackage{wzl-citation}[2018/09/21] \ProvidesPackage{wzl-citation}[2018/09/25]
\RequirePackage[autostyle]{csquotes} \RequirePackage[autostyle]{csquotes}
\RequirePackage[ \RequirePackage[backend=biber,style=alphabetic]{biblatex}
backend=biber,
style=alphabetic,
maxalphanames=1,
maxnames=50
]{biblatex}
% Bibliography name % Bibliography name
\DefineBibliographyStrings{ngerman}{ \DefineBibliographyStrings{ngerman}{
...@@ -14,24 +9,42 @@ ...@@ -14,24 +9,42 @@
} }
% Citation style % Citation style
\DeclareLabelalphaTemplate[]{ \DeclareLabelalphaTemplate{
\labelelement{ \labelelement{
\field[uppercase,final]{shorthand} \field[uppercase,final]{shorthand}
\field[uppercase]{label} \field[uppercase]{label}
\field[uppercase,strwidth=4]{labelname} \field[uppercase,names=1,noalphaothers,strwidth=4]{labelname}
} }
\labelelement{ \labelelement{
\field[strwidth=2,strside=right]{year} \field[strwidth=2,strside=right]{year}
\field[strwidth=2,strside=right]{urlyear}
} }
} }
\renewcommand*{\labelalphaothers}{}
% Name format % Name format
\DeclareNameFormat{default}{{\usebibmacro{name:family-given}{\namepartfamily}{\namepartgiveni}{\namepartprefix}{\namepartsuffix}}} \DeclareNameFormat{default}{%
\usebibmacro{name:family-given}%
{\namepartfamily}{\namepartgiveni}%
{\namepartprefix}{\namepartsuffix}%
}
% Name delimiters % Name delimiters
\renewcommand{\labelnamepunct}{\addcolon\space} \renewcommand{\labelnamepunct}{\addcolon\space}
\renewcommand{\multinamedelim}{\addsemicolon\space} \renewcommand{\multinamedelim}{\addsemicolon\space}
\renewcommand{\finalnamedelim}{\addsemicolon\space} \renewcommand{\finalnamedelim}{\addsemicolon\space}
% Title format
\DeclareFieldFormat*{title}{#1\isdot}
\DeclareFieldFormat*{journaltitle}{#1\isdot}
\DeclareFieldFormat*{booktitle}{#1\isdot}
\DeclareFieldFormat*{issuetitle}{#1\isdot}
\DeclareFieldFormat*{maintitle}{#1\isdot}
\DeclareFieldFormat*{thesistitle}{#1\isdot}
% URL format
\DeclareFieldFormat*{url}{URL\addcolon\space\url{#1}}
\DeclareFieldFormat*{urldate}{[Stand\addcolon\space#1]}
\DeclareFieldFormat*{volume}{Bd\adddot\space#1}
\endinput \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