% !Mode:: "TeX:UTF-8"
%% udesoftec-bst.sty
%% Copyright 2013-2014 J. Peter M. Schuler
%% 2014/08/23 v1.4.4 udesoftec
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
% 
% The current Maintainer of this work is J. Peter M. Schuler
% j.peter.m.schuler@uni-due.de
%
% This work consists of the files udesoftec.cls and udesoftec.bst.
%
% As this work is based on years of mostly undocumented improvement, 
% it includes parts, for which sources can't be identified anymore. Public postings
% in the LaTeX community were used as an input and if source is known, it is
% mentioned below. If anybody identifies parts of his/her own code,
% feel free to contact the maintainer in order to get listed. 
%
% Special thanks to all contributors and for the help of the tex-live team,
% e.g. Axel K.; Norbert P.; Rainer S.; Reinhard K.; Robin F.
%
% For further information refer to:
% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/README
% and
% http://mirrors.ctan.org/macros/latex/contrib/udesoftec/udesoftec-doc.pdf
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{udesoftec-bst}[2014/08/23 v1.4.4 udesoftec-bst.sty udesoftec bibstyle configuration]%
%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\ifdocumentIsFinal
\documentIsFinalfalse
\DeclareOption{final}       {\documentIsFinaltrue}
\ProcessOptions\relax
%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{hyperref} % support doi-links
\RequirePackage{hyphenat} % prevent author names and quotations from hyphenating
\RequirePackage{scrbase}  % support for providecaptionname
\RequirePackage{csquotes}  % language dependant quotes and in-quote-quotes

%%% natbib %%%%%%%%%%
% purpose: real cite options (in parentheses, out of parentheses, suppressing author etc)
\usepackage[elide]{natbib}	
\bibliographystyle{udesoftec}

\providecommand{\bibstyle@udesoftec}{\bibpunct[,~\bblInTextPagePrefix{}]{(}{)}{;}{a}{}{}{}}
\providecommand{\doi}[1]{\href{http://dx.doi.org/#1}{doi:\detokenize{#1}}} %use real doi links with doi:<num> as label
\providecommand{\bblisbn}[1]{\small{ISBN:\mbox{#1}}}
\providecommand{\bblissn}[1]{\small{ISSN:\mbox{#1}}}
\providecommand{\bbland}{\& }
\providecaptionname{ngerman}{\bbland}{und }%
\providecaptionname{english}{\bbland}{and }%
\providecommand{\bblAuthorYearSep}{ } % possible to add \newline 
\providecommand{\bblAuthorTitleSep}{: } % possible to add \newline 
\providecommand{\bblAuthorTitleSepInEd}{: }
\providecaptionname{ngerman}{\bblin}{In: }%
\providecaptionname{english}{\bblin}{In: }%
\providecaptionname{ngerman}{\bbled}{~(Hrsg.)}%
\providecaptionname{english}{\bbled}{~(Ed.)}%
\providecaptionname{ngerman}{\bbleds}{~(Hrsg.)}%
\providecaptionname{english}{\bbleds}{~(Eds.)}%
\providecaptionname{ngerman}{\bbledn}{Aufl.}%
\providecaptionname{english}{\bbledn}{edn}%
\providecaptionname{ngerman}{\bbletal}{et~al.}%
\providecaptionname{english}{\bbletal}{et~al.}%
\providecaptionname{ngerman}{\bblpp}{S.~}%
\providecaptionname{english}{\bblpp}{pp.}%
\providecaptionname{ngerman}{\bblp}{S.~}%
\providecaptionname{english}{\bblp}{p.~}%
\providecaptionname{ngerman}{\bblvol}{Nr.}%
\providecaptionname{english}{\bblvol}{No}%
\providecaptionname{ngerman}{\bblof}{von}%
\providecaptionname{english}{\bblof}{of}%
\providecaptionname{ngerman}{\bblnoyear}{o.J.}%
\providecaptionname{english}{\bblnoyear}{n.d.}%
\providecaptionname{ngerman}{\bblnoyearlong}{ohne Jahresangabe}%
\providecaptionname{english}{\bblnoyearlong}{no date}%
\providecaptionname{ngerman}{\bbllastaccesswas}{Zuletzt geprüft: }%
\providecaptionname{english}{\bbllastaccesswas}{Last checked: }%

\renewcommand{\bibfont}{\raggedright}
\providecommand{\bblInTextPagePrefix}[1]{}
\providecommand{\bblurldate}[1]{ (\bbllastaccesswas #1)}
\providecommand{\bblVolumeOfSeries}[2]{ (#2~#1)}
\providecommand{\bblSeries}[1]{ (#1)}
\providecommand{\bblFontAuthorInText}[1]{\nohyphens{\textsc{#1}}}
\providecommand{\bblFontAuthorInList}[1]{\textbf{#1}}
\providecommand{\bblFontYearInList}[1]{\textbf{(#1)}}
\providecommand{\bblFontBookTitle}[1]{\emph{#1}}
\providecommand{\bblFontInBookTitle}[1]{#1}
\providecommand{\bblFontJournalTitle}[1]{#1}

\ifdocumentIsFinal
    \providecommand{\bblWarning}[2]{} %for production
\else
    \providecommand{\bblWarning}[2]{
        \message{LaTeX Warning: Error with citation of #2 -- #1 }%
        \textbf{\emph{BibError: #2 -- #1}}%
    }
\fi
\providecommand{\bblyear}[1]{\ifnumber{#1}{#1}{\bblnoyear}}
\providecommand{\bbledGenerateEdition}[1]{\ifnumber{#1}{\bbledOrdinal{#1}\bbledn}{#1}}

\providecommand{\englishordinal}[1]{\ifcase #1\or 1\textsuperscript{st}\or 2\textsuperscript{nd}\or 3\textsuperscript{rd}\else #1\textsuperscript{th}\fi}
\providecommand{\germanordinal}[1]{#1.}
\providecommand{\bbledOrdinal}[1]{
    \iflanguage{english}{%
        \englishordinal{#1}
    }{%
        \germanordinal{#1}
    }
}

\setlength{\bibhang} {2em} %hanging indentation for list of references
\setlength{\bibsep} {.5em} %vertical sep between bibitems in list of references
%\renewcommand{\bibfont}{\small}
%\renewcommand{\bibfont}{\sc}




\providecommand{\inquotequote}[1]{\enquote{#1}}

\providecommand{\intextquote}[3][]{%
    \message{LaTeX Warning: \noexpand\intextquote is deprecated, use \noexpand\citequote on input line \the\inputlineno }%
    \citequote[#1]{#2}{#3}%
}
\providecommand{\inlinequote}[3][]{%
    \message{LaTeX Warning: \noexpand\intextquote is deprecated, use \noexpand\citequote on input line \the\inputlineno }%
    \citequote[#1]{#2}{#3}%
}
\providecommand{\citequote}[3][]{\enquote{#3} \cite[#1]{#2}}
\providecommand{\citequotehidden}[3][]{\cite[#1]{#2}}
\providecommand{\citetquotehidden}[3][]{\citet[#1]{#2}}
\providecommand{\citetquotepar}[3][]{
    \begin{quote}
    #3\par
    \hfill\cite[#1]{#2}
    \end{quote}
}
%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput%