summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/udesoftec/udesoftec-bst.sty
blob: 2a0a06234345d62ce58cfc73e8ebe7ca0fe0aa42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
% !Mode:: "TeX:UTF-8"
%% udesoftec-bst.sty
%% Copyright 2013-2015 J. Peter M. Schuler
%% 2015/08/20 v1.4.8 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}[2015/08/20 v1.4.8 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
\RequirePackage{regexpatch}  % 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{\bibstyle@udesoftecmulticite}{\bibpunct[,~\bblInTextPagePrefix{}]{}{}{;}{a}{}{}{}}
%http://tex.stackexchange.com/questions/262103/interpret-tex-commands-and-remove-curly-braces-from-href-content/262133#262133
\providecommand{\doi}[1]{%
  \def\tmpdoi{#1}%
  \xpatchcmd*\tmpdoi{{\textunderscore }}{_}{}{}%
  \href{http://dx.doi.org/\tmpdoi}{doi:#1}%
}%
\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}{: }
\providecommand{\bblstdseptypenum}{ }
\providecommand{\bblstdsepnumed}{-}
\providecommand{\bblnostandardrepeat}{}
\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{\citemulti}[1]{%
\citetext{%
\bibstyle@udesoftecmulticite%
#1%
\bibstyle@udesoftec%
}}


\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%