Debian Codegraph @

texmf-dist/doc/bibtex/babelbib/babelbib.dtx

raw
1 % \iffalse meta comment
2 % File: babelbib.dtx Copyright (C) 2003--2021 Harald Harders
3 % Copyright (C) 2019--2021 Norbert Preining
4 % \fi
5 %
6 % \iffalse
7 %
8 %<*driver>
9 \documentclass{ltxdoc}
10 \usepackage[T1]{fontenc}
11 \usepackage[ngerman,english]{babel}
12 %\usepackage{url}
13 \usepackage{array}
14 \usepackage{amsmath}
15 \usepackage{hyperref}
16 \IfFileExists{booktabs.sty}%
17 {\usepackage{booktabs}}%
18 {\let\toprule\hline
19 \let\midrule\hline
20 \let\bottomrule\hline}
21 \IfFileExists{babelbib.sty}{\usepackage[fixlanguage]{babelbib}
22 \let\babelbibSTYfound\active}{\GenericWarning{babelbib.dtx}{Package
23 file babelbib.sty not found (Documentation will be messed up!^^J^^A
24 Generate babelbib.sty by LaTeXing babelbib.ins, process
25 babelbib.dtx again)^^J}\stop}
26 \GetFileInfo{babelbib.sty}
27 \title{Multilingual bibliographies: The \texttt{babelbib} package}
28 \author{Harald Harders\\\texttt{[email protected]}}
29 \date{Version \fileversion, \filedate, printed \today}
30 \newlength{\tempdima}%
31 \makeatletter
32 \renewenvironment{table}[1][]{%
33 \@float{table}[#1]%
34 \centering%
35 \setlength{\tempdima}{\abovecaptionskip}%
36 \setlength{\abovecaptionskip}{\belowcaptionskip}%
37 \setlength{\belowcaptionskip}{\tempdima}%
38 }{%
39 \end@float
40 }
41 \makeatother
42 \EnableCrossrefs
43 \CodelineIndex
44 \DoNotIndex{\def,\edef,\let,\newcommand,\newenvironment,\newcounter}
45 \DoNotIndex{\setcounter,\space,\",\@empty,\begin,\end,\iffalse,\fi,\extras}
46 \DoNotIndex{\bibs,\ifx,\else,\fi,\ ,\ae,\emph,\input,\foreignlanguage}
47 \DoNotIndex{\IeC,\cyrv,\CYRV,\cyrt,\CYRT,\cyrya,\protect}
48 \CodelineNumbered
49 \RecordChanges
50 \CheckSum{15854}
51 \hyphenation{bib-lio-gra-phy}
52 \begin{document}
53 \DocInput{babelbib.dtx}
54 \end{document}
55 %</driver>
56 % \fi
57 %
58 % \changes{0.1}{2003/04/11}{Total new version}%
59 % \changes{0.2}{2003/04/20}{Rewritten in main parts}%
60 % \changes{0.42}{2003/11/09}{Use unique version strings for all files
61 % of the bundle}%
62 % \changes{0.42}{2003/11/09}{Reorganise docstrip code}%
63 % \changes{0.43}{2004/01/06}{Document the problem using
64 % \texttt{frenchle.sty} when using \texttt{french} language with
65 % some babel versions}%
66 % \changes{0.44}{2004/01/06}{Improved spacings in documentation}%
67 % \changes{0.44a}{2004/02/12}{Adapted Makefile for \TeX Live}%
68 % \changes{0.46}{2004/06/28}{Enable to switch off printout of language
69 % name with \texttt{babamspl} style}%
70 % \changes{1.00}{2005/02/16}{Rewritten warning about \texttt{frenchle.sty}
71 % package}%
72 % \changes{1.00}{2005/02/16}{Shorten version string}%
73 % \changes{1.00}{2005/02/16}{Added \texttt{urldate} to all \BibTeX\
74 % styles}%
75 % \changes{1.01}{2005/04/11}{Added space after the \cs{btx}\ldots\
76 % commands in the \texttt{bst} files to avoid line-breaking problem}%
77 % \changes{1.02}{2005/04/15}{Language Portuguese completed}%
78 % \changes{1.10}{2005/05/24}{Allow different ordering of forenames and
79 % lastnames}%
80 % \changes{1.10}{2005/05/24}{Protect the \cs{foreignlanguage} calls
81 % (avoids problems with natbib)}%
82 % \changes{1.11}{2005/06/12}{Avoid some additional line breaks in
83 % author and editor names}%
84 % \changes{1.11}{2005/06/12}{Switch ISBN and ISSN in bibliographies on
85 % and off (does not work for \protect\AmS\ style)}%
86 % \changes{1.11}{2005/06/12}{Remove space after \cs{btxurlfont}
87 % because a linebreak between \cs{url} and the argument breaks
88 % \texttt{hyperref.sty} (which is a pity because this can lead to
89 % line-break problems with long arguments)}%
90 % \changes{1.12}{2005/06/19}{Correct \cs{btxlanguagenameenglish},
91 % \cs{btxmastthesis}, and \cs{btxmonaugshort} in
92 % \texttt{french.bdf}}%
93 % \changes{1.13}{2005/06/27}{Apply corrections to and complete Italian
94 % language}%
95 % \changes{1.14}{2005/07/11}{Complete and correct catalan}%
96 % \changes{1.20}{2005/11/13}{Add Greek language}%
97 % \changes{1.20}{2005/11/13}{Change method to write \texttt{urldate}
98 % to enable to write it in brackets}%
99 % \changes{1.20}{2005/11/13}{Bugfix in names writing of abbreviated
100 % styles}%
101 % \changes{1.20}{2005/11/13}{Ensure to write URL's in latin font}%
102 % \changes{1.20}{2005/11/13}{Numerals for French and Spanish}%
103 % \changes{1.20}{2005/11/13}{Add the fields \texttt{ANNOTE} and
104 % \texttt{ANNOTELANGUAGE} to all bib\TeX\ styles and introduce the
105 % command \cs{btxannotation} which prints the annotations on
106 % request.}%
107 % \changes{1.20}{2005/11/13}{Add the package options \texttt{isbn},
108 % \texttt{noisbn}, \texttt{issn}, \texttt{noissn},
109 % \texttt{varlanguage}, \texttt{nolanguagenames}, \texttt{annote}, and
110 % \texttt{noannote}}%
111 % \changes{1.20}{2005/11/13}{Add new font \texttt{jtitle} for titles
112 % of journal articles}%
113 % \changes{1.20}{2005/11/13}{Fix a bug with additional spaces after
114 % names}%
115 % \changes{1.21}{2005/11/20}{Fix problem when the first bibliography entry
116 % is in an unknown language}%
117 % \changes{1.22}{2006/01/02}{Remove space after \cs{btxurlfont} again
118 % because a linebreak between \cs{url} and the argument breaks
119 % \texttt{hyperref.sty}}%
120 % \changes{1.23}{2006/08/18}{Fix bug in typesetting title of articles for
121 % \texttt{babamspl.bst}}%
122 % \changes{1.24}{2008/02/17}{Put \cs{btxISSN} and \cs{btxISBN} into an
123 % \cs{mbox} to prevent them from being hyphenated}%
124 % \changes{1.25}{2008/09/24}{Add font command for publisher}%
125 % \changes{1.25}{2008/09/24}{Remove change of language in
126 % alpha-numerical bib items because of occasional exceeded TeX memory}%
127 % \changes{1.26}{2009/06/17}{Correct journal article title font in
128 % \texttt{babamspl.bst}}%
129 % \changes{1.26}{2009/06/17}{Linebreak added between url and urldate}%
130 % \changes{1.26}{2009/06/17}{Added Galician and Bahasa languages}%
131 % \changes{1.26}{2009/06/17}{Added French and Portuguese numerals}%
132 % \changes{1.26}{2009/06/17}{Corrected Spanish numerals}%
133 % \changes{1.26}{2009/06/17}{Removed comma before `and' in long lists
134 % of authors in Portuguese and Swedish}%
135 % \changes{1.27}{2009/06/19}{Capitalised month names in Poruguese but
136 % not in Brazilian}%
137 % \changes{1.27}{2009/06/19}{Fixed publisherfont in babamspl.bst}%
138 % \changes{1.27}{2009/06/19}{Added Russian language}%
139 % \changes{1.28}{2009/07/05}{Corrected Diciembre in Spanish language}%
140 % \changes{1.28}{2009/07/05}{Automatic formatting of month year
141 % combinations (either ``June 2009'' or ``06/2009'')}%
142 % \changes{1.28}{2009/07/05}{Some corrections in Brazilian Portuguese}%
143 % \changes{1.29}{2009/10/10}{Fix output of ``urldate''}%
144 % \changes{1.30}{2010/01/06}{Added Croatian language}%
145 % \changes{1.31}{2012/01/03}{Corrections in Portuguese, Croatian, Swedish}%
146 % \changes{1.31}{2012/01/03}{Added Serbian, Czech, and Romanian language}%
147 % \changes{1.31}{2012/01/03}{Change handling of editions to allow
148 % keyword `edition' before the edition number}%
149 % \changes{1.32}{2019/03/11}{Fix Spanish month abbreviation missing periods}%
150 % \changes{1.33}{2020/10/29}{Add Afrikaans translation of urldatecomment}%
151 % \changes{1.34}{2021/01/06}{Small bug fix in documentation}%
152 % \changes{1.34}{2021/01/06}{Bug with explicitely loaded language fixed}%
153 % \changes{1.34}{2021/01/06}{Added Turkish language}%
154 % \changes{1.34}{2021/01/06}{Added \cs{btxjnumbers}\ldots}%
155 %
156 % \maketitle
157 % \begin{abstract}
158 % \noindent
159 % This package enables to generate multilingual bibliographies in
160 % cooperation with |babel|.
161 % Two approaches are possible:
162 % Each citation may be written in another language, or the whole
163 % bibliography can be typeset in a language chosen by the user.
164 %
165 % In addition, the package supports commands to change the typography
166 % of the bibliographies.
167 %
168 % The current version supports Afrikaans, Bahasa, Catalan, Croatian,
169 % Danish, Dutch,
170 % English, Esperanto, Finnish, French,\footnote{Babelbib does not work
171 % with \texttt{frenchle} prior V5,987. Please update the frenchle
172 % package or use the native babel support for French, instead.}
173 % Galician, German, Greek, Italian, Norwegian, Portuguese, Romanian,
174 % Russian, Serbian, Spanish, Swedish, and Turkish.
175 % Please help me to add more languages.
176 %
177 % Many of the standard and extended bibliography styles are available.
178 % Please read section~\ref{sec:styles}.
179 %
180 % If you have used version 0.1 of this package:
181 % The mechanism to change fonts has changed, please read
182 % section~\ref{sec:typography}.
183 %
184 % Have a look to \texttt{tugboat-babelbib.pdf} which includes detailed
185 % descriptions how to use and extend the babelbib bundle.
186 % \end{abstract}
187 %
188 % \tableofcontents
189 %
190 % \section*{Copyright}
191 % Copyright 2003--2021 Harald Harders.\\
192 % Copyright 2019--2021 Norbert Preining.
193 %
194 % This program can be redistributed and/or modified under the terms
195 % of the LaTeX Project Public License Distributed from CTAN
196 % archives in directory macros/latex/base/lppl.txt; either
197 % version 1 of the License, or any later version.
198 %
199 % \section{Introduction}
200 %
201 % This package is a replacement for |bibgerm.sty| \cite{germbib} with the
202 % aim to be extendable to other languages more easily.
203 % In addition, |babelbib| provides a more flexible typography of
204 % bibliographies without the need to change |bst| files.
205 % But there are two shortcomings: This package needs
206 % |babel.sty|~\cite{babel} (thus, it does not work with |german.sty|
207 % or |ngerman.sty|), and it is written for \LaTeXe\ and does not work
208 % with plain \TeX.
209 %
210 % The current version supports Afrikaans, Bahasa, Catalan, Croatian,
211 % Czech, Danish, Dutch, English, Esperanto, Finnish,
212 % French,\footnote{Babelbib does not work with \texttt{frenchle}
213 % prior V5,987. Please update the frenchle package or use the native
214 % babel support for French, instead.}
215 % Galician, German, Greek, Italian, Norwegian, Portuguese, Romanian,
216 % Russian, Serbian, Spanish, Swedish, and Turkish.
217 %
218 % If you have used version 0.1 of this package:
219 % The mechanism to change fonts have changed, please read
220 % section~\ref{sec:typography}.
221 %
222 % \section{Usage}%
223 % \label{sec:usage}%
224 %
225 % To use this package place
226 % \begin{verbatim}
227 %\usepackage{babelbib}\end{verbatim}
228 % into the preamble of your document.
229 % The package loads all necessary language definitions for all files
230 % it knows that are loaded by |babel|.
231 %
232 % By default, the language of the bibliographic keywords (``editor'',
233 % ``page'', etc.) switches for each item to the language of the cited
234 % document.\footnote{This is equivalent to using the package option
235 % \texttt{varlanguage}.}
236 % If all citations shall be written in the same language, add the
237 % option\index{fixlanguage=\texttt{fixlanguage}|usage} |fixlanguage|
238 % to the package call.
239 % Then, all bibliographies are typeset in the document's main
240 % language.
241 % To change the bibliography's language, use
242 % \DescribeMacro{\selectbiblanguage}
243 % |\selectbiblanguage{|$\langle$language$\rangle$|}|.
244 % This command only has an effect, if |fixlanguage| is set.
245 %
246 % |babelbib| supports the \BibTeX\ styles |babplain|, |babplai3|,
247 % |babalpha|, |babunsrt|, |bababbrv|, and |bababbr3| that correspond
248 % to the standard |bst| files, but include international support as
249 % well as flexible typography.\footnote{The versions with the
250 % \texttt{3} in the filenames replace the second and later authors by
251 % \emph{et al.}, if more than three authors are given.}
252 % As usual, you select the style using
253 % \DescribeMacro{\bibliographystyle}
254 % |\bibliographystyle{|$\langle$filename$\rangle$|}|.
255 % In addition, the package supports the \BibTeX\ style |babamspl|
256 % which corresponds to |amsplain| by the \AmS.
257 % \changes{0.2}{2003/04/20}{Added option \texttt{languagenames} to
258 % define commands for language names}%
259 % \index{languagenames=\texttt{languagenames}|usage}%
260 % If you want to use this style, you have to add the option
261 % |languagenames| to the call of the package.
262 % Default is |nolanguagenames|.
263 %
264 % \DescribeMacro{\declarebtxcommands}%
265 % If you don't like some of the keywords provided by |babelbib|, or if
266 % you want to use new ones, you are able to get these using the
267 % command \cs{declarebtxcommands}.
268 % It takes two arguments, where the first is the language for which
269 % you want to add or change keywords, and the second is the list of
270 % command definitions.
271 % It seems to be best to show that for an example.
272 % You may want to change the definitions for Ph.D.\ theses for English
273 % and German with new orthography (the defaults are ``PhD thesis'' resp.\
274 % \foreignlanguage{ngerman}{"`Dissertation"'}).
275 % You can reach a change by the following code:
276 % \begin{verbatim}
277 %\declarebtxcommands{english}{%
278 % \def\btxphdthesis#1{\protect\foreignlanguage{english}{Ph.D.\ thesis}}%
279 %}
280 %\declarebtxcommands{ngerman}{%
281 % \def\btxphdthesis#1{\protect\foreignlanguage{ngerman}{Doktorarbeit}}%
282 %}\end{verbatim}
283 % You may change more than one command in one |\setbtxcommand|
284 % command.
285 % You just have to add more of the |\def|\ldots\ lines.
286 % But please don't forget the percent sign at the end of the lines in
287 % order to avoid unwanted spaces in the output.
288 % The \AmS\ \BibTeX\ style |amsplain| uses ``Ph.D.\ thesis'' instead
289 % of the default ``PhD thesis'' for |babamspl|.
290 % If you want the same keyword as in the \AmS\ original, you can use
291 % the \cs{declarebtxcommands} line shown above.
292 %
293 %
294 % \section{Preparing the \texttt{bib} files}
295 %
296 % In order to use the feature of multilingual bibliographies, add the
297 % field |language| to every entry in your |bib| files.
298 % This field gives the language of the cited document, e.\,g.
299 % \begin{verbatim}
300 %@InBook{dieter1997a,
301 % editor = {Dieter, George~E. and others},
302 % title = {Materials Selection and Design},
303 % chapter = {Effects of Composition, Processing, and Structure on
304 % Properties of Engineering Plastics},
305 % publisher = {ASM International},
306 % year = 1997,
307 % volume = 20,
308 % series = {ASM Handbook},
309 % pages = {434--456},
310 % language = {english},
311 % isbn = {0-87170-386-6}
312 %}\end{verbatim}
313 % Then, the output of the document data (title, authors, series, etc.)
314 % is typeset with correct hyphenation patterns.
315 % Whether also the keywords (``edition'', ``pages'', etc.) are
316 % switched to the citation language, depends on whether |fixlanguage|
317 % has been used.
318 % All languages that appear in the bibliography have to be loaded by
319 % |babel|.
320 %
321 % \DescribeMacro{\setbtxfallbacklanguage}
322 % If the field |language| is missing, the citation is typeset using a
323 % fall-back language.
324 % By default, the document's main language (that one that is active at
325 % \cs{begin\{document\}}) is used.
326 % You can change the fall-back language by using
327 % \cs{setbtxfallbacklanguage\marg{language}}, e.\,g.,
328 % \begin{verbatim}
329 %\setbtxfallbacklanguage{ngerman}\end{verbatim}
330 %
331 % |babelbib| supports a couple of additional fields:
332 % |ISBN|, |ISSN|, |URL|, |URLDATE|, and |ANNOTE|.
333 % |ISBN| and |ISSN| take the ISBN or ISSN respectively.
334 % |URL| is the address of a WWW page while |URLDATE| is the date when
335 % the WWW page has been visited.
336 % The field |URL| is typeset using the command |\url| if available,
337 % e.\,g., if the user has loaded |url.sty|.
338 % Otherwise, |babelbib| defines a |\url| command which just calls
339 % |\texttt|.
340 % |ANNOTE| typesets annotations after each entry in the bibliography.
341 % By default, a |quotation| environment (starting with \cs{noindent})
342 % is used.
343 % If the field |ANNOTELANGUAGE| is also given, the language is
344 % switched to the specified language.
345 % Otherwise the language of the keywords is used.
346 %
347 % You can change the behaviour by redefining
348 % \cs{btxannotation}\marg{annotations}.
349 % The annotations are only printed when the package option |annote| is
350 % used.
351 %
352 % \DescribeMacro{\biblanguage}%
353 % If you want to use language-dependent commands as \cs{alsoname} in a
354 % bibliography that was produced with |fixlanguage| you will be
355 % surprised that the commands change the output depending on the
356 % language of the citation.
357 % If you want to write a field with the keyword language, you can use
358 % the command \cs{biblanguage}, e.g.,
359 % \begin{verbatim}
360 %@Article{abinger1988a,
361 % author = {Abinger, R. and Hammer, F. and Leopold, J. and others},
362 % title = {Gro"sschaden an einem 300"=MW"=Dampfturbosatz},
363 % journal = {Der Maschinenschaden},
364 % year = 1988,
365 % volume = 61,
366 % number = 2,
367 % pages = {58--60},
368 % language = {ngerman},
369 % note = {\biblanguage{\alsoname~\cite{abinger1990a}}}
370 %}\end{verbatim}
371 % This will give the note ``\alsoname~[\ldots]'' instead of
372 % ``{\selectlanguage{ngerman}\alsoname~[\ldots]}'' when the
373 % bibliography uses English keywords.
374 %
375 %
376 % \section{Available bibliography styles}%
377 % \label{sec:styles}%
378 %
379 % The |babelbib| bundle contains adapted versions of the standard
380 % bibliography styles |plain|, |unsrt|, |abbrv|, and |alpha|.
381 % They are called |babplain|, |babunsrt|, |bababbrv|, and |babalpha|,
382 % respectively.
383 % All variants write names in a special manner when more than one
384 % author is given.
385 % The first author ist written ``Lastname, Forename'' while all other
386 % authors are written ``Forename Lastname''.
387 % This is done to emphesize the ordering by the lastname.
388 %
389 % If you don't want this behaviour you can use additional variants
390 % that use the same notation for all names.
391 % By appending |-fl| to the style name, e.\,g., |babalpha-fl|, all names
392 % are written ``Forename Lastname''.
393 % By appending |-lf|, e.\,g., |babalpha-lf|, all names are written
394 % ``Lastname, Forename''.
395 %
396 % The style |babamspl| is the |babelbib| equivalent to |amsplain|.
397 %
398 %
399 % \section{Customisation of the bibliography's typography}
400 % \label{sec:typography}%
401 %
402 % In constrast to the standard and |germbib| |bst| files, the
403 % appearance of the different data types is not fixed for |bab*.bst|.
404 % There are commands for some data fields that determine the used
405 % font.
406 %
407 % \DescribeMacro{\setbibliographyfont}%
408 % You can change some font specifications in the bibliography using
409 % the command
410 % \cs{setbibliographyfont\{\textrm{\meta{element}}\}\{\textrm{\meta{font command}}\}},
411 % where \meta{element} is a typographic element, listed in
412 % table~\ref{tab:elements}.
413 % \begin{table}[tp]
414 % \centering
415 % \caption{Default values for the fonts in bibliographies.
416 % If no value is given, the standard font (normally upright roman)
417 % is used.}
418 % \label{tab:elements}
419 % \begin{tabular}{llll}
420 % \toprule
421 % Element& Data types& \multicolumn{2}{c}{Default value for
422 % \BibTeX\ style} \\
423 % && |bababbrv|, |babalpha|& |babamspl| \\
424 % && |babplain|, |babunsrt|& \\
425 % \midrule
426 % name& Authors, editors& & \\
427 % lastname& Lastnames of Authors, editors& & \\
428 % title& All kinds of titles& \cs{emph}& \cs{emph}\\
429 % jtitle& Title of journal articles& \cs{emph}& \cs{emph}\\
430 % etal& ``\emph{et al.}''& \cs{emph}& \\
431 % journal& Journal name& & \\
432 % publisher& Publisher name& & \\
433 % volume& Volume (journal)& & \cs{textbf} \\
434 % ISBN& ISBN& \cs{MakeUppercase}& \cs{MakeUppercase} \\
435 % ISSN& ISSN& \cs{MakeUppercase}& \cs{MakeUppercase} \\
436 % url& URL& \cs{url}& \cs{url} \\
437 % urldate& visiting date of URL& & \\
438 % ordinal& ordinal numbers in edition& & \\
439 % \bottomrule
440 % \end{tabular}
441 % \end{table}
442 % \meta{font command} is a command that takes one argument, e.\,g.\
443 % |\textbf|, |\emph|, or |\textsc|.
444 % If no suitable command is available, you have to define one, first.
445 % For example, you can get a bold italic font as follows:
446 % \begin{verbatim}
447 %\newcommand\textitbf[1]{{\bfseries\itshape #1\/}}%
448 %\setbibliographyfont{title}{\textitbf}%\end{verbatim}
449 % As it can be seen in this example, the argument of the used font
450 % command mustn't be specified in |\setbibliographyfont|.
451 %
452 %
453 % \subsection{Names}
454 %
455 % The \meta{element} |name| changes the whole name of the author,
456 % including forename and lastname.
457 % If |lastname| is also specified, it changes the lastname within the
458 % font for the name.
459 % For example,
460 % \begin{verbatim}
461 %\setbibliographyfont{name}{\emph}
462 %\setbibliographyfont{lastname}{\MakeUppercase}\end{verbatim}
463 % leads to |\emph{Harald \MakeUppercase{Harders}}| resp.\
464 % ``\emph{Harald \MakeUppercase{Harders}}''.
465 %
466 %
467 % By default, a colon is printed after the author names.
468 % If you want another sign, just redefine the command
469 % \cs{btxauthorcolon}:
470 % \begin{verbatim}
471 %\renewcommand\btxauthorcolon{,}\end{verbatim}
472 % Unfortunately, it cannot detect whether the name ends on a fullstop.
473 % Thus, things like ``Harders, H.. \emph{Title of document}'' may
474 % appear.
475 %
476 %
477 % \subsection{URL's}
478 %
479 % The font definition for |urldate| can also be used not to change the
480 % font but to provide a command that writes the date in the correct
481 % language, e.\,g., using the |isodate| package:
482 % \begin{verbatim}
483 %\usepackage[short]{isodate}
484 %\setbibliographyfont{urldate}{\printdate}\end{verbatim}
485 %
486 % When using |urldate|, normally a string is printed between the url
487 % itself and the the date, e.g., in English
488 % ``\url{http://www.dante.de}, visited on 2005-11-11''.
489 % The string is ``|, visited on |''.
490 % This is reached by the definition of the internal command
491 % \cs{btxurldatecomment}, e.g., for English
492 % \begin{verbatim}
493 %\def\btxurldatecomment#1{%
494 % \protect\foreignlanguage{english}{, visited on #1}%
495 %}\end{verbatim}
496 % You can change this command, for example, to typeset the date in
497 % brackets:
498 % \begin{verbatim}
499 %\declarebtxcommands{english}{%
500 % \def\btxurldatecomment#1{ [#1]}%
501 %}\end{verbatim}
502 % Be sure not to forget the leading space.
503 % It is necessary to be able to begin with a comma which does not have
504 % a space before it.
505 %
506 %
507 % \subsection{ISBN and ISSN}
508 %
509 % \DescribeMacro{\btxISBN}%
510 % \DescribeMacro{\btxISSN}%
511 % There are two additional commands, \cs{btxISBN} and \cs{btxISSN}.
512 % They generate the strings ``ISBN'' and ``ISSN'' in bibliographies.
513 % By default, they do it without a change of the font.
514 % For example, if using oldstyle digits, it could be worth to change
515 % them e.\,g.\ to
516 % \begin{verbatim}
517 %\renewcommand\btxISBN{\textsc{isbn}}
518 %\renewcommand\btxISSN{\textsc{issn}}\end{verbatim}
519 %
520 % \DescribeMacro{\btxprintISBN}%
521 % \DescribeMacro{\btxprintISSN}%
522 % By default, the ISBN resp.\ ISSN is printed if present in the data
523 % base.
524 % You can switch this behaviour off by using \cs{btxprintISBN\{false\}}
525 % resp.\ \cs{btxprintISSN\{false\}}.
526 % Similarly, printing is switched on by \cs{btxprintISBN\{true\}}
527 % resp.\ \cs{btxprintISSN\{true\}}.
528 % Alternatively, you can switch on or off the ISBN and ISSN when
529 % loading the package by using the package options |isbn|, |noisbn|,
530 % |issn|, or |noissn|.
531 %
532 % This, however, only works for the ``standard'' styles, i.\,e., not for
533 % the \AmS\ style |babamspl|.
534 %
535 % If you are using |babamspl|, the language names of the citations are
536 % printed by default, as the original \AmS\ style does it.
537 % You can avoid this by adding following line to your preamble:
538 % \begin{verbatim}
539 %\newcommand\btxprintamslanguage[1]{}\end{verbatim}
540 %
541 %
542 % \subsection{Spaces between forenames}
543 %
544 % \DescribeMacro{\btxfnamespaceshort}%
545 % \DescribeMacro{\btxfnamespacelong}%
546 % The spaces between multiple forenames are written by
547 % \cs{btxfnamespacelong} and \cs{btxfnamespaceshort} for full and
548 % abbreviated forenames, respectively.
549 % By default, a normal space is used between full forenames, and a
550 % thin space (\cs{,}) is used between abbreviated forenames (with the
551 % exception English where no space is printed).
552 % These defaults can be changed language-dependent:
553 % \begin{verbatim}
554 %\declarebtxcommands{english}{%
555 % \def\btxfnamespaceshort{\,}%
556 % \def\btxfnamespacelong{~}%
557 %}\end{verbatim}
558 %
559 %
560 % \subsection{Edition numbers}
561 %
562 % Ordinal numbers for editions are handled by \LaTeX\ when typesetting
563 % the bibliography.
564 % You just have to give the number itself in the |bib| file and it is
565 % typeset correctly in the bibliography, e.g.,
566 % \begin{verbatim}
567 %edition = 3\end{verbatim}
568 % is typeset as "`3."' in German and ``3rd'' in English.
569 % For some other languages, corresponding definitions are included in
570 % this package as well.
571 % Unfortunately, I do not know about some languages how to write
572 % ordinal numbers.
573 % Thus, in some languages, a warning is produced and the given
574 % number is printed without a change (``3'' in the example).
575 % If not a pure number is given, it also is typeset without a change.
576 % You can add or change the output of edition numbers on a language
577 % basis, e.g.,
578 % \begin{verbatim}
579 %\declarebtxcommands{english}{%
580 % \def\btxnumeralshort#1{%
581 % \btxnumeralenglish{english}{#1}}%
582 % \def\btxnumerallong#1{%
583 % \ifnumber{#1}{%
584 % \ifcase#1 0th\or first\or second\or third\or forth\or fifth\or
585 % sixth\or seventh\or eighth\or nineth\or tenth\else
586 % \btxnumeralenglish{english}{#1}%
587 % \fi}{#1}}%
588 %}\end{verbatim}
589 % This example typesets the ordinals between 1st and 10th as words and
590 % switches to the short form for larger numbers in English language
591 % for the long version and uses the default function for the short
592 % version.
593 %
594 % Three output formats are predefined:
595 % \cs{btxnumeraldot} prints the number with a dot followed, as
596 % it is common in German.
597 % \cs{btxnumeralenglish} adds ``st'', ``nd'', ``rd'', or
598 % ``th'', depending on the number.
599 % And \cs{btxnumeralfallback} generates a warning and prints
600 % the number as given.
601 %
602 % If you, for instance, want to switch the Danish behaviour to be as
603 % the German is, use these commands:
604 % \begin{verbatim}
605 %\declarebtxcommands{danish}{%
606 % \def\btxnumeralshort#1{\btxnumeraldot{danish}{#1}}%
607 % \def\btxnumerallong#1{\btxnumeraldot{danish}{#1}}%
608 %}\end{verbatim}
609 %
610 % For the English variant, a font |numeral| is predefined that
611 % typesets the appended characters.
612 % If you, for example, want to print the superscripted, use
613 % \begin{verbatim}
614 %\setbibliographyfont{numeral}{\textsuperscript}\end{verbatim}
615 %
616 % If you know how numerals are handled in a language, please send me
617 % an eMail.
618 %
619 %
620 % \subsection{Printing of month and year}
621 %
622 % \DescribeMacro{datename}%
623 % Starting with version 1.29, |babelbib| prints dates in the format
624 % ``MMM YYYY' with the name of the month in case the month is
625 % specified in an bibliography entry by default (or by using the
626 % package option |datename|).
627 % For example,
628 % \begin{verbatim}
629 %@Manual{baeker1998a,
630 % title = {Automatische Neuvernetzung mit ABAQUS/Standard -- Technik
631 % und Anwendungen},
632 % author = {B\"aker, M.},
633 % organization = {Institut f\"ur Werkstoffe, Technische Universit\"at
634 % Braunschweig},
635 % address = {Braunschweig},
636 % month = oct,
637 % year = 1998,
638 % language = {ngerman}
639 %}
640 %
641 %@TechReport{aurenhammer1996a,
642 % author = {Aurenhammer, F. and Klein, R.},
643 % title = {Voronoi Diagrams},
644 % institution = {FernUniversit\"at Gesamthochschule in Hagen},
645 % year = 1996,
646 % number = 198,
647 % month = 5,
648 % language = {english}
649 %}\end{verbatim}
650 % results in
651 % \begingroup
652 % \def\section*#1{}
653 % \begin{thebibliography}{1}
654 % \providebibliographyfont{name}{}%
655 % \providebibliographyfont{title}{\emph}%
656 % \providebibliographyfont{etal}{\emph}%
657 % \providebibliographyfont{volume}{}%
658 % \providebibliographyfont{ISBN}{\MakeUppercase}%
659 % \providebibliographyfont{ISSN}{\MakeUppercase}%
660 % \providebibliographyfont{url}{\url}%
661 %
662 % \btxselectlanguage {ngerman}
663 % \bibitem {baeker1998a}
664 % \btxnamefont {\btxlastnamefont {B\"aker}, M.}\btxauthorcolon\ \btxtitlefont
665 % {Automatische Neuvernetzung mit ABAQUS/Standard -- Technik und Anwendungen}.
666 % \newblock Institut f\"ur Werkstoffe, Technische Universit\"at Braunschweig,
667 % Braunschweig, \btxprintmonthyear{.}{10}{1998}{long}.
668 %\bibitem {aurenhammer1996a}
669 %\btxnamefont {\btxlastnamefont {Aurenhammer}, F.} \btxandlong {}\ \btxnamefont
670 % {R. \btxlastnamefont {Klein}}\btxauthorcolon\ \btxtitlefont
671 % {\btxifchangecase {Voronoi diagrams}{Voronoi Diagrams}}.
672 % \newblock \Btxtechreplong {}\ 198, FernUniversit\"at Gesamthochschule
673 % in Hagen,
674 % \btxprintmonthyear{.}{5}{1996}{long}.
675 % \end{thebibliography}
676 % \endgroup
677 % Note that this conversion only works if you specify the month using
678 % the predefined macro names |jan|, |feb|, etc.\ or if you specify the
679 % month numerically (|1|, |2|, |3|, etc.).
680 % If you use strings (e.\,g., ``January''), the handling of months
681 % does not work so that month and year are printed as given in any
682 % case.
683 %
684 % Whether the full name (e.\,g., ``October'') or an abbreviation
685 % (e.\,g., ``Oct.'') is printed, is determined by the bibliography
686 % style (|.bst|).
687 %
688 %
689 % \DescribeMacro{datenumeric}%
690 % By loading |babelbib| with the package option |datenumeric|, the
691 % month is converted to a number.
692 % Currently, the output format is ``MM/YYYY'' in all languages.
693 % The result looks as follows:
694 % \begingroup
695 % \def\section*#1{}
696 % \makeatletter
697 % \btx@datenumeric
698 % \makeatother
699 % \begin{thebibliography}{1}
700 % \providebibliographyfont{name}{}%
701 % \providebibliographyfont{title}{\emph}%
702 % \providebibliographyfont{etal}{\emph}%
703 % \providebibliographyfont{volume}{}%
704 % \providebibliographyfont{ISBN}{\MakeUppercase}%
705 % \providebibliographyfont{ISSN}{\MakeUppercase}%
706 % \providebibliographyfont{url}{\url}%
707 %
708 % \btxselectlanguage {ngerman}
709 % \bibitem {baeker1998b}
710 % \btxnamefont {\btxlastnamefont {B\"aker}, M.}\btxauthorcolon\ \btxtitlefont
711 % {Automatische Neuvernetzung mit ABAQUS/Standard -- Technik und Anwendungen}.
712 % \newblock Institut f\"ur Werkstoffe, Technische Universit\"at Braunschweig,
713 % Braunschweig, \btxprintmonthyear{.}{10}{1998}{long}.
714 %\bibitem {aurenhammer1996b}
715 %\btxnamefont {\btxlastnamefont {Aurenhammer}, F.} \btxandlong {}\ \btxnamefont
716 % {R. \btxlastnamefont {Klein}}\btxauthorcolon\ \btxtitlefont
717 % {\btxifchangecase {Voronoi diagrams}{Voronoi Diagrams}}.
718 % \newblock \Btxtechreplong {}\ 198, FernUniversit\"at Gesamthochschule
719 % in Hagen,
720 % \btxprintmonthyear{.}{5}{1996}{long}.
721 % \end{thebibliography}
722 % \endgroup
723 %
724 % \DescribeMacro{\btxprintmonthyearnum}%
725 % If you don't like the used format, you might change it by redefining
726 % the macro \cs{btxprintmonthyearnum} for your language as follows:
727 % \begin{verbatim}
728 %\declarebtxcommands{danish}{%
729 % \def\btxprintmonthyearnum#1#2{#1-#2}%
730 %}\end{verbatim}
731 % Here, the first argument is the month, the second the year.
732 %
733 % \DescribeMacro{dateasis}%
734 % By loading |babelbib| with the package option |dateasis|, the month
735 % is printed as specified in the |bib| file in the format ``MMM YYYY''.
736 % Beware that the internal macro names |jan|, |feb|, etc.\ are handled
737 % as numbers so that following output is gained:
738 % \begingroup
739 % \def\section*#1{}
740 % \makeatletter
741 % \btx@dateasis
742 % \makeatother
743 % \begin{thebibliography}{1}
744 % \providebibliographyfont{name}{}%
745 % \providebibliographyfont{title}{\emph}%
746 % \providebibliographyfont{etal}{\emph}%
747 % \providebibliographyfont{volume}{}%
748 % \providebibliographyfont{ISBN}{\MakeUppercase}%
749 % \providebibliographyfont{ISSN}{\MakeUppercase}%
750 % \providebibliographyfont{url}{\url}%
751 %
752 % \btxselectlanguage {ngerman}
753 % \bibitem {baeker1998c}
754 % \btxnamefont {\btxlastnamefont {B\"aker}, M.}\btxauthorcolon\ \btxtitlefont
755 % {Automatische Neuvernetzung mit ABAQUS/Standard -- Technik und Anwendungen}.
756 % \newblock Institut f\"ur Werkstoffe, Technische Universit\"at Braunschweig,
757 % Braunschweig, \btxprintmonthyear{.}{10}{1998}{long}.
758 %\bibitem {aurenhammer1996c}
759 %\btxnamefont {\btxlastnamefont {Aurenhammer}, F.} \btxandlong {}\ \btxnamefont
760 % {R. \btxlastnamefont {Klein}}\btxauthorcolon\ \btxtitlefont
761 % {\btxifchangecase {Voronoi diagrams}{Voronoi Diagrams}}.
762 % \newblock \Btxtechreplong {}\ 198, FernUniversit\"at Gesamthochschule
763 % in Hagen,
764 % \btxprintmonthyear{.}{5}{1996}{long}.
765 % \end{thebibliography}
766 % \endgroup
767 %
768 %
769 %
770 % \section{How to add new languages}
771 %
772 % The language definitions are placed in special files with the
773 % extension |.bdf|.
774 % If you want to add a new language to the |babelbib| system, you
775 % should copy one of the existing |bdf| files and change the new
776 % file.
777 % Make sure to use an existing |bdf| file of the most recent babelbib
778 % version.
779 %
780 % Since |babelbib.sty| contains a list of known languages, it will not
781 % find the new language definition file, automatically.
782 % Then, you can give the name of the new file without extension as an
783 % option when loading |babelbib|.
784 % For example, to load |mylang.bdf|, you have to load the package as
785 % follows:
786 % \begin{verbatim}
787 %\usepackage[mylang]{babelbib}\end{verbatim}
788 %
789 % If you have developed a new |bdf| file, please send it to
790 % |[email protected]|.
791 % Then, I will add it to the |babelbib| system.
792 %
793 % \section{Problems and Incompatibilities}
794 %
795 % \begin{itemize}
796 % \item
797 % Babelbib does not work together with old versions of the
798 % |frenchle| package prior V5,987.
799 % Please update the frenchle package or use the native babel support
800 % for the French language, instead.
801 % \end{itemize}
802 %
803 % \section{To Do}
804 %
805 % \begin{itemize}
806 % \item Add more languages.
807 % \item Complete Dutch.
808 % \item Add the possibility to switch off ISBN and ISSN to |babasmpl|.
809 % \end{itemize}
810 %
811 %
812 % \section*{Acknowledgements}
813 %
814 % Danie Els, \url{[email protected]} (Afrikaans);
815 % Taneli Huuskonen, \url{[email protected]} (Esperanto, Finnish);
816 % V\'\i ctor Lua\~na, \url{[email protected]} (Spanish);
817 % Hans Fredrik Nordhaug, \url{[email protected]} (Norwegian, Swedish);
818 % Robert Fuster, \url{[email protected]} (Catalan);
819 % Markus Kohm, \url{[email protected]} (Different schemes for writing names);
820 % Matthias D. Eisner, \url{[email protected]} (protect
821 % \cs{foreignlanguage} calls);
822 % Daniel Winkelmann, \url{[email protected]}
823 % (idea for different formatting of forenames and lastnames);
824 % Jan Steffan, \url{[email protected]} (\cs{setbtxfallbacklanguage});
825 % Philip Ratcliffe, \url{[email protected]} (corrections for
826 % Italian); Angel Tsankov, \url{[email protected]} (bugfix with
827 % \cs{bbbb\meta{\cs{CurrentOption}}loaded});
828 % Prokopis Prokopidis, \url{[email protected]} (Greek);
829 % Daniel Flipo, \url{[email protected]} (French numerals);
830 % Ignacio Fern\'andez Galv\'an, \url{[email protected]} (Spanish
831 % numerals);
832 % Peter Bartke, \url{[email protected]} (idea of annote field);
833 % Yanti Yulianti, \url{[email protected]} (Bahasa);
834 % Miguel Rodr{\'\i}guez Penabad, \url{[email protected]} (Galician);
835 % Jos\'e Carlos Santos, \url{[email protected]} (Portuguese);
836 % Iago Qui\~nones, \url{[email protected]} (bugfix for Spanish);
837 % Erik \"Osthols, \url{[email protected]} (Swedish);
838 % Zoran Filipovic, \url{[email protected]} (Serbian);
839 % Andrei Dragomirescu, \url{[email protected]};
840 % Tomas Hnizdil, \url{[email protected]};
841 % Markus Kohm, \url{[email protected]} (bug with explicitely loaded
842 % language);
843 % Timo Kalliom\"aki <[email protected]> (Finnish, \cs{btxjvolume}).
844 %
845 % Furthermore, I thank the person who provided Russian.
846 % Unfortunately, I cannot find the name anymore.
847 %
848 %\begin{thebibliography}{1}
849 % \providebibliographyfont{name}{}%
850 % \providebibliographyfont{title}{\emph}%
851 % \providebibliographyfont{etal}{\emph}%
852 % \providebibliographyfont{volume}{}%
853 % \providebibliographyfont{ISBN}{\MakeUppercase}%
854 % \providebibliographyfont{ISSN}{\MakeUppercase}%
855 % \providebibliographyfont{url}{\url}%
856 %
857 %\selectlanguage{\english}
858 %\bibitem{babel}
859 %\btxnamefont{Braams, Johannes}: \btxtitlefont{Babel, a multilingual package
860 % for use with \LaTeX's standard document classes}, 2002.
861 %\newblock \btxurlfont{CTAN:macros/latex/required/babel/}.
862 %
863 %\selectlanguage{\english}
864 %\bibitem{germbib}
865 %\btxnamefont{Wallmeier, M.}, A.~Scherer\btxandcomma{} \btxandlong{}\
866 % \btxnamefont{H.~Harders}: \btxtitlefont{Macros for german {\BibTeX}ing},
867 % 2000.
868 %\newblock \btxurlfont{CTAN:biblio/bibtex/contrib/germbib/}.
869 %
870 %\end{thebibliography}
871 %
872 % \StopEventually{\PrintChanges \PrintIndex}
873 %
874 %
875 % \section{The implementation}
876 %
877 % Source lines that look like \texttt{$\langle$*...$\rangle$} or
878 % \texttt{$\langle$/...$\rangle$} where \texttt{...} is arbitrary text
879 % are not written into the output files.
880 % If a source line starts with \texttt{$\langle$...$\rangle$}, this
881 % part of the line is omitted.
882 %
883 % \subsection{Headings of the files}
884 %
885 % Heading of the package and the other files:
886 % \begin{macrocode}
887 %<*package>
888 \NeedsTeXFormat{LaTeX2e}[1998/06/01]
889 \ProvidesPackage{babelbib}
890 %</package>
891 % \end{macrocode}
892 % File heads of the |bdf| files:
893 % \begin{macrocode}
894 %<afrikaans>%% Language definitions for Afrikaans by
895 %<afrikaans>%% Danie Els <[email protected]>
896 %<afrikaans>\ProvidesFile{afrikaans.bdf}
897 %<bahasa>%% Language definitions for Bahasa by
898 %<bahasa>%% Yanti Yulianti <[email protected]>
899 %<bahasa>\ProvidesFile{bahasa.bdf}
900 %<catalan>%% Language definitions for Catalan by
901 %<catalan>%% Robert Fuster <[email protected]>
902 %<catalan>\ProvidesFile{catalan.bdf}
903 %<croatian>%% Language definitions for Croatian by
904 %<croatian>%% Vedran Mileti\'c <[email protected]>,
905 %<croatian>%% Ivan Kokan <[email protected]>,
906 %<croatian>%% Ivica Naki\'c <[email protected]>
907 %<croatian>\ProvidesFile{croatian.bdf}
908 %<czech>%% Language definitions for Czech by
909 %<czech>%% Tomas Hnizdil <[email protected]>
910 %<czech>\ProvidesFile{czech.bdf}
911 %<danish>\ProvidesFile{danish.bdf}
912 %<dutch>\ProvidesFile{dutch.bdf}
913 %<english>\ProvidesFile{english.bdf}
914 %<esperanto>%% Language definitions for Esperanto by
915 %<esperanto>%% Taneli Huuskonen <[email protected]>
916 %<esperanto>\ProvidesFile{esperanto.bdf}
917 %<finnish>%% Language definitions for Finnish by
918 %<finnish>%% Taneli Huuskonen <[email protected]> and
919 %<finnish>%% Timo Kalliom\"aki <[email protected]>
920 %<finnish>\ProvidesFile{finnish.bdf}
921 %<french>\ProvidesFile{french.bdf}
922 %<galician>%% Language definitions for Galician by
923 %<galician>%% Miguel Rodr{\'\i}guez Penabad <[email protected]>
924 %<galician>\ProvidesFile{galician.bdf}
925 %<german>\ProvidesFile{german.bdf}
926 %<greek>\ProvidesFile{greek.bdf}
927 %<greek>%% Language definitions for Greek by
928 %<greek>%% Prokopis Prokopidis <[email protected]>
929 %<italian>\ProvidesFile{italian.bdf}
930 %<norsk>%% Language definitions for Norwegian by
931 %<norsk>%% Hans Fredrik Nordhaug <[email protected]>
932 %<norsk>\ProvidesFile{norsk.bdf}
933 %<portuguese>%% Language definitions for Portuguese by
934 %<portuguese>%% Jos\'e Carlos Santos <[email protected]>
935 %<portuguese>\ProvidesFile{portuguese.bdf}
936 %<romanian>%% Language definitions for Romanian by
937 %<romanian>%% Andrei Dragomirescu <[email protected]>
938 %<romanian>\ProvidesFile{romanian.bdf}
939 %<russian>%% Language definitions for Russian by
940 %<russian>%% ... (can't find the information. If it was you please tell me!)
941 %<russian>\ProvidesFile{russian.bdf}
942 %<serbian>%% Language definitions for Serbian by
943 %<serbian>%% Zoran Filipovic <[email protected]>
944 %<serbian>\ProvidesFile{serbian.bdf}
945 %<spanish>%% Language definitions for Spanish by
946 %<spanish>%% V{\'\i}ctor Lua{\~n}a <[email protected]>
947 %<spanish>\ProvidesFile{spanish.bdf}
948 %<swedish>%% Language definitions for Swedish by
949 %<swedish>%% Hans Fredrik Nordhaug <[email protected]> and
950 %<swedish>%% Erik \"Osthols <[email protected]>
951 %<swedish>\ProvidesFile{swedish.bdf}
952 %<turkish>%% Language definitions for Turkish by
953 %<turkish>%% Ahmed Zahid Demirciler <[email protected]>
954 %<turkish>\ProvidesFile{turkish.bdf}
955 % \end{macrocode}
956 % Version information unique for all generated files:
957 % \begin{macrocode}
958 %<latex> [2021/01/06 v1.34 babelbib: multilingual bibliographies]
959 %<bst>%% 2021/01/06 v1.34 babelbib: multilingual bibliographies
960 % \end{macrocode}
961 %
962 % \subsection{The package itself}
963 %
964 % \begin{macro}{\bbbbifpackageloaded}
965 % \changes{1.34}{2021/01/06}{Bug with explicitely loaded language fixed}%
966 % Define a copy of \cs{@ifpackageloaded} without \@\ in the name to avoid
967 % issues with bdf files loaded either within the package or outside.
968 % \begin{macrocode}
969 %<*package>
970 \let\bbbbifpackageloaded=\@ifpackageloaded
971 % \end{macrocode}
972 % \end{macro}
973 % \index{fixlanguage=\texttt{fixlanguage}|main}%
974 % Define an option which fixes the language in the bibliography to the
975 % main language of the document.
976 % \begin{macrocode}
977 \newif\ifbbbbfixlanguage
978 \DeclareOption{fixlanguage}{\bbbbfixlanguagetrue}
979 \DeclareOption{varlanguage}{\bbbbfixlanguagefalse}
980 % \end{macrocode}
981 % \changes{0.2}{2003/04/20}{Added option \texttt{languagenames} to
982 % define commands for language names}%
983 % \index{languagenames=\texttt{languagenames}|main}%
984 % If this option is used, generate the commands
985 % \cs{btxlanguagename}\meta{language} that save how languages are
986 % called in other languages, e.\,g. in German, French is called
987 % \foreignlanguage{ngerman}{"`franz\"osisch"'}.
988 % \begin{macrocode}
989 \newif\ifbbbblanguagenames
990 \DeclareOption{nolanguagenames}{\bbbblanguagenamesfalse}
991 \DeclareOption{languagenames}{\bbbblanguagenamestrue}
992 % \end{macrocode}
993 % \begin{macrocode}
994 \newif\ifbbbbannotations
995 \DeclareOption{annote}{\bbbbannotationstrue}
996 \DeclareOption{noannote}{\bbbbannotationsfalse}
997 % \end{macrocode}
998 % \begin{macro}{\ifbtx@printISBN}
999 % \begin{macro}{\ifbtx@printISSN}
1000 % The booleans that store the necessary information if ISBN and ISSN
1001 % shall be printed.
1002 % \begin{macrocode}
1003 \newif\ifbtx@printISBN
1004 \newif\ifbtx@printISSN
1005 \DeclareOption{isbn}{\btx@printISBNtrue}
1006 \DeclareOption{noisbn}{\btx@printISBNfalse}
1007 \DeclareOption{issn}{\btx@printISSNtrue}
1008 \DeclareOption{noissn}{\btx@printISSNfalse}
1009 % \end{macrocode}
1010 % \end{macro}
1011 % \end{macro}
1012 %
1013 % \begin{macro}{\bbbbifundefined}
1014 % \begin{macrocode}
1015 \newcommand\btxprintmonthyear[4]{}
1016 \newcommand*\btx@dateasis{%
1017 \def\btxprintmonthyear##1##2##3##4{##2\ ##3}%
1018 }
1019 \newcommand*\btx@datenumeric{%
1020 \def\btxprintmonthyear##1##2##3##4{%
1021 \ifnumber{##2}{\btxprintmonthyearnum{##2}{##3}}{##2\ ##3}}%
1022 }
1023 \newcommand*\btx@datename{%
1024 \def\btxprintmonthyear##1##2##3##4{%
1025 \ifnumber{##2}{%
1026 \ifcase ##2 \or
1027 \csname btxmonjan##4\endcsname{##1}\or
1028 \csname btxmonfeb##4\endcsname{##1}\or
1029 \csname btxmonmar##4\endcsname{##1}\or
1030 \csname btxmonapr##4\endcsname{##1}\or
1031 \csname btxmonmay##4\endcsname{##1}\or
1032 \csname btxmonjun##4\endcsname{##1}\or
1033 \csname btxmonjul##4\endcsname{##1}\or
1034 \csname btxmonaug##4\endcsname{##1}\or
1035 \csname btxmonsep##4\endcsname{##1}\or
1036 \csname btxmonoct##4\endcsname{##1}\or
1037 \csname btxmonnov##4\endcsname{##1}\or
1038 \csname btxmondec##4\endcsname{##1}\or
1039 \PackageError{babelbib}{%
1040 Month outside range 1 to 12 used}{%
1041 Better use the BibTeX names jan, feb, mar, etc.}%
1042 \fi
1043 \ ##3%
1044 }{%
1045 ##2\ ##3}%
1046 }%
1047 }
1048 \DeclareOption{dateasis}{\btx@dateasis}
1049 \DeclareOption{datenumeric}{\btx@datenumeric}
1050 \DeclareOption{datename}{\btx@datename}
1051 % \end{macrocode}
1052 % \end{macro}
1053 % If additional options are given, try to load these as
1054 % languages. This is implemented in order to be able to use a new
1055 % language that is not yet supported by the official |babelbib|.
1056 % \changes{1.15}{2005/09/01}{Small bug fix in loading language files}%
1057 % \begin{macrocode}
1058 \DeclareOption*{%
1059 \InputIfFileExists{\CurrentOption.bdf}{%
1060 \typeout{babelbib: \CurrentOption.bdf loaded due to explicit package
1061 option \CurrentOption}%
1062 \expandafter\def\csname bbbb\CurrentOption loaded\endcsname{\@empty}%
1063 }{%
1064 \PackageError{babelbib}{%
1065 Language definition file \CurrentOption.bdf not found}{%
1066 Maybe you misspelled the language option?}%
1067 }%
1068 }
1069 % \end{macrocode}
1070 % Default options.
1071 % \begin{macrocode}
1072 \ExecuteOptions{varlanguage,nolanguagenames,noannote,isbn,issn,datename}
1073 % \end{macrocode}
1074 % Process the given options.
1075 % \begin{macrocode}
1076 \ProcessOptions*
1077 % \end{macrocode}
1078 % \begin{macro}{\bbbbifundefined}
1079 % Define a replacement for \cs{@ifundefined} that does not define the
1080 % command it is tested for as side effect.
1081 % This command has been taken from a news posting by Markus Kohm
1082 % (|[email protected]|).
1083 % \begin{macrocode}
1084 \newcommand*{\bbbbifundefined}[1]{%
1085 \begingroup\expandafter\expandafter\expandafter\endgroup
1086 \expandafter\ifx\csname #1\endcsname\relax
1087 \expandafter\@firstoftwo
1088 \else
1089 \expandafter\@secondoftwo
1090 \fi
1091 }
1092 % \end{macrocode}
1093 % \end{macro}
1094 % \begin{macro}{\bbbbaddto}
1095 % Adds the command named |\bibs#2| to the command |\extras#1|, if this
1096 % command is defined before, where |#1| and |#2| are the arguments of
1097 % |\bbbbaddto|. For internal use only.
1098 % \changes{0.32}{2003/05/06}{Changed \cs{bbbbaddto} in order to allow
1099 % different commands to be added to \cs{extras}\meta{language}}%
1100 % \begin{macrocode}
1101 \newcommand\bbbbaddto[2]{%
1102 % \end{macrocode}
1103 % Test whether |\extras#1| is defined.
1104 % \begin{macrocode}
1105 \expandafter\bbbbifundefined{extras#1}{}{%
1106 % \end{macrocode}
1107 % Call |babel|'s command to append |\bibs#1| to |\extras#1|.
1108 % \begin{macrocode}
1109 \expandafter\addto\expandafter{\csname extras#1\endcsname}{%
1110 \csname #2\endcsname}%
1111 \typeout{babelbib extension \@backslashchar #2 added to
1112 \string\extras #1}%
1113 }%
1114 }
1115 % \end{macrocode}
1116 % \end{macro}
1117 % \begin{macro}{\inputbdf}
1118 % Input the file |#2.bdf| if babel has loaded the language |#1|.
1119 % For internal use only.
1120 % \begin{macrocode}
1121 \newcommand\inputbdf[2]{%
1122 % \end{macrocode}
1123 % \changes{0.43}{2004/01/05}{Test on \cs{date}\meta{language} instead on
1124 % \cs{l@}\meta{language} (caused problems with \TeX Live)}%
1125 % Test whether |\date#1| is defined which is the case if the language
1126 % |#1| has been loaded.
1127 % \begin{macrocode}
1128 \bbbbifundefined{date#1}{}{%
1129 % \end{macrocode}
1130 % Input |#2.bdf|.
1131 % \begin{macrocode}
1132 \@ifundefined{bbbb#2loaded}{%
1133 \expandafter\def\csname bbbb#2loaded\endcsname{\@empty}%
1134 \typeout{babelbib: #2.bdf loaded because language #2 defined.}%
1135 \input{#2.bdf}%
1136 }{}%
1137 }%
1138 }
1139 % \end{macrocode}
1140 % \end{macro}
1141 % \begin{macro}{\selectbiblanguage}
1142 % \changes{0.3}{2003/04/21}{Handling of usage before or after
1143 % \texttt{begin\{document\}} added}%
1144 % Define |\selectbiblanguage| which explicitly selects the language
1145 % for the bibliography. This is only useful when the option
1146 % |fixlanguage| is used.
1147 % Otherwise the command produces a warning and does nothing else.
1148 %
1149 % Since all the language dependent macros are not know before
1150 % |\begin{document}|, the command |\selectbiblanguage| has to wait
1151 % until there, before doing any action.
1152 % Because after |\begin{document}|, it can do the action immediately,
1153 % |\selectbiblanguge| has to be redefined there.
1154 % \begin{macrocode}
1155 \ifbbbbfixlanguage
1156 % \end{macrocode}
1157 % Define the |\selectlanguage| command for usage before
1158 % |\begin{document}|.
1159 % \begin{macrocode}
1160 \newcommand\selectbiblanguage[1]{%
1161 \AtBeginDocument{\@selectbiblanguage{#1}}%
1162 }
1163 % \end{macrocode}
1164 % Redefine it at |\begin{document}|.
1165 % \begin{macrocode}
1166 \AtBeginDocument{%
1167 \renewcommand\selectbiblanguage[1]{\@selectbiblanguage{#1}}%
1168 }
1169 % \end{macrocode}
1170 % Define the ``real'' command that does the action.
1171 % It tests whether |\bibs#1| and |\extras#1| are known and produces
1172 % error messages if not.
1173 % If everything is okay, change the bibliography language.
1174 % \begin{macrocode}
1175 \newcommand\@selectbiblanguage[1]{%
1176 \bbbbifundefined{bibs#1}{%
1177 \bbbbifundefined{date#1}{%
1178 \PackageError{babelbib}{Language #1 in bibliography not loaded
1179 by babel}{%
1180 The language #1 hasn't been loaded by babel.
1181 Add it to the\MessageBreak
1182 options of the \string\usepackage{babel} command or to the
1183 global options.}%
1184 }{%
1185 \PackageError{babelbib}{Language #1 in bibliography unknown by
1186 babelbib}{%
1187 There are no definitions for #1 available in the
1188 current\MessageBreak
1189 version of babelbib. Please contact [email protected].}%
1190 }%
1191 }{%
1192 \typeout{babelbib: Set language for keywords in the bibliography fixed to #1}%
1193 \csname bibs#1\endcsname
1194 }%
1195 }
1196 \else
1197 \newcommand\selectbiblanguage[1]{%
1198 \PackageWarning{babelbib}{Command \string\selectbiblanguage\space
1199 used without package\MessageBreak
1200 option fixlanguage. Ignored}%
1201 }
1202 \AtBeginDocument{%
1203 \typeout{babelbib: Use citation-dependent languages in bibliography}%
1204 }
1205 \fi
1206 % \end{macrocode}
1207 % \end{macro}
1208 % \begin{macro}{\btxselectlanguage}
1209 % \changes{0.2}{2003/04/20}{Added}%
1210 % Define |\selectbiblanguage| which selects a language and complains
1211 % if babelbib does not know about this language.
1212 % For internal use, only.
1213 % \begin{macrocode}
1214 \newcommand\btxselectlanguage[1]{%
1215 \bbbbifundefined{bibs#1}{%
1216 \bbbbifundefined{date#1}{%
1217 \PackageError{babelbib}{Language #1 in bibliography not loaded
1218 by babel}{%
1219 The language #1 hasn't been loaded by babel.
1220 Add it to the\MessageBreak
1221 options of the \string\usepackage{babel} command or to the
1222 global options.}%
1223 }{%
1224 \ifbbbbfixlanguage
1225 \PackageWarning{babelbib}{Language #1 in bibliography
1226 unknown\MessageBreak
1227 by babelbib. Hyphenation will be\MessageBreak
1228 incorrect}%
1229 \else
1230 \PackageError{babelbib}{Language #1 in bibliography unknown by
1231 babelbib}{%
1232 There are no definitions for #1 available in the
1233 current\MessageBreak
1234 version of babelbib. Please contact [email protected].}%
1235 \fi
1236 }%
1237 }{%
1238 \csname extras#1\endcsname
1239 \selectlanguage{#1}%
1240 }%
1241 }
1242 % \end{macrocode}
1243 % \end{macro}
1244 % \begin{macro}{\biblanguage}
1245 % \changes{1.15}{2005/09/01}{Add \cs{biblanguage} that switches to the
1246 % keyword language within a field}%
1247 % Define \cs{biblanguage} which switches to the keyword language
1248 % within a field.
1249 % \begin{macrocode}
1250 \newcommand\biblanguage[1]{{%
1251 \expandafter\selectlanguage\expandafter{\biblanguagename}#1}}
1252 % \end{macrocode}
1253 % \end{macro}
1254 % \begin{macro}{\btxlanguagename}
1255 % \changes{0.2}{2003/04/20}{Added}%
1256 % Define |\btxlanguagename| which typesets the name of the language
1257 % given in the argument, spoken in the current active language.
1258 % \begin{macrocode}
1259 \newcommand\btxlanguagename[1]{%
1260 \bbbbifundefined{btxlanguagename#1}{%
1261 \PackageError{babelbib}{Languagename for #1 not
1262 defined\MessageBreak
1263 in \languagename\space language}{%
1264 Either you have forgotten to specify the option `languagenames'
1265 when loading\MessageBreak
1266 babelbib, or the command \string\bibs\languagename\space does
1267 not contain a definition\MessageBreak
1268 for the command \string\btxlanguagename#1.
1269 In the latter case, please\MessageBreak
1270 contact [email protected].}%
1271 #1%
1272 }{%
1273 \@nameuse{btxlanguagename#1}%
1274 }%
1275 }
1276 % \end{macrocode}
1277 % \end{macro}
1278 % \begin{macro}{\setbtxfallbacklanguage}
1279 % \changes{1.12}{2005/06/19}{Add the command \cs{setbtxfallbacklanguage}
1280 % to force a fall-back language}%
1281 % \begin{macrocode}
1282 \newcommand*\setbtxfallbacklanguage[1]{%
1283 \edef\btxfallbacklanguage{#1}%
1284 \typeout{babelbib: Set bibliography fall-back language to
1285 \btxfallbacklanguage}%
1286 }
1287 % \end{macrocode}
1288 % \end{macro}
1289 % \begin{macro}{\btxfallbacklanguage}
1290 % \changes{0.40}{2003/09/26}{Add the command \cs{btxfallbacklanguage}
1291 % for items without given language}%
1292 % \begin{macrocode}
1293 \AtBeginDocument{%
1294 \@ifundefined{btxfallbacklanguage}{%
1295 \edef\btxfallbacklanguage{\languagename}%
1296 \typeout{babelbib: Set bibliography fall-back language to
1297 \btxfallbacklanguage}%
1298 }{%
1299 \typeout{babelbib: Bibliography fall-back language unchanged
1300 (\btxfallbacklanguage)}%
1301 }%
1302 }
1303 % \end{macrocode}
1304 % \end{macro}
1305 % \begin{macro}{\declarebtxcommands}
1306 % \changes{0.3}{2003/04/21}{Added}%
1307 % Declare |\declarebtxcommands| which adds or replaces one or more of the
1308 % |\Btx| or |\btx| commands defined in a \cs{bibs}\meta{language}
1309 % command.
1310 % The first argument gives the language for which the commands shall
1311 % be added or changed.
1312 % The second argument includes the definitions of the commands.
1313 % For an example, see section~\ref{sec:usage}.
1314 % \begin{macrocode}
1315 \newcommand*\declarebtxcommands[2]{%
1316 \AtBeginDocument{%
1317 \typeout{babelbib: Add a command to \string\bibs#1}%
1318 \expandafter\g@addto@macro\csname bibs#1\endcsname{#2}%
1319 \ifbbbbfixlanguage
1320 \selectbiblanguage{\biblanguagename}%
1321 \fi
1322 }%
1323 }
1324 % \end{macrocode}
1325 % This command may only be used in the preamble.
1326 % \begin{macrocode}
1327 \@onlypreamble\declarebtxcommands
1328 % \end{macrocode}
1329 % \end{macro}
1330 % \begin{macro}{\btxifchangecaseon}
1331 % \begin{macro}{\btxifchangecaseoff}
1332 % \changes{0.32}{2003/05/06}{Move change of case from bst to sty}%
1333 % The bst files write titles twice, first with changed case and second
1334 % with preserved case.
1335 % The macros \cs{btxifchangecaseon} and \cs{btxifchangecaseoff}
1336 % typeset one of these versions.
1337 % The languages append one of these commands to the
1338 % \cs{extras}\meta{language} commands.
1339 % \begin{macrocode}
1340 \newcommand*\btxifchangecaseon{%
1341 \def\btxifchangecase{\@firstoftwo}%
1342 }%
1343 \newcommand*\btxifchangecaseoff{%
1344 \def\btxifchangecase{\@secondoftwo}%
1345 }%
1346 % \end{macrocode}
1347 % \end{macro}
1348 % \end{macro}
1349 % \begin{macro}{\setbibliographyfont}
1350 % \changes{0.2}{2003/04/20}{Don't change the font commands directly
1351 % but use this command}%
1352 % Define |\setbibliographyfont| and |\setbibliographyfont*| that set
1353 % the font declared by the first argument |#1| to the second argument
1354 % |#2|.
1355 % The second argument has to be a macro with one argument, like
1356 % |\textbf|, |\emph|, |\textsc|, etc.
1357 % The normal version generates an error, if the internal command
1358 % |\btx#1font| is not defined.
1359 % The star version doesn't.
1360 % error.
1361 % \begin{macrocode}
1362 \newcommand\setbibliographyfont{%
1363 \@ifnextchar*{\@@setbibliographyfont}{\@setbibliographyfont}%
1364 }
1365 % \end{macrocode}
1366 % \end{macro}
1367 % \begin{macro}{\@setbibliographyfont}
1368 % \begin{macrocode}
1369 \newcommand\@setbibliographyfont[2]{%
1370 \bbbbifundefined{btx#1font}{%
1371 \PackageError{babelbib}{Bibliography font `#1' can't be set}{%
1372 You have tried to define a font for the bibliographic element
1373 \MessageBreak
1374 `#1', which is unknown to babelbib}%
1375 }{%
1376 \expandafter\renewcommand\csname btx#1font\endcsname{#2}%
1377 \typeout{babelbib: Bibliography font for `#1' changed.}%
1378 }%
1379 }
1380 % \end{macrocode}
1381 % \end{macro}
1382 % \begin{macro}{\@@setbibliographyfont}
1383 % The first argument is the |*| and ignored.
1384 % \begin{macrocode}
1385 \newcommand\@@setbibliographyfont[3]{%
1386 \bbbbifundefined{btx#2font}{%
1387 \expandafter\newcommand\csname btx#2font\endcsname{#3}%
1388 \typeout{babelbib: Bibliography font for `#2' newly defined.}%
1389 }{%
1390 \expandafter\renewcommand\csname btx#2font\endcsname{#3}%
1391 \typeout{babelbib: Bibliography font for `#2' changed.}%
1392 }%
1393 }
1394 % \end{macrocode}
1395 % \end{macro}
1396 % \begin{macro}{\providebibliographyfont}
1397 % \changes{0.2}{2003/04/20}{Added}%
1398 % Define |\providebibliographyfont| and |\providebibliographyfont*|
1399 % that do the same as |\setbibliographyfont| and
1400 % |\setbibliographyfont*|, but only, if |\setbibliographyfont| has not
1401 % been used for |#1|, before.
1402 % It is similar to |\providecommmand| which only defines that command
1403 % if it is undefined, before.
1404 % This command is intended to be used by the \BibTeX\ style, but can
1405 % also be used by the user.
1406 % \begin{macrocode}
1407 \newcommand\providebibliographyfont{%
1408 \@ifnextchar*{\@@providebibliographyfont}{\@providebibliographyfont}%
1409 }
1410 % \end{macrocode}
1411 % \end{macro}
1412 % \begin{macro}{\@providebibliographyfont}
1413 % \begin{macrocode}
1414 \newcommand\@providebibliographyfont[2]{%
1415 \bbbbifundefined{btx#1font}{%
1416 \PackageError{babelbib}{Bibliography font `#1' can't be set}{%
1417 You have tried to define a font for the bibliographic element
1418 \MessageBreak
1419 `#1', which is unknown to babelbib}%
1420 }{%
1421 \expandafter\ifx\csname btx#1font\endcsname\@empty
1422 \expandafter\renewcommand\csname btx#1font\endcsname{#2}%
1423 \typeout{babelbib: Using the BibTeX style's default font for `#1'.}%
1424 \else
1425 \typeout{babelbib: Using user changed font for `#1'.}%
1426 \fi
1427 }%
1428 }
1429 % \end{macrocode}
1430 % \end{macro}
1431 % \begin{macro}{\@@setbibliographyfont}
1432 % The first argument is the |*| and ignored.
1433 % \begin{macrocode}
1434 \newcommand\@@providebibliographyfont[3]{%
1435 \bbbbifundefined{btx#2font}{%
1436 \expandafter\newcommand\csname btx#2font\endcsname{#3}%
1437 \typeout{babelbib: Using the BibTeX style's default font for `#2'.}%
1438 }{%
1439 \expandafter\ifx\csname btx#2font\endcsname\@empty
1440 \expandafter\renewcommand\csname btx#2font\endcsname{#3}%
1441 \typeout{babelbib: Using the BibTeX style's default font for `#2'.}%
1442 \else
1443 \typeout{babelbib: Using user changed font for `#2'.}%
1444 \fi
1445 }%
1446 }
1447 % \end{macrocode}
1448 % \end{macro}
1449 % \begin{macro}{\btxnamefont}
1450 % \changes{0.32}{2003/05/06}{Add new font for journal names}%
1451 % \changes{1.12}{2005/06/19}{Add new font \cs{btxlastname} for last
1452 % names}%
1453 % Define the dummy commands for available fonts
1454 % \begin{macrocode}
1455 \newcommand*\btxnamefont{}
1456 \let\btxnamefont=\@empty
1457 \newcommand*\btxlastnamefont{}
1458 \let\btxlastnamefont=\@empty
1459 \newcommand\btxtitlefont{}
1460 \let\btxtitlefont=\@empty
1461 \newcommand\btxjtitlefont{}
1462 \let\btxjtitlefont=\@empty
1463 \newcommand\btxetalfont{}
1464 \let\btxetalfont=\@empty
1465 \newcommand\btxjournalfont{}
1466 \let\btxjournalfont=\@empty
1467 \newcommand\btxpublisherfont{}
1468 \let\btxpublisherfont=\@empty
1469 \newcommand\btxvolumefont{}
1470 \let\btxvolumefont=\@empty
1471 \newcommand\btxISBNfont{}
1472 \let\btxISBNfont=\@empty
1473 \newcommand\btxISSNfont{}
1474 \let\btxISSNfont=\@empty
1475 \newcommand\btxurlfont{}
1476 \let\btxurlfont=\@empty
1477 \newcommand\btxurldatefont{}
1478 \let\btxurldatefont=\@empty
1479 \newcommand\btxnumeralfont{}
1480 \let\btxnumeralfont=\@empty
1481 % \end{macrocode}
1482 % \end{macro}
1483 % \begin{macro}{\btxauthorcolon}
1484 % \changes{0.2}{2003/04/20}{Added}%
1485 % Define |\btxauthorcolon| which defines the characters typeset after
1486 % the authors, if they are written before the title.
1487 % By default, it is a ``:''.
1488 % \begin{macrocode}
1489 \newcommand\btxauthorcolon{:}
1490 % \end{macrocode}
1491 % \end{macro}
1492 % \begin{macro}{\btxISBN}
1493 % Define |\btxISBN| which outputs "`ISBN"' in a bibliography.
1494 % For example, it could be defined to |\textsc{isbn}| when old style
1495 % digits are used.
1496 % \begin{macrocode}
1497 \newcommand\btxISBN{ISBN}
1498 % \end{macrocode}
1499 % \end{macro}
1500 % \begin{macro}{\btxISSN}
1501 % Define |\btxISSN| which outputs "`ISSN"' in a bibliography.
1502 % For example, it could be defined to |\textsc{issn}| when old style
1503 % digits are used.
1504 % \begin{macrocode}
1505 \newcommand\btxISSN{ISSN}
1506 % \end{macrocode}
1507 % \end{macro}
1508 % \begin{macro}{\ifbtxprintISBN}
1509 % \begin{macro}{\ifbtxprintISSN}
1510 % These commands are used by the bibliography styles to typeset the
1511 % ISBN or ISSN only if wanted.
1512 % \begin{macrocode}
1513 \DeclareRobustCommand\ifbtxprintISBN[1]{\ifbtx@printISBN #1\fi}
1514 \DeclareRobustCommand\ifbtxprintISSN[1]{\ifbtx@printISSN #1\fi}
1515 % \end{macrocode}
1516 % \end{macro}
1517 % \end{macro}
1518 % \begin{macro}{\btxprintISBN}
1519 % \begin{macro}{\btxprintISSN}
1520 % These macros are used to switch on or off printing of ISBN resp.\
1521 % ISSN.
1522 % Valid arguments are |true| and |false|.
1523 % \begin{macrocode}
1524 \newcommand*\btxprintISBN[1]{\csname btx@printISBN#1\endcsname}
1525 \newcommand*\btxprintISSN[1]{\csname btx@printISSN#1\endcsname}
1526 % \end{macrocode}
1527 % \end{macro}
1528 % \end{macro}
1529 % \begin{macro}{\btxannotation}
1530 % A command that typesets annotations.
1531 % \begin{macrocode}
1532 \ifbbbbannotations
1533 \DeclareRobustCommand\btxannotation[1]{%
1534 \begin{quotation}%
1535 \noindent
1536 #1%
1537 \end{quotation}%
1538 }
1539 \else
1540 \DeclareRobustCommand\btxannotation[1]{}%
1541 \fi
1542 % \end{macrocode}
1543 % \end{macro}
1544 % \begin{macro}{\btx@ifnumerical}
1545 % Test whether argument 1 is a number (from KOMA script)
1546 % \begin{macrocode}
1547 \providecommand\ifnumber[3]{%
1548 \begingroup\@tempswafalse\let\scr@next\test@number
1549 \expandafter\scr@next#1\scr@next
1550 \if@tempswa\endgroup#2\else\endgroup#3\fi
1551 }
1552 \providecommand*\test@number[1]{%
1553 \ifx \scr@next#1%
1554 \let\scr@next\relax
1555 \else
1556 \@tempcnta=\expandafter\expandafter\expandafter\number
1557 \expandafter`#1\relax
1558 \ifnum \@tempcnta>47\relax
1559 \ifnum \@tempcnta<58\relax
1560 \@tempswatrue
1561 \else\@tempswafalse\fi
1562 \else\@tempswafalse\fi
1563 \if@tempswa\else\let\scr@next\gobble@till@next\fi\fi
1564 \scr@next
1565 }
1566 \def\gobble@till@next#1\scr@next{}
1567 % \end{macrocode}
1568 % \end{macro}
1569 % \changes{1.17}{2005/11/05}{Handle numerical edition numbers}%
1570 % \begin{macro}{\btx@parsenum}
1571 % Parses the number given by \cs{btx@parsenum}\meta{number}\cs{@empty}
1572 % prints it and returns the last two digits in \cs{btx@digita} and
1573 % \cs{btx@digitb}.
1574 % \begin{macrocode}
1575 \def\btx@parsenum#1#2#3\@empty{%
1576 #1%
1577 \edef\btx@digitb{#3}%
1578 \ifx\@empty\btx@digitb
1579 #2%
1580 \edef\btx@digita{#1}%
1581 \edef\btx@digitb{#2}%
1582 \else
1583 \expandafter\btx@parsenum#2#3\@empty
1584 \fi
1585 }
1586 % \end{macrocode}
1587 % \end{macro}
1588 % \begin{macro}{\btxnumeralfallback}
1589 % \begin{macrocode}
1590 \DeclareRobustCommand\btxnumeralfallback[2]{%
1591 \foreignlanguage{#1}{%
1592 \ifnumber{#2}{%
1593 \PackageWarning{babelbib}{Handling of numerical editions not
1594 handled\MessageBreak by language #1 for edition `#2'}%
1595 }{}%
1596 #2%
1597 }%
1598 }%
1599 % \end{macrocode}
1600 % \end{macro}
1601 % \begin{macro}{\btxnumeraldot}
1602 % \begin{macrocode}
1603 \DeclareRobustCommand\btxnumeraldot[2]{%
1604 \foreignlanguage{#1}{\ifnumber{#2}{#2.}{#2}}%
1605 }
1606 % \end{macrocode}
1607 % \end{macro}
1608 % \begin{macro}{\btxnumeralenglish}
1609 % \begin{macrocode}
1610 \DeclareRobustCommand\btxnumeralenglish[2]{%
1611 \foreignlanguage{#1}{%
1612 \ifnumber{#2}{%
1613 \expandafter\btx@parsenum#2\@empty\@empty\@empty
1614 \btxnumeralfont{%
1615 \ifx\btx@digitb\@empty
1616 \ifcase\btx@digita th\or st\or nd\or rd\else th\fi
1617 \else
1618 \ifnum\btx@digita=1
1619 th%
1620 \else
1621 \ifcase\btx@digitb th\or st\or nd\or rd\else th\fi
1622 \fi
1623 \fi
1624 }%
1625 }{#2}%
1626 }%
1627 }
1628 % \end{macrocode}
1629 % \end{macro}
1630 % \begin{macro}{\btxnumeralromanian}
1631 % \changes{1.31}{2012/01/03}{Added Romanian numerals}%
1632 % \begin{macrocode}
1633 \newcounter{btxromaniannumeral}%
1634 \renewcommand\thebtxromaniannumeral{\Roman{btxromaniannumeral}}%
1635 \DeclareRobustCommand\btxnumeralromanian[2]{%
1636 \foreignlanguage{#1}{%
1637 \ifnumber{#2}{%
1638 \setcounter{btxromaniannumeral}{#2}%
1639 \ifcase#2 0\or \thebtxromaniannumeral\else a \thebtxromaniannumeral-a \fi
1640 }{#2}%
1641 }%
1642 }
1643 % \end{macrocode}
1644 % \end{macro}
1645 % \begin{macro}{\btxnumeralfrench}
1646 % \changes{1.34}{2021/01/06}{Moved \cs{btxnumeralfrench} into the style file}%
1647 % \begin{macrocode}
1648 \DeclareRobustCommand\btxnumeralfrench[2]{%
1649 \foreignlanguage{#1}{%
1650 \ifnumber{#2}{%
1651 \expandafter\btx@parsenum#2\@empty\@empty\@empty
1652 \btxnumeralfont{%
1653 \ifx\btx@digitb\@empty
1654 \ifcase\btx@digita \ieme\or \iere\else \ieme\fi
1655 \else
1656 \ifnum\btx@digita=1
1657 th%
1658 \else
1659 \ifcase\btx@digitb \ieme\or \iere\else \ieme\fi
1660 \fi
1661 \fi
1662 }%
1663 }{#2}%
1664 }%
1665 }
1666 % \end{macrocode}
1667 % \end{macro}
1668 % \begin{macro}{\btxnumeralswedish}
1669 % \changes{1.31}{2012/01/03}{Added Swedish numerals}%
1670 % \begin{macrocode}
1671 \DeclareRobustCommand\btxnumeralswedish[2]{%
1672 \foreignlanguage{#1}{%
1673 \ifnumber{#2}{%
1674 \expandafter\btx@parsenum#2\@empty\@empty\@empty
1675 \btxnumeralfont{%
1676 \ifx\btx@digitb\@empty
1677 \ifcase\btx@digita :e\or :a\or :a\or :e\else :e\fi
1678 \else
1679 \ifnum\btx@digita=1
1680 :a%
1681 \else
1682 \ifcase\btx@digitb :e\or :a\or :a\or :e\else :e\fi
1683 \fi
1684 \fi
1685 }%
1686 }{#2}%
1687 }%
1688 }
1689 % \end{macrocode}
1690 % \end{macro}
1691 % \begin{macro}{\url}
1692 % \changes{0.40}{2003/09/26}{If no \cs{url} command is defined,
1693 % produce an error}%
1694 % \changes{0.2}{2003/04/20}{Added, if not available by another
1695 % package}%
1696 % Define |\url| which, by default, is used for URLs. Only necessary if
1697 % not provided by another package, e.\,g.\ |url.sty|.
1698 % \begin{macrocode}
1699 \AtBeginDocument{%
1700 \providecommand\url[1]{%
1701 \PackageError{babelbib}{No \string\url\space command defined but
1702 field URL used\MessageBreak
1703 in bibliography}{%
1704 Please define a \string\url\space command for printing URLs
1705 before \string\begin{document}, e.\,g.\MessageBreak
1706 by loading the package `url.sty'.}%
1707 \texttt{#1}%
1708 }%
1709 }
1710 % \end{macrocode}
1711 % \end{macro}
1712 % Perform the following commands at |\begin{document}| in order to be
1713 % sure to do that after loading |babel|.
1714 % \begin{macrocode}
1715 \AtBeginDocument{%
1716 % \end{macrocode}
1717 % Load |babel| if that has not been done, yet.
1718 % \begin{macrocode}
1719 \RequirePackage{babel}
1720 % \end{macrocode}
1721 % Input all know languages that babel has also loaded, before.
1722 % \changes{0.2}{2003/04/20}{Removed Italian from the list of
1723 % automatically found languages, since it is not complete, yet}%
1724 % \changes{0.31}{2003/05/01}{Added Italian to the list of automatically
1725 % found languages, again}%
1726 % \changes{0.34}{2003/07/28}{Added Afrikaans}%
1727 % \changes{0.41}{2003/11/03}{Added Norwegian (by Hans Fredrik Nordhaug)}%
1728 % \changes{1.00}{2005/02/16}{Renamed franceis to francais}%
1729 % \begin{macrocode}
1730 \inputbdf{afrikaans}{afrikaans}
1731 \inputbdf{american}{english}
1732 \inputbdf{austrian}{german}
1733 \inputbdf{bahasa}{bahasa}
1734 \inputbdf{brazil}{portuguese}
1735 \inputbdf{brazilian}{portuguese}
1736 \inputbdf{british}{english}
1737 \inputbdf{canadian}{english}
1738 \inputbdf{canadien}{french}
1739 \inputbdf{catalan}{catalan}
1740 \inputbdf{croatian}{croatian}
1741 \inputbdf{czech}{czech}
1742 \inputbdf{danish}{danish}
1743 \inputbdf{dutch}{dutch}
1744 \inputbdf{english}{english}
1745 \inputbdf{esperanto}{esperanto}
1746 \inputbdf{finnish}{finnish}
1747 \inputbdf{francais}{french}
1748 \inputbdf{french}{french}
1749 \inputbdf{frenchb}{french}
1750 \inputbdf{galician}{galician}
1751 \inputbdf{german}{german}
1752 \inputbdf{germanb}{german}
1753 \inputbdf{greek}{greek}
1754 \inputbdf{italian}{italian}
1755 \inputbdf{norsk}{norsk}
1756 \inputbdf{mexican}{spanish}
1757 \inputbdf{naustrian}{german}
1758 \inputbdf{ngerman}{german}
1759 \inputbdf{portuges}{portuguese}
1760 \inputbdf{portuguese}{portuguese}
1761 \inputbdf{romanian}{romanian}
1762 \inputbdf{russian}{russian}
1763 \inputbdf{russianb}{russian}
1764 \inputbdf{serbian}{serbian}
1765 \inputbdf{spanish}{spanish}
1766 \inputbdf{swedish}{swedish}
1767 \inputbdf{turkish}{turkish}
1768 \inputbdf{UKenglish}{english}
1769 \inputbdf{USenglish}{english}
1770 % \end{macrocode}
1771 % Call |\bibs#1|, where |#1| stands for the main language of the
1772 % document, to activate the additional bibliographic commands.
1773 % \begin{macrocode}
1774 \ifbbbbfixlanguage
1775 \typeout{babelbib: Load BibTeX extensions
1776 \string\bibs\bbl@main@language\space for \bbl@main@language}%
1777 \selectbiblanguage{\bbl@main@language}%
1778 \else
1779 \expandafter\selectlanguage\expandafter{\bbl@main@language}%
1780 \fi
1781 }
1782 %</package>
1783 % \end{macrocode}
1784 %
1785 % \subsection{The language definitions}
1786 %
1787 % \subsubsection{German}
1788 % \begin{macrocode}
1789 %<*german>
1790 % \end{macrocode}
1791 %
1792 % \begin{macro}{\bibsgerman}
1793 % Define |\bibsgerman| which itself defines all necessary expressions
1794 % used in bibliographies that differ in different languages.
1795 % This command is used for all German dialects.
1796 %
1797 % Since the language of the keywords may differ from the language of
1798 % the bibliography item, the keyword language is set for each keyword.
1799 % Because this command is also used for dialects, it has an optional
1800 % argument which is set to the dialect.
1801 % \begin{macrocode}
1802 \newcommand\bibsgerman[1][german]{%
1803 % \end{macrocode}
1804 % Define the command |\biblanguagename| that always returns the name
1805 % of the current language for bibliographies.
1806 % \begin{macrocode}
1807 \def\biblanguagename{#1}%
1808 % \end{macrocode}
1809 % First, define all commands for usage within a sentence (which
1810 % normally start with a lowercase letter, if they aren't a noun).
1811 % These commands start with a lowercase letter.
1812 %
1813 % Many commands have an argument. This may be used by the bib\TeX\
1814 % styles to append a dot after abbreviations, e.\,g.\
1815 % |\btxetalshort{.}|.
1816 % \begin{macrocode}
1817 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
1818 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
1819 \def\btxandshort##1{\protect\foreignlanguage{#1}{und}}%
1820 \def\btxandlong##1{\protect\foreignlanguage{#1}{und}}%
1821 % \end{macrocode}
1822 % The command |\btxandcomma| contains a ``,'' if a comma is added
1823 % before the ``and'' in a list of more than two items.
1824 % For German, this is not the case.
1825 % \begin{macrocode}
1826 \def\btxandcomma##1{}%
1827 \def\btxinlong##1{\protect\foreignlanguage{#1}{in:}}%
1828 \def\btxinshort##1{\protect\foreignlanguage{#1}{in:}}%
1829 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{d.\ Reihe}}%
1830 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{in}}%
1831 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{der Reihe}}%
1832 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{in}}%
1833 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{Hrsg##1{}}}%
1834 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{Herausgeber}}%
1835 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{Hrsg##1{}}}%
1836 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{Herausgeber}}%
1837 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{Bd##1{}}}%
1838 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{Band}}%
1839 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{Jg##1{}}}%
1840 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{Jahrgang}}%
1841 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
1842 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{Nummer}}%
1843 % \end{macrocode}
1844 % Avoid the ligature in
1845 % \foreignlanguage{ngerman}{"`Auf"|lage"'} in the same way, |babel|
1846 % does it.
1847 % This is a change in the behaviour to the |germbib| package.
1848 % In \foreignlanguage{ngerman}{"`Aufl"'} the ligature is still
1849 % used since this is done in abbreviations.
1850 % \begin{macrocode}
1851 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{Aufl##1{}}}%
1852 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{%
1853 Auf\penalty10000\discretionary{-}{}{\kern.03em}%
1854 \allowhyphens lage}}%
1855 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
1856 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
1857 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{Kap##1{}}}%
1858 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{Kapitel}}%
1859 \def\btxpageshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
1860 \def\btxpagelong##1{\protect\foreignlanguage{#1}{Seite}}%
1861 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
1862 \def\btxpageslong##1{\protect\foreignlanguage{#1}{Seiten}}%
1863 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Diplomarbeit}}%
1864 % \end{macrocode}
1865 % Use \foreignlanguage{ngerman}{"`Dissertation"'} instead of
1866 % \foreignlanguage{ngerman}{"`Doktorarbeit"'} for PhD theses.
1867 % This is a change in the behaviour to the |germbib| package.
1868 % \begin{macrocode}
1869 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Dissertation}}%
1870 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Techn.\ Ber##1{}}}%
1871 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Technischer Bericht}}%
1872 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januar}}%
1873 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februar}}%
1874 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{M\"arz}}%
1875 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
1876 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Mai}}%
1877 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Juni}}%
1878 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Juli}}%
1879 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{August}}%
1880 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
1881 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktober}}%
1882 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
1883 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Dezember}}%
1884 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
1885 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
1886 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{M\"arz}}%
1887 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
1888 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Mai}}%
1889 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Juni}}%
1890 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Juli}}%
1891 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
1892 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
1893 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
1894 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
1895 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dez##1{}}}%
1896 % \end{macrocode}
1897 % Then, define all commands for usage at the begin of a sentence
1898 % (which start with an uppercase letter).
1899 % These commands start with an uppercase letter.
1900 % Since, in German, many nouns are the same in the middle and at the
1901 % start of a sentence, the |\Btx| variants just call the |\btx|
1902 % variant.
1903 % \begin{macrocode}
1904 \def\Btxinlong##1{\protect\foreignlanguage{#1}{In:}}%
1905 \def\Btxinshort##1{\protect\foreignlanguage{#1}{In:}}%
1906 \def\Btxeditorshort{\btxeditorshort}%
1907 \def\Btxeditorlong{\btxeditorlong}%
1908 \def\Btxeditorsshort{\btxeditorsshort}%
1909 \def\Btxeditorslong{\btxeditorslong}%
1910 \def\Btxvolumeshort{\btxvolumeshort}%
1911 \def\Btxvolumelong{\btxvolumelong}%
1912 \def\Btxjvolumeshort{\btxjvolumeshort}%
1913 \def\Btxjvolumelong{\btxjvolumelong}%
1914 \def\Btxnumbershort{\btxnumbershort}%
1915 \def\Btxnumberlong{\btxnumberlong}%
1916 \def\Btxeditionshort{\btxeditionshort}%
1917 \def\Btxeditionlong{\btxeditionlong}%
1918 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
1919 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
1920 \def\Btxchaptershort{\btxchaptershort}%
1921 \def\Btxchapterlong{\btxchapterlong}%
1922 \def\Btxpageshort{\btxpageshort}%
1923 \def\Btxpagelong{\btxpagelong}%
1924 \def\Btxpagesshort{\btxpagesshort}%
1925 \def\Btxpageslong{\btxpageslong}%
1926 \def\Btxtechrepshort{\btxtechrepshort}%
1927 \def\Btxtechreplong{\btxtechreplong}%
1928 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, besucht: ##1}}%
1929 % \end{macrocode}
1930 % \changes{1.16}{2005/10/31}{Allow to alter space between two
1931 % forenames}%
1932 % The command \cs{btxfnamespaceshort} and \cs{btxfnamespacelong}
1933 % contain the space between two abbreviated resp.\ full forenames.
1934 % \begin{macrocode}
1935 \def\btxfnamespaceshort{\,}%
1936 \def\btxfnamespacelong{ }%
1937 % \end{macrocode}
1938 % \changes{1.17}{2005/11/05}{Handle numerical edition numbers}%
1939 % Handle numerical edition numbers.
1940 % \begin{macrocode}
1941 \def\btxnumeralshort##1{\btxnumeraldot{#1}{##1}}%
1942 \def\btxnumerallong##1{\btxnumeraldot{#1}{##1}}%
1943 % \end{macrocode}
1944 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
1945 % \begin{macrocode}
1946 \def\btxprintmonthyearnum##1##2{##1/##2}%
1947 % \end{macrocode}
1948 % A command that just puts some user defined text in the language of
1949 % the keywords.
1950 % \begin{macrocode}
1951 % \def\btxkeywordlanguage##1{\protect\foreignlanguage{#1}{##1}}%
1952 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
1953 % \end{macrocode}
1954 % \changes{0.2}{2003/04/20}{Added language names}%
1955 % Names of all known languages in the current language.
1956 % For example, used by |babamspl.bst|.
1957 % \begin{macrocode}
1958 \ifbbbblanguagenames
1959 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{englisch}}%
1960 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{deutsch}}%
1961 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugiesisch}}%
1962 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugiesisch}}%
1963 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{englisch}}%
1964 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgarisch}}%
1965 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{englisch}}%
1966 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franz\"osisch}}%
1967 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalanisch}}%
1968 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroatisch}}%
1969 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tschechisch}}%
1970 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{d\"anisch}}%
1971 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{niederl\"andisch}}%
1972 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{englisch}}%
1973 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
1974 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finnisch}}%
1975 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franz\"osisch}}%
1976 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franz\"osisch}}%
1977 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franz\"osisch}}%
1978 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{deutsch}}%
1979 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{deutsch}}%
1980 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{griechisch}}%
1981 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebr\"aisch}}%
1982 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ungarisch}}%
1983 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{isl\"andisch}}%
1984 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irisch}}%
1985 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italienisch}}%
1986 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{lateinisch}}%
1987 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{deutsch}}%
1988 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{deutsch}}%
1989 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norwegisch}}%
1990 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{neunorwegisch}}%
1991 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polnisch}}%
1992 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugiesisch}}%
1993 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugiesisch}}%
1994 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russisch}}%
1995 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{schottisch}}%
1996 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbisch}}%
1997 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spanisch}}%
1998 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{schwedisch}}%
1999 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{t\"urkisch}}%
2000 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{englisch}}%
2001 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{englisch}}%
2002 \fi
2003 }
2004 % \end{macrocode}
2005 % \end{macro}
2006 % \begin{macro}{\bibsgermanb}
2007 % Do the same for the language ``germanb''. Since there is no
2008 % difference, just call |\bibsgerman|.
2009 % \begin{macrocode}
2010 \newcommand\bibsgermanb{\bibsgerman}
2011 % \end{macrocode}
2012 % \end{macro}
2013 % \begin{macro}{\bibsngerman}
2014 % Do the same for German with new ortography. Call |\bibsgerman| with
2015 % new hyphenation patterns.
2016 % \begin{macrocode}
2017 \newcommand\bibsngerman[1][ngerman]{\bibsgerman[#1]}
2018 % \end{macrocode}
2019 % \end{macro}
2020 % \begin{macro}{\bibsaustrian}
2021 % Once again. Austrians use \foreignlanguage{ngerman}{"`J\"anner"'}
2022 % instead of \foreignlanguage{ngerman}{"`Januar"'}. Thus, redefine the
2023 % corresponding command.
2024 % \begin{macrocode}
2025 \newcommand\bibsaustrian[1][austrian]{%
2026 \bibsgerman[#1]%
2027 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{J\"anner}}%
2028 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{J\"an##1{}}}%
2029 }
2030 % \end{macrocode}
2031 % \end{macro}
2032 % \begin{macro}{\bibsnaustrian}
2033 % New Austrian is the same as Austrian.
2034 % \begin{macrocode}
2035 \newcommand\bibsnaustrian[1][naustrian]{%
2036 \bibsngerman[#1]%
2037 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{J\"anner}}%
2038 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{J\"an##1{}}}%
2039 }
2040 % \end{macrocode}
2041 % \end{macro}
2042 % The rest has to be executed after loading |babel.sty|, because the
2043 % |\extra...| commands have to be defined for all used languages.
2044 % \begin{macrocode}
2045 \AtBeginDocument{%
2046 % \end{macrocode}
2047 % If the language is fixed, do nothing.
2048 % \begin{macrocode}
2049 \ifbbbbfixlanguage
2050 \else
2051 % \end{macrocode}
2052 % Append the corresponding |\#2| command to each used language,
2053 % namely |\extras#1|.
2054 % \begin{macrocode}
2055 \bbbbaddto{austrian}{bibsaustrian}
2056 \bbbbaddto{german}{bibsgerman}
2057 \bbbbaddto{germanb}{bibsgermanb}
2058 \bbbbaddto{naustrian}{bibsnaustrian}
2059 \bbbbaddto{ngerman}{bibsngerman}
2060 \fi
2061 % \end{macrocode}
2062 % \changes{0.32}{2003/05/06}{Move change of case from bst to sty}%
2063 % Switch off the change of case in titles for all German dialects by
2064 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
2065 % \begin{macrocode}
2066 \bbbbaddto{austrian}{btxifchangecaseoff}
2067 \bbbbaddto{german}{btxifchangecaseoff}
2068 \bbbbaddto{germanb}{btxifchangecaseoff}
2069 \bbbbaddto{naustrian}{btxifchangecaseoff}
2070 \bbbbaddto{ngerman}{btxifchangecaseoff}
2071 }
2072 %</german>
2073 % \end{macrocode}
2074 %
2075 % \subsubsection{Galician}
2076 % \changes{1.26}{2009/06/17}{Added Galician language}%
2077 % \begin{macrocode}
2078 %<*galician>
2079 % \end{macrocode}
2080 %
2081 % The language definition for Galician was provided by Miguel
2082 % Rodr{\'\i}guez Penabad.
2083 %
2084 % \begin{macro}{\bibsgalician}
2085 % Bibliographic commands for Galician.
2086 % \begin{macrocode}
2087 \newcommand\bibsgalician[1][galician]{%
2088 \def\biblanguagename{#1}%
2089 \def\btxetalshort##1{\protect\foreignlanguage{#1}{e~cols##1{}}}%
2090 \def\btxetallong##1{\protect\foreignlanguage{#1}{e~colaboradores}}%
2091 \def\btxandshort##1{\protect\foreignlanguage{#1}{e}}%
2092 \def\btxandlong##1{\protect\foreignlanguage{#1}{e}}%
2093 \def\btxandcomma##1{}%
2094 \def\btxinlong##1{\protect\foreignlanguage{#1}{en}}%
2095 \def\btxinshort##1{\protect\foreignlanguage{#1}{en}}%
2096 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{de}}%
2097 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{en}}%
2098 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{de}}%
2099 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{en}}%
2100 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
2101 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
2102 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{eds##1{}}}%
2103 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{editores}}%
2104 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2105 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
2106 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2107 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
2108 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{%
2109 n\textsuperscript{\underline{o}}}}%
2110 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{n\'umero}}%
2111 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
2112 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edici\'{o}n}}%
2113 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
2114 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
2115 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{cap##1{}}}%
2116 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{cap{\'\i}tulo}}%
2117 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p\'ax##1{}}}%
2118 \def\btxpagelong##1{\protect\foreignlanguage{#1}{p\'axina}}%
2119 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{p\'axs##1{}}}%
2120 \def\btxpageslong##1{\protect\foreignlanguage{#1}{p\'axinas}}%
2121 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Tese de Licenciatura}}%
2122 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Tese de Doutoramento}}%
2123 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Informe t\'ecnico##1{}}}%
2124 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Informe t\'ecnico}}%
2125 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Xaneiro}}%
2126 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Febreiro}}%
2127 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Marzo}}%
2128 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{Abril}}%
2129 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Maio}}%
2130 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Xu\~no}}%
2131 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Xullo}}%
2132 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{Agosto}}%
2133 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{Setembro}}%
2134 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Outubro}}%
2135 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{Novembro}}%
2136 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Decembro}}%
2137 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Xan##1{}}}%
2138 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
2139 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
2140 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Abr##1{}}}%
2141 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Mai}}%
2142 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Xu\~n}}%
2143 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Xul}}%
2144 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Ago##1{}}}%
2145 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Set##1{}}}%
2146 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Out##1{}}}%
2147 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
2148 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dec##1{}}}%
2149 \def\Btxinlong##1{\protect\foreignlanguage{#1}{En}}%
2150 \def\Btxinshort##1{\protect\foreignlanguage{#1}{En}}%
2151 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
2152 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
2153 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
2154 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Editores}}%
2155 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2156 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
2157 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2158 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
2159 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{%
2160 N\textsuperscript{\underline{o}}}}%
2161 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{N\'umero}}%
2162 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
2163 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edici\'on}}%
2164 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
2165 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
2166 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Cap##1{}}}%
2167 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Cap\'\itulo}}%
2168 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P\'ax##1{}}}%
2169 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{P\'axina}}%
2170 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{P\'axs##1{}}}%
2171 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{P\'axinas}}%
2172 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Informe t\'ecnico}}%
2173 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Informe t\'ecnico}}%
2174 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, visitado o ##1}}%
2175 \def\btxfnamespaceshort{\,}%
2176 \def\btxfnamespacelong{ }%
2177 \def\btxnumeralshort##1{\protect\foreignlanguage{#1}{%
2178 \ifnumber{##1}{##1\textsuperscript{a}}{##1}}}%
2179 \def\btxnumerallong##1{\btxnumeralshort{##1}}%
2180 % \end{macrocode}
2181 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
2182 % \begin{macrocode}
2183 \def\btxprintmonthyearnum##1##2{##1/##2}%
2184 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
2185 \ifbbbblanguagenames
2186 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{ingl\'es}}%
2187 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{alem\'an}}%
2188 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugu\'es}}%
2189 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugu\'es}}%
2190 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{ingl\'es}}%
2191 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{b\'ulgaro}}%
2192 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{ingl\'es}}%
2193 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franc\'es}}%
2194 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catal\'an}}%
2195 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croata}}%
2196 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{checo}}%
2197 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dan\'es}}%
2198 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{holand\'es}}%
2199 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{ingl\'es}}%
2200 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
2201 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finland\'es}}%
2202 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franc\'es}}%
2203 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franc\'es}}%
2204 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franc\'es}}%
2205 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{alem\'an}}%
2206 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{alem\'an}}%
2207 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{grego}}%
2208 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebreo}}%
2209 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{h\'ungaro}}%
2210 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{island\'es}}%
2211 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irland\'es}}%
2212 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italiano}}%
2213 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{lat\'\i n}}%
2214 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{alem\'an}}%
2215 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{alem\'an}}%
2216 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{noruego}}%
2217 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{noruego}}%
2218 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polaco}}%
2219 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugu\'es}}%
2220 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugu\'es}}%
2221 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{ruso}}%
2222 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{escoc\'es}}%
2223 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbio}}%
2224 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espa\~nol}}%
2225 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{sueco}}%
2226 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turco}}%
2227 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{ingl\'es}}%
2228 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{ingl\'es}}%
2229 \fi
2230 }
2231 % \end{macrocode}
2232 % \end{macro}
2233 % Append the definitions to the language-calling commands.
2234 % \begin{macrocode}
2235 \AtBeginDocument{%
2236 \ifbbbbfixlanguage
2237 \else
2238 \bbbbaddto{galician}{bibsgalician}
2239 \fi
2240 \bbbbaddto{galician}{btxifchangecaseoff}
2241 }
2242 %</galician>
2243 % \end{macrocode}
2244 %
2245 % \subsubsection{English}
2246 % \begin{macrocode}
2247 %<*english>
2248 % \end{macrocode}
2249 %
2250 % The language definition for English is mostly the same as the German
2251 % one. Therefore, it is not described in detail, again.
2252 %
2253 % \begin{macro}{\bibsenglish}
2254 % \changes{1.00}{2005/02/16}{Handle package \texttt{frenchpro}}%
2255 % |french.sty| already defines \cs{bibsenglish}.
2256 % In this case it has to be redefined, otherwise newly defined.
2257 % \begin{macrocode}
2258 \bbbbifpackageloaded{french}{}{\newcommand\bibsenglish{}}
2259 % \end{macrocode}
2260 % \changes{0.2}{2003/04/20}{Changed some abbreviations}%
2261 % Bibliographic commands for English.
2262 % \begin{macrocode}
2263 \renewcommand\bibsenglish[1][english]{%
2264 \def\biblanguagename{#1}%
2265 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
2266 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
2267 \def\btxandshort##1{\protect\foreignlanguage{#1}{and}}%
2268 \def\btxandlong##1{\protect\foreignlanguage{#1}{and}}%
2269 \def\btxandcomma##1{,}%
2270 \def\btxinlong##1{\protect\foreignlanguage{#1}{in}}%
2271 \def\btxinshort##1{\protect\foreignlanguage{#1}{in}}%
2272 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{of}}%
2273 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{in}}%
2274 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{of}}%
2275 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{in}}%
2276 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
2277 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
2278 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{eds##1{}}}%
2279 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{editors}}%
2280 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2281 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
2282 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2283 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
2284 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{no##1{}}}%
2285 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{number}}%
2286 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
2287 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edition}}%
2288 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
2289 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
2290 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{ch##1{}}}%
2291 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{chapter}}%
2292 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
2293 \def\btxpagelong##1{\protect\foreignlanguage{#1}{page}}%
2294 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
2295 \def\btxpageslong##1{\protect\foreignlanguage{#1}{pages}}%
2296 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Master's thesis}}%
2297 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{PhD thesis}}%
2298 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Techn.\ rep##1{}}}%
2299 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Technical report}}%
2300 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{January}}%
2301 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{February}}%
2302 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{March}}%
2303 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
2304 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{May}}%
2305 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{June}}%
2306 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{July}}%
2307 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{August}}%
2308 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
2309 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{October}}%
2310 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
2311 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{December}}%
2312 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
2313 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
2314 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
2315 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
2316 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{May}}%
2317 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{June}}%
2318 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{July}}%
2319 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
2320 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sept##1{}}}%
2321 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Oct##1{}}}%
2322 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
2323 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dec##1{}}}%
2324 \def\Btxinlong##1{\protect\foreignlanguage{#1}{In}}%
2325 \def\Btxinshort##1{\protect\foreignlanguage{#1}{In}}%
2326 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
2327 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
2328 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Eds##1{}}}%
2329 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Editors}}%
2330 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2331 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
2332 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2333 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
2334 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{No##1{}}}%
2335 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Number}}%
2336 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
2337 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edition}}%
2338 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
2339 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
2340 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Ch##1{}}}%
2341 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Chapter}}%
2342 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
2343 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Page}}%
2344 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
2345 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Pages}}%
2346 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tech.\ Rep##1{}}}%
2347 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Technical Report}}%
2348 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, visited on ##1}}%
2349 \def\btxfnamespaceshort{}%
2350 \def\btxfnamespacelong{ }%
2351 \def\btxnumeralshort##1{\btxnumeralenglish{#1}{##1}}%
2352 \def\btxnumerallong##1{\btxnumeralenglish{#1}{##1}}%
2353 % \end{macrocode}
2354 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
2355 % \begin{macrocode}
2356 \def\btxprintmonthyearnum##1##2{##1/##2}%
2357 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
2358 % \end{macrocode}
2359 % \changes{0.2}{2003/04/20}{Added language names}%
2360 % Names of all known languages in the current language.
2361 % \begin{macrocode}
2362 \ifbbbblanguagenames
2363 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{english}}%
2364 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{german}}%
2365 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portuguese}}%
2366 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portuguese}}%
2367 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{english}}%
2368 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgarian}}%
2369 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{english}}%
2370 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{french}}%
2371 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catalan}}%
2372 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croatian}}%
2373 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{czech}}%
2374 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danish}}%
2375 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{dutch}}%
2376 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{english}}%
2377 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
2378 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finnish}}%
2379 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{french}}%
2380 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{french}}%
2381 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{french}}%
2382 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{german}}%
2383 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{german}}%
2384 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{greek}}%
2385 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebrew}}%
2386 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{hungarian}}%
2387 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{icelandic}}%
2388 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irish}}%
2389 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italian}}%
2390 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latin}}%
2391 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{german}}%
2392 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{german}}%
2393 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norwegian}}%
2394 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{new-norwegian}}%
2395 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polish}}%
2396 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portuguese}}%
2397 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portuguese}}%
2398 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russian}}%
2399 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{scottish}}%
2400 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbian}}%
2401 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spanish}}%
2402 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{swedish}}%
2403 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turkish}}%
2404 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{english}}%
2405 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{english}}%
2406 \fi
2407 }
2408 % \end{macrocode}
2409 % \end{macro}
2410 % Copy the commands to the other languages.
2411 % \begin{macrocode}
2412 \newcommand\bibsamerican{\bibsenglish[american]}
2413 \newcommand\bibsbritish{\bibsenglish[british]}
2414 \newcommand\bibscanadian{\bibsenglish[canadian]}
2415 \newcommand\bibsUKenglish{\bibsenglish[UKenglish]}
2416 \newcommand\bibsUSenglish{\bibsenglish[USenglish]}
2417 % \end{macrocode}
2418 % Append the definitions to the language-calling commands.
2419 % \begin{macrocode}
2420 \AtBeginDocument{%
2421 \ifbbbbfixlanguage
2422 \else
2423 \bbbbaddto{american}{bibsamerican}
2424 \bbbbaddto{british}{bibsbritish}
2425 \bbbbaddto{canadian}{bibscanadian}
2426 \bbbbaddto{english}{bibsenglish}
2427 \bbbbaddto{UKenglish}{bibsUKenglish}
2428 \bbbbaddto{USenglish}{bibsUSenglish}
2429 \fi
2430 % \end{macrocode}
2431 % \changes{0.32}{2003/05/06}{Move change of case from bst to sty}%
2432 % Switch on the change of case in titles for all English dialects by
2433 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
2434 % \begin{macrocode}
2435 \bbbbaddto{american}{btxifchangecaseon}
2436 \bbbbaddto{british}{btxifchangecaseon}
2437 \bbbbaddto{canadian}{btxifchangecaseon}
2438 \bbbbaddto{english}{btxifchangecaseon}
2439 \bbbbaddto{UKenglish}{btxifchangecaseon}
2440 \bbbbaddto{USenglish}{btxifchangecaseon}
2441 }
2442 %</english>
2443 % \end{macrocode}
2444 %
2445 % \subsubsection{Italian}
2446 % \begin{macrocode}
2447 %<*italian>
2448 % \end{macrocode}
2449 %
2450 % \begin{macro}{\bibsitalian}
2451 % Bibliographic commands for Italian.
2452 % \changes{0.33}{2003/05/22}{Changed some Italian keywords according
2453 % to the custom-bib file italian.mbs}%
2454 % \begin{macrocode}
2455 \newcommand\bibsitalian[1][italian]{%
2456 \def\biblanguagename{#1}%
2457 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
2458 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
2459 \def\btxandshort##1{\protect\foreignlanguage{#1}{e}}%
2460 \def\btxandlong##1{\protect\foreignlanguage{#1}{e}}%
2461 \def\btxandcomma##1{}%
2462 \def\btxinlong##1{\protect\foreignlanguage{#1}{in}}%
2463 \def\btxinshort##1{\protect\foreignlanguage{#1}{in}}%
2464 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{della serie}}%
2465 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{nella serie}}%
2466 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{della serie}}%
2467 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{nella serie}}%
2468 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{cur##1{}}}%
2469 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{curatore}}%
2470 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{cur##1{}}}%
2471 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{curatori}}%
2472 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2473 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
2474 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2475 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
2476 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{no##1{}}}%
2477 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{numero}}%
2478 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
2479 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edizione}}%
2480 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
2481 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
2482 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{cap##1{}}}%
2483 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{capitolo}}%
2484 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
2485 \def\btxpagelong##1{\protect\foreignlanguage{#1}{pagina}}%
2486 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
2487 \def\btxpageslong##1{\protect\foreignlanguage{#1}{pagine}}%
2488 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{tesi di laurea}}%
2489 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{tesi di dottorato}}%
2490 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Rapp.\ Tecnico}}%
2491 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Rapporto Tecnico}}%
2492 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{gennaio}}%
2493 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{febbraio}}%
2494 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{marzo}}%
2495 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{aprile}}%
2496 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{maggio}}%
2497 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{giugno}}%
2498 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{luglio}}%
2499 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{agosto}}%
2500 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{settembre}}%
2501 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{ottobre}}%
2502 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{novembre}}%
2503 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{dicembre}}%
2504 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{gen##1{}}}%
2505 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{feb##1{}}}%
2506 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mar##1{}}}%
2507 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{apr##1{}}}%
2508 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{mag##1{}}}%
2509 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{giu##1{}}}%
2510 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{lug##1{}}}%
2511 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{ago##1{}}}%
2512 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{set##1{}}}%
2513 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{ott##1{}}}%
2514 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
2515 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{dic##1{}}}%
2516 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Nel}}%
2517 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Nel}}%
2518 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Cur##1{}}}%
2519 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Curatore}}%
2520 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Cur##1{}}}%
2521 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Curatori}}%
2522 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2523 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
2524 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2525 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
2526 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{No##1{}}}%
2527 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Numero}}%
2528 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
2529 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edizione}}%
2530 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
2531 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
2532 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Cap##1{}}}%
2533 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Capitolo}}%
2534 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
2535 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Pagina}}%
2536 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
2537 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Pagine}}%
2538 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Rap.\ Tecnico}}%
2539 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Rapporto Tecnico}}%
2540 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, accesso a ##1}}%
2541 \def\btxfnamespaceshort{\,}%
2542 \def\btxfnamespacelong{ }%
2543 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
2544 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
2545 % \end{macrocode}
2546 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
2547 % \begin{macrocode}
2548 \def\btxprintmonthyearnum##1##2{##1/##2}%
2549 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
2550 % \end{macrocode}
2551 % \changes{0.2}{2003/04/20}{Added placeholders for language names}%
2552 % \changes{0.31}{2003/05/01}{Added some language names for Italian}%
2553 % Names of all known languages in the current language.
2554 % \begin{macrocode}
2555 \ifbbbblanguagenames
2556 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{inglese}}%
2557 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{tedesco}}%
2558 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portoghese}}%
2559 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portoghese}}%
2560 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{inglese}}%
2561 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgaro}}%
2562 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{inglese}}%
2563 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{francese}}%
2564 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catalano}}%
2565 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croato}}%
2566 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{ceco}}%
2567 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danese}}%
2568 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{olandese}}%
2569 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{inglese}}%
2570 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
2571 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finlandese}}%
2572 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{francese}}%
2573 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{francese}}%
2574 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{francese}}%
2575 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{tedesco}}%
2576 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{tedesco}}%
2577 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{greco}}%
2578 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{ebreo}}%
2579 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ungherese}}%
2580 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandese}}%
2581 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlandese}}%
2582 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italiano}}%
2583 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latino}}%
2584 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{tedesco}}%
2585 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{tedesco}}%
2586 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norvegese}}%
2587 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{nuovo norvegese}}%
2588 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polacco}}%
2589 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portoghese}}%
2590 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portoghese}}%
2591 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russo}}%
2592 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{scozzese}}%
2593 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbo}}%
2594 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spagnolo}}%
2595 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{svedese}}%
2596 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turco}}%
2597 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{inglese}}%
2598 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{inglese}}%
2599 \fi
2600 }
2601 % \end{macrocode}
2602 % \end{macro}
2603 % Append the definitions to the language-calling commands.
2604 % \begin{macrocode}
2605 \AtBeginDocument{%
2606 \ifbbbbfixlanguage
2607 \else
2608 \bbbbaddto{italian}{bibsitalian}
2609 \fi
2610 % \end{macrocode}
2611 % \changes{0.32}{2003/05/06}{Move change of case from bst to sty}%
2612 % Switch off the change of case in titles for Italian by
2613 % appending \cs{btxifchangecaseoff} to \cs{extrasitalian}.
2614 % \begin{macrocode}
2615 \bbbbaddto{italian}{btxifchangecaseoff}
2616 }
2617 %</italian>
2618 % \end{macrocode}
2619 %
2620 % \subsubsection{Greek}
2621 % \begin{macrocode}
2622 %<*greek>
2623 % \end{macrocode}
2624 %
2625 % The language definition for Greek was provided by Prokopis
2626 % Prokopidis.
2627 %
2628 % \begin{macro}{\bibsgreek}
2629 % Bibliographic commands for Greek.
2630 % \begin{macrocode}
2631 \newcommand\bibsgreek[1][greek]{%
2632 \def\biblanguagename{#1}%
2633 \def\btxetalshort##1{\protect\foreignlanguage{#1}{k.'a##1{}}}%
2634 \def\btxetallong##1{\protect\foreignlanguage{#1}{kai 'alloi}}%
2635 \def\btxandshort##1{\protect\foreignlanguage{#1}{kai}}%
2636 \def\btxandlong##1{\protect\foreignlanguage{#1}{kai}}%
2637 \def\btxandcomma##1{,}%
2638 \def\btxinlong##1{\protect\foreignlanguage{#1}{sto}}%
2639 \def\btxinshort##1{\protect\foreignlanguage{#1}{sto}}%
2640 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{tou}}%
2641 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{sto}}%
2642 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{tou}}%
2643 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{sto}}%
2644 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{epim##1{}}}%
2645 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{epimelht'hc}}%
2646 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{epim##1{}}}%
2647 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{epimelht'ec}}%
2648 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{t'om##1{}}}%
2649 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{t'omoc}}%
2650 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{'et##1{}}}%
2651 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{'etoc}}%
2652 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{ar##1{}}}%
2653 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{arijm'oc}}%
2654 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{'ekd##1{}}}%
2655 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{'ekdosh}}%
2656 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
2657 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
2658 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{kef##1{}}}%
2659 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{kef'alaio}}%
2660 \def\btxpageshort##1{\protect\foreignlanguage{#1}{sel##1{}}}%
2661 \def\btxpagelong##1{\protect\foreignlanguage{#1}{sel'ida}}%
2662 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{sel##1{}}}%
2663 \def\btxpageslong##1{\protect\foreignlanguage{#1}{sel'idec}}%
2664 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Metaptuqiak'h ergas'ia}}%
2665 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Didaktorik'h diatrib'h}}%
2666 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Teqn.\ anaf##1{}}}%
2667 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Teqnik'h anafor'a}}%
2668 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Ianou'arioc}}%
2669 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Febrou'arioc}}%
2670 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{M'artioc}}%
2671 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{Apr'ilioc}}%
2672 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{M'aioc}}%
2673 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Io'unioc}}%
2674 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Io'ulioc}}%
2675 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{A'ugoustoc}}%
2676 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{Sept'embrioc}}%
2677 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Okt'wbrioc}}%
2678 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{No'embrioc}}%
2679 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Dek'embrioc}}%
2680 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Ian##1{}}}%
2681 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
2682 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{M'ar##1{}}}%
2683 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
2684 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{M'ai}}%
2685 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Io'un##1{}}}%
2686 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Io'ul##1{}}}%
2687 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{A'ug##1{}}}%
2688 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sept##1{}}}%
2689 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
2690 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{No'e##1{}}}%
2691 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dek##1{}}}%
2692 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Sto}}%
2693 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Sto}}%
2694 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Epim##1{}}}%
2695 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Epimelht'hc}}%
2696 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Epim##1{}}}%
2697 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Epimelht'ec}}%
2698 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{T'om##1{}}}%
2699 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{T'omoc}}%
2700 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{'Etom##1{}}}%
2701 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{'Etoc}}%
2702 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Ar##1{}}}%
2703 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Arijm'oc}}%
2704 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{'Ekd##1{}}}%
2705 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{'Ekdosh}}%
2706 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
2707 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
2708 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Kef##1{}}}%
2709 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Kef'alaio}}%
2710 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{Sel##1{}}}%
2711 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Sel'ida}}%
2712 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Sel##1{}}}%
2713 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Sel'idec}}%
2714 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Teqn.\ Anaf##1{}}}%
2715 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Teqnik'h Anafor'a}}%
2716 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, ep'iskeyh thn ##1}}%
2717 \def\btxfnamespaceshort{\,}%
2718 \def\btxfnamespacelong{ }%
2719 \def\btxnumeralshort##1{\protect\foreignlanguage{#1}{%
2720 \ifnumber{##1}{##1h}{##1}}}%
2721 \def\btxnumerallong##1{\protect\foreignlanguage{#1}{\ifnumber{##1}{%
2722 \ifcase##1 ##1h\or pr'wth\or de'uterh\or tr'ith\or t'etarth%
2723 \or p'empth\or 'ekth\or 'ebdomh\or 'ogdoh\or 'enath\else ##1h\fi
2724 }{##1}}}%
2725 % \end{macrocode}
2726 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
2727 % \begin{macrocode}
2728 \def\btxprintmonthyearnum##1##2{##1/##2}%
2729 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
2730 % \end{macrocode}
2731 % Names of all known languages in the current language.
2732 % \begin{macrocode}
2733 \ifbbbblanguagenames
2734 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{agglik'a}}%
2735 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{germanik'a}}%
2736 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portogalik'a}}%
2737 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portogalik'a}}%
2738 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{agglik'a}}%
2739 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{boulgarik'a}}%
2740 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{agglik'a}}%
2741 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{gallik'a}}%
2742 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalanik'a}}%
2743 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroatik'a}}%
2744 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tseqik'a}}%
2745 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danik'a}}%
2746 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{ollandik'a}}%
2747 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{agglik'a}}%
2748 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
2749 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finlandik'a}}%
2750 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{gallik'a}}%
2751 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{gallik'a}}%
2752 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{gallik'a}}%
2753 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{germanik'a}}%
2754 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{germanik'a}}%
2755 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{ellhnik'a}}%
2756 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{ebra"ik'a}}%
2757 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ouggrik'a}}%
2758 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandik'a}}%
2759 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlandik'a}}%
2760 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italik'a}}%
2761 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latinik'a}}%
2762 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{germanik'a}}%
2763 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{germanik'a}}%
2764 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norbhgik'a}}%
2765 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{n'ea norbhgik'a}}%
2766 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polwnik'a}}%
2767 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portogalik'a}}%
2768 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portogalik'a}}%
2769 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{rwsik'a}}%
2770 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skwts'ezika}}%
2771 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbik'a}}%
2772 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{ispanik'a}}%
2773 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{souhdik'a}}%
2774 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{tourkik'a}}%
2775 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{agglik'a}}%
2776 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{agglik'a}}%
2777 \fi
2778 }
2779 % \end{macrocode}
2780 % \end{macro}
2781 % Append the definitions to the language-calling commands.
2782 % \begin{macrocode}
2783 \AtBeginDocument{%
2784 \ifbbbbfixlanguage
2785 \else
2786 \bbbbaddto{greek}{bibsgreek}
2787 \fi
2788 \bbbbaddto{greek}{btxifchangecaseoff}
2789 }
2790 %</greek>
2791 % \end{macrocode}
2792 %
2793 %
2794 % \subsubsection{Norwegian}
2795 % \begin{macrocode}
2796 %<*norsk>
2797 % \end{macrocode}
2798 %
2799 % The language definition for Norwegian was provided by Hans Fredrik
2800 % Nordhaug.
2801 %
2802 % \begin{macro}{\bibsnorsk}
2803 % Bibliographic commands for Norsk.
2804 % \begin{macrocode}
2805 \newcommand\bibsnorsk[1][norsk]{%
2806 \def\biblanguagename{#1}%
2807 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
2808 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
2809 \def\btxandshort##1{\protect\foreignlanguage{#1}{og}}%
2810 \def\btxandlong##1{\protect\foreignlanguage{#1}{og}}%
2811 \def\btxandcomma##1{}%
2812 \def\btxinlong##1{\protect\foreignlanguage{#1}{i}}%
2813 \def\btxinshort##1{\protect\foreignlanguage{#1}{i}}%
2814 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{av}}%
2815 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{i}}%
2816 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{av}}%
2817 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{i}}%
2818 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
2819 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redakt\o r}}%
2820 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
2821 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redakt\o rer}}%
2822 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{bd##1{}}}%
2823 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{bind}}%
2824 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
2825 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volum}}%
2826 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nr##1{}}}%
2827 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nummer}}%
2828 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{utg##1{}}}%
2829 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{utgave}}%
2830 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
2831 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
2832 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{kap##1{}}}%
2833 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{kapittel}}%
2834 \def\btxpageshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
2835 \def\btxpagelong##1{\protect\foreignlanguage{#1}{side}}%
2836 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
2837 \def\btxpageslong##1{\protect\foreignlanguage{#1}{sider}}%
2838 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Masteroppgave}}%
2839 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{PhD-avhandling}}%
2840 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{tekn.\ rap##1{}}}%
2841 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{teknisk rapport}}%
2842 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januar}}%
2843 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februar}}%
2844 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Mars}}%
2845 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
2846 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Mai}}%
2847 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Juni}}%
2848 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Juli}}%
2849 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{August}}%
2850 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
2851 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktober}}%
2852 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
2853 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Desember}}%
2854 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
2855 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
2856 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
2857 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
2858 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Mai}}%
2859 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1{}}}%
2860 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1{}}}%
2861 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
2862 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
2863 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
2864 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
2865 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Des##1{}}}%
2866 \def\Btxinlong##1{\protect\foreignlanguage{#1}{I}}%
2867 \def\Btxinshort##1{\protect\foreignlanguage{#1}{I}}%
2868 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
2869 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redakt\o r}}%
2870 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
2871 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redakt\o rer}}%
2872 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Bd##1{}}}%
2873 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Bind}}%
2874 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
2875 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volum}}%
2876 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
2877 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nummer}}%
2878 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Utg##1{}}}%
2879 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Utgave}}%
2880 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
2881 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
2882 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Kap##1{}}}%
2883 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Kapittel}}%
2884 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
2885 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Side}}%
2886 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
2887 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Sider}}%
2888 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ rap##1{}}}%
2889 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Teknisk rapport}}%
2890 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, sjekket: ##1}}%
2891 \def\btxfnamespaceshort{\,}%
2892 \def\btxfnamespacelong{ }%
2893 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
2894 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
2895 % \end{macrocode}
2896 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
2897 % \begin{macrocode}
2898 \def\btxprintmonthyearnum##1##2{##1/##2}%
2899 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
2900 % \end{macrocode}
2901 % Names of all known languages in the current language.
2902 % \begin{macrocode}
2903 \ifbbbblanguagenames
2904 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engelsk}}%
2905 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{tysk}}%
2906 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugisisk}}%
2907 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugisisk}}%
2908 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engelsk}}%
2909 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgarsk}}%
2910 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engelsk}}%
2911 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{fransk}}%
2912 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalansk}}%
2913 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroatisk}}%
2914 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tsjekkisk}}%
2915 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dansk}}%
2916 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{nederlandsk}}%
2917 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engelsk}}%
2918 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
2919 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finsk}}%
2920 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{fransk}}%
2921 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{fransk}}%
2922 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{fransk}}%
2923 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{tysk}}%
2924 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{tysk}}%
2925 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{gr\ae sk}}%
2926 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebraisk}}%
2927 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ungarsk}}%
2928 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandsk}}%
2929 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irsk}}%
2930 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italiensk}}%
2931 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latinsk}}%
2932 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{tysk}}%
2933 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{tysk}}%
2934 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norsk}}%
2935 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{nynorsk}}%
2936 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polsk}}%
2937 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugisisk}}%
2938 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugisisk}}%
2939 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russisk}}%
2940 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skotsk}}%
2941 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbisk}}%
2942 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spansk}}%
2943 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{svensk}}%
2944 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{tyrkisk}}%
2945 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engelsk}}%
2946 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engelsk}}%
2947 \fi
2948 }
2949 \newcommand\bibsnorwegian{\bibsnorsk}
2950 % \end{macrocode}
2951 % \end{macro}
2952 % Append the definitions to the language-calling commands.
2953 % \begin{macrocode}
2954 \AtBeginDocument{%
2955 \ifbbbbfixlanguage
2956 \else
2957 \bbbbaddto{norsk}{bibsnorsk}
2958 \fi
2959 % \end{macrocode}
2960 % Switch off the change of case in titles for Norsk by
2961 % appending \cs{btxifchangecaseoff} to \cs{extrasnorsk}.
2962 % \begin{macrocode}
2963 \bbbbaddto{norsk}{btxifchangecaseoff}
2964 }
2965 %</norsk>
2966 % \end{macrocode}
2967 %
2968 % \subsubsection{French}
2969 % \changes{0.32}{2003/05/06}{Added French language}%
2970 % \begin{macrocode}
2971 %<*french>
2972 % \end{macrocode}
2973 %
2974 % \begin{macro}{\bibsfrench}
2975 % \changes{1.00}{2005/02/16}{Handle package \texttt{frenchpro}}%
2976 % |french.sty| already defines \cs{bibsfrench}.
2977 % In this case it has to be redefined, otherwise newly defined.
2978 % \begin{macrocode}
2979 \bbbbifpackageloaded{french}{}{\newcommand\bibsfrench{}}
2980 % \end{macrocode}
2981 % Bibliographic commands for French.
2982 % \begin{macrocode}
2983 \renewcommand\bibsfrench[1][french]{%
2984 \def\biblanguagename{#1}%
2985 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
2986 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
2987 \def\btxandshort##1{\protect\foreignlanguage{#1}{et}}%
2988 \def\btxandlong##1{\protect\foreignlanguage{#1}{et}}%
2989 \def\btxandcomma##1{}%
2990 \def\btxinlong##1{\protect\foreignlanguage{#1}{dans}}%
2991 \def\btxinshort##1{\protect\foreignlanguage{#1}{dans}}%
2992 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{de}}%
2993 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{dans}}%
2994 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{de}}%
2995 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{dans}}%
2996 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{r\'ed##1{}}}%
2997 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{r\'edacteur}}%
2998 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{r\'eds##1{}}}%
2999 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{r\'edacteurs}}%
3000 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{t##1{}}}%
3001 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{tome}}%
3002 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
3003 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
3004 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{%
3005 n\textsuperscript{o}\kern.2em\relax{}}}%
3006 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{num\'ero}}%
3007 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{\'ed##1{}}}%
3008 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{\'edition}}%
3009 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
3010 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
3011 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{chap##1{}}}%
3012 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{chapitre}}%
3013 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
3014 \def\btxpagelong##1{\protect\foreignlanguage{#1}{page}}%
3015 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
3016 \def\btxpageslong##1{\protect\foreignlanguage{#1}{pages}}%
3017 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{M\'emoire de ma\^itrise}}%
3018 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Th\`ese de doctorat}}%
3019 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{rap.\ tech##1{}}}%
3020 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{rapport technique}}%
3021 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{janvier}}%
3022 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{f\'evrier}}%
3023 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{mars}}%
3024 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{avril}}%
3025 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{mai}}%
3026 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{juin}}%
3027 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{juillet}}%
3028 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{ao\^ut}}%
3029 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{septembre}}%
3030 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{octobre}}%
3031 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{novembre}}%
3032 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{d\'ecembre}}%
3033 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{jan##1{}}}%
3034 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{f\'ev##1{}}}%
3035 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mar##1{}}}%
3036 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{avr##1{}}}%
3037 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{mai}}%
3038 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{juin}}%
3039 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{juil##1{}}}%
3040 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{ao\^ut}}%
3041 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{sept##1{}}}%
3042 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{oct##1{}}}%
3043 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
3044 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{d\'ec##1{}}}%
3045 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Dans}}%
3046 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Dans}}%
3047 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{R\'ed##1{}}}%
3048 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{R\'edacteur}}%
3049 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{R\'eds##1{}}}%
3050 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{R\'edacteurs}}%
3051 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{T##1{}}}%
3052 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Tome}}%
3053 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
3054 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
3055 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{%
3056 N\textsuperscript{o}\kern.2em\relax}}%
3057 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Num\'ero}}%
3058 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{\'Ed##1{}}}%
3059 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{\'Edition}}%
3060 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
3061 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
3062 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Chap##1{}}}%
3063 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Chapitre}}%
3064 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
3065 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Page}}%
3066 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
3067 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Pages}}%
3068 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Rap. tech##1{}}}%
3069 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Rapport technique}}%
3070 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, visit\'e le ##1}}%
3071 \def\btxfnamespaceshort{\,}%
3072 \def\btxfnamespacelong{ }%
3073 \def\btxnumeralshort##1{\btxnumeralfrench{#1}{##1}}%
3074 \def\btxnumerallong##1{\btxnumeralfrench{#1}{##1}}%
3075 % \end{macrocode}
3076 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
3077 % \begin{macrocode}
3078 \def\btxprintmonthyearnum##1##2{##1/##2}%
3079 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
3080 % \end{macrocode}
3081 % Names of all known languages in the current language.
3082 % \begin{macrocode}
3083 \ifbbbblanguagenames
3084 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{anglais}}%
3085 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{allemand}}%
3086 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugais}}%
3087 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugais}}%
3088 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{anglais}}%
3089 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgare}}%
3090 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{anglais}}%
3091 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{fran\c{c}ais}}%
3092 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catalan}}%
3093 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croate}}%
3094 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tch\`eque}}%
3095 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danois}}%
3096 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{n\'eerlandais}}%
3097 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{anglais}}%
3098 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
3099 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finnois}}%
3100 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{fran\c{c}ais}}%
3101 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{fran\c{c}ais}}%
3102 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{fran\c{c}ais}}%
3103 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{allemand}}%
3104 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{allemand}}%
3105 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{grec}}%
3106 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{h\'ebreu}}%
3107 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{hongrois}}%
3108 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandais}}%
3109 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlandais}}%
3110 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italien}}%
3111 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latin}}%
3112 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{allemand}}%
3113 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{allemand}}%
3114 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norv\'egien}}%
3115 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{nouveau
3116 norv\'egien}}%
3117 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polonais}}%
3118 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugais}}%
3119 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugais}}%
3120 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russe}}%
3121 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{\'ecossais}}%
3122 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbe}}%
3123 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espagnol}}%
3124 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{su\'edois}}%
3125 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turc}}%
3126 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{anglais}}%
3127 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{anglais}}%
3128 \fi
3129 }
3130 % \end{macrocode}
3131 % \end{macro}
3132 % Copy the commands to the other languages.
3133 % \begin{macrocode}
3134 \newcommand\bibsfrancais{\bibsfrench[francais]}
3135 \newcommand\bibsfrenchb{\bibsfrench[frenchb]}
3136 \newcommand\bibscanadien{\bibsfrench[canadien]}
3137 % \end{macrocode}
3138 % Append the definitions to the language-calling commands.
3139 % \begin{macrocode}
3140 \AtBeginDocument{%
3141 \ifbbbbfixlanguage
3142 \else
3143 \bbbbaddto{francais}{bibsfrancais}
3144 \bbbbaddto{french}{bibsfrench}
3145 \bbbbaddto{frenchb}{bibsfrenchb}
3146 \bbbbaddto{canadien}{bibscanadien}
3147 \fi
3148 % \end{macrocode}
3149 % Switch on the change of case in titles for all French dialects by
3150 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
3151 % \begin{macrocode}
3152 \bbbbaddto{francais}{btxifchangecaseoff}
3153 \bbbbaddto{french}{btxifchangecaseoff}
3154 \bbbbaddto{frenchb}{btxifchangecaseoff}
3155 \bbbbaddto{canadien}{btxifchangecaseoff}
3156 }
3157 % \end{macrocode}
3158 % \changes{1.34}{2021/01/06}{Moved \cs{btxnumeralfrench} into the style file}%
3159 % \changes{0.43}{2004/01/06}{Warn if using \texttt{french} language}%
3160 % \changes{0.44}{2004/01/06}{Only warn if babel version is too old}%
3161 % \changes{1.00}{2005/02/16}{Remove warning for old babel package with
3162 % \texttt{french} language}%
3163 % \begin{macrocode}
3164 %</french>
3165 % \end{macrocode}
3166 %
3167 % \subsubsection{Romanian}
3168 % \changes{1.31}{2012/01/03}{Added Serbian, Czech, and Romanian language}%
3169 % \begin{macrocode}
3170 %<*romanian>
3171 % \end{macrocode}
3172 %
3173 % \begin{macro}{\bibsromanian}
3174 % Bibliographic commands for Romanian.
3175 % \begin{macrocode}
3176 \newcommand\bibsromanian[1][romanian]{%
3177 \def\biblanguagename{#1}%
3178 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
3179 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
3180 \def\btxandshort##1{\protect\foreignlanguage{#1}{\hskip-1.5ex}}%
3181 \def\btxandlong##1{\protect\foreignlanguage{#1}{\c{s}i}}%
3182 \def\btxandcomma##1{,}%
3183 \def\btxinlong##1{\protect\foreignlanguage{#1}{\^{i}n}}%
3184 \def\btxinshort##1{\protect\foreignlanguage{#1}{\^{i}n}}%
3185 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{din seria}}%
3186 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{\^{i}n}}%
3187 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{din seria}}%
3188 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{\^{i}n}}%
3189 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
3190 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
3191 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
3192 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{editori}}%
3193 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
3194 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volumul}}%
3195 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{an##1{}}}%
3196 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{anul}}%
3197 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nr##1{}}}%
3198 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{num\~{a}rul}}%
3199 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{Ed{##1}}}%
3200 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{Edi\c{t}ia}}%
3201 \def\btxeditionnumshort##1##2{\btxeditionshort{##2}~\btxnumeralshort{##1}}%
3202 \def\btxeditionnumlong##1##2{\btxeditionlong{##2}~\btxnumerallong{##1}}%
3203 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{cap##1{}}}%
3204 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{capitolul}}%
3205 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
3206 \def\btxpagelong##1{\protect\foreignlanguage{#1}{pagina}}%
3207 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
3208 \def\btxpageslong##1{\protect\foreignlanguage{#1}{paginile}}%
3209 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{%
3210 Tez\~{a} de dizerta\c{t}ie}}%
3211 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Tez\~{a} de doctorat}}%
3212 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Rap.\ tehn##1{}}}%
3213 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Raport tehnic}}%
3214 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{ianuarie}}%
3215 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{februarie}}%
3216 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{martie}}%
3217 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{aprilie}}%
3218 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{mai}}%
3219 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{iunie}}%
3220 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{iulie}}%
3221 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{august}}%
3222 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{septembrie}}%
3223 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{octombrie}}%
3224 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{noiembrie}}%
3225 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{decembrie}}%
3226 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{ian##1{}}}%
3227 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{feb##1{}}}%
3228 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mart##1{}}}%
3229 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{apr##1{}}}%
3230 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{mai}}%
3231 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{iun}}%
3232 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{iul}}%
3233 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{aug##1{}}}%
3234 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{sept##1{}}}%
3235 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{oct##1{}}}%
3236 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
3237 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{dec##1{}}}%
3238 \def\Btxinlong##1{\protect\foreignlanguage{#1}{\^{I}}}%
3239 \def\Btxinshort##1{\protect\foreignlanguage{#1}{\^{I}}}%
3240 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
3241 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
3242 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
3243 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Editori}}%
3244 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
3245 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volumul}}%
3246 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{An##1{}}}%
3247 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Anul}}%
3248 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
3249 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Num\~{a}}}%
3250 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{\hskip-1.5ex}}%
3251 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{\hskip-1.5ex}}%
3252 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
3253 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
3254 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Cap##1{}}}%
3255 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Capitolul}}%
3256 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
3257 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Pagina}}%
3258 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
3259 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Paginile}}%
3260 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Rap.\ tehn##1{}}}%
3261 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Raport tehnic}}%
3262 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, accesat la ##1}}%
3263 \def\btxfnamespaceshort{}%
3264 \def\btxfnamespacelong{ }%
3265 \def\btxnumeralshort##1{\btxnumeralromanian{#1}{##1}}%
3266 \def\btxnumerallong##1{\btxnumeralromanian{#1}{##1}}%
3267 % \end{macrocode}
3268 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
3269 % \begin{macrocode}
3270 \def\btxprintmonthyearnum##1##2{##1/##2}%
3271 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
3272 \ifbbbblanguagenames
3273 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{englez\~{a}}}%
3274 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{german\~{a}}}%
3275 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portughez\~{a}}}%
3276 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portughez\~{a}}}%
3277 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{englez\~{a}}}%
3278 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgar\~{a}}}%
3279 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{englez\~{a}}}%
3280 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{francez\~{a}}}%
3281 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{cataln\~{a}}}%
3282 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croat\~{a}}}%
3283 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{ceh\~{a}}}%
3284 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danez\~{a}}}%
3285 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{olandez\~{a}}}%
3286 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{englez\~{a}}}%
3287 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
3288 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finlandez\~{a}}}%
3289 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{fracez\~{a}}}%
3290 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{francez\~{a}}}%
3291 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{francez\~{a}}}%
3292 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{german\~{a}}}%
3293 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{german\~{a}}}%
3294 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{greac\~{a}}}%
3295 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{ebraic\~{a}}}%
3296 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ungar\~{a}}}%
3297 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandez\~{a}}}%
3298 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlandez\~{a}}}%
3299 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italian\~{a}}}%
3300 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latin\~{a}}}%
3301 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{german\~{a}}}%
3302 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{german\~{a}}}%
3303 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norvegian\~{a}}}%
3304 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{neo-norvegian\~{a}}}%
3305 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polonez\~{a}}}%
3306 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portughez\~{a}}}%
3307 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portughez\~{a}}}%
3308 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{rus\~{a}}}%
3309 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{sco\c{t}ian\~{a}}}%
3310 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{s\^{i}rb\~{a}}}%
3311 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spaniol\~{a}}}%
3312 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{suedez\~{a}}}%
3313 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turc\~{a}}}%
3314 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{englez\~{a}}}%
3315 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{englez\~{a}}}%
3316 \fi
3317 }
3318 % \end{macrocode}
3319 % \end{macro}
3320 % Append the definitions to the language-calling commands.
3321 % \begin{macrocode}
3322 \AtBeginDocument{%
3323 \ifbbbbfixlanguage
3324 \else
3325 \bbbbaddto{romanian}{bibsromanian}
3326 \fi
3327 % \end{macrocode}
3328 % Switch off the change of case in titles for all Romanian dialects by
3329 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
3330 % \begin{macrocode}
3331 \bbbbaddto{romanian}{btxifchangecaseoff}
3332 }
3333 %</romanian>
3334 % \end{macrocode}
3335 %
3336 % \subsubsection{Russian}
3337 % \begin{macrocode}
3338 %<*russian>
3339 % \end{macrocode}
3340 %
3341 % \begin{macro}{\bibsrussian}
3342 % Bibliographic commands for Russian.
3343 % \begin{macrocode}
3344 \newcommand\bibsrussian[1][russian]{%
3345 \def\biblanguagename{#1}%
3346 \def\btxetalshort##1{\protect\foreignlanguage{#1}{\IeC {\cyri }~\IeC
3347 {\cyrd }\IeC {\cyrr }.##1{}}}%
3348 \def\btxetallong##1{\protect\foreignlanguage{#1}{\IeC {\cyri }~\IeC
3349 {\cyrd }\IeC {\cyrr }\IeC {\cyru }\IeC {\cyrg }\IeC {\cyri }\IeC
3350 {\cyre }}}%
3351 \def\btxandshort##1{\protect\foreignlanguage{#1}{\IeC {\cyri }}}%
3352 \def\btxandlong##1{\protect\foreignlanguage{#1}{\IeC {\cyri }}}%
3353 \def\btxandcomma##1{,}%
3354 \def\btxinlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrv }}}%
3355 \def\btxinshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrv }}}%
3356 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{\IeC {\cyri
3357 }\IeC {\cyrz }}}%
3358 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrv }}}%
3359 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{\IeC {\cyri
3360 }\IeC {\cyrz }}}%
3361 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{\IeC {\cyrv }}}%
3362 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrr
3363 }\IeC {\cyre }\IeC {\cyrd }.##1{}}}%
3364 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrr }\IeC
3365 {\cyre }\IeC {\cyrd }\IeC {\cyra }\IeC {\cyrk }\IeC {\cyrt }\IeC
3366 {\cyro }\IeC {\cyrr }}}%
3367 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrr
3368 }\IeC {\cyre }\IeC {\cyrd }.##1{}}}%
3369 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{\IeC {\cyrr
3370 }\IeC {\cyre }\IeC {\cyrd }\IeC {\cyra }\IeC {\cyrk }\IeC {\cyrt
3371 }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrery }}}%
3372 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrt }.##1{}}}%
3373 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{\IeC {\cyrt }\IeC
3374 {\cyro }\IeC {\cyrm }}}%
3375 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrt }.##1{}}}%
3376 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{\IeC {\cyrt }\IeC
3377 {\cyro }\IeC {\cyrm }}}%
3378 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{%
3379 n\textsuperscript{\underline{o}}}}%
3380 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrn }\IeC
3381 {\cyro }\IeC {\cyrm }\IeC {\cyre }\IeC {\cyrr }}}%
3382 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrr
3383 }\IeC {\cyre }\IeC {\cyrd }.##1{}}}%
3384 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrr
3385 }\IeC {\cyre }\IeC {\cyrd }\IeC {\cyra }\IeC {\cyrk }\IeC {\cyrc
3386 }\IeC {\cyri }\IeC {\cyrya }}}%
3387 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
3388 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
3389 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{\IeC {\cyrg
3390 }\IeC {\cyrl }.##1{}}}%
3391 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrg
3392 }\IeC {\cyrl }\IeC {\cyra }\IeC {\cyrv }\IeC {\cyra }}}%
3393 \def\btxpageshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrs }\IeC
3394 {\cyrt }\IeC {\cyrr }.##1{}}}%
3395 \def\btxpagelong##1{\protect\foreignlanguage{#1}{\IeC {\cyrs }\IeC
3396 {\cyrt }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyri }\IeC
3397 {\cyrc }\IeC {\cyra }}}%
3398 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrs }\IeC
3399 {\cyrt }\IeC {\cyrr }.##1{}}}%
3400 \def\btxpageslong##1{\protect\foreignlanguage{#1}{\IeC {\cyrs }\IeC
3401 {\cyrt }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyri }\IeC
3402 {\cyrc }\IeC {\cyrery }}}%
3403 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{\IeC {\CYRD }\IeC
3404 {\cyri }\IeC {\cyrp }\IeC {\cyrl }\IeC {\cyro }\IeC {\cyrm }
3405 \IeC {\cyrm }\IeC {\cyra }\IeC {\cyrg }\IeC {\cyri }\IeC {\cyrs
3406 }\IeC {\cyrt }\IeC {\cyrr }\IeC {\cyra }}}%
3407 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{\IeC {\CYRK }\IeC
3408 {\cyra }\IeC {\cyrn }\IeC {\cyrd }\IeC {\cyri }\IeC {\cyrd }\IeC
3409 {\cyra }\IeC {\cyrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyra }\IeC
3410 {\cyrya } \IeC {\cyrd }\IeC {\cyri }\IeC {\cyrs }\IeC {\cyrs
3411 }\IeC {\cyre }\IeC {\cyrr }\IeC {\cyrt }\IeC {\cyra }\IeC {\cyrc
3412 }\IeC {\cyri }\IeC {\cyrya }}}%
3413 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrt
3414 }\IeC {\cyre }\IeC {\cyrh }.\ \IeC {\cyro }\IeC {\cyrt }\IeC
3415 {\cyrch }\IeC {\cyre }\IeC {\cyrt }##1{}}}%
3416 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{\IeC {\cyrt
3417 }\IeC {\cyre }\IeC {\cyrh }\IeC {\cyrn }\IeC {\cyri }\IeC
3418 {\cyrch }\IeC {\cyre }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri
3419 }\IeC {\cyrishrt } \IeC {\cyro }\IeC {\cyrt }\IeC {\cyrch }\IeC
3420 {\cyre }\IeC {\cyrt }}}%
3421 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrya
3422 }\IeC {\cyrn }\IeC {\cyrv }\IeC {\cyra }\IeC {\cyrr }\IeC
3423 {\cyrsftsn }}}%
3424 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{\IeC {\cyrf }\IeC
3425 {\cyre }\IeC {\cyrv }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrl }\IeC
3426 {\cyrsftsn }}}%
3427 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrm }\IeC
3428 {\cyra }\IeC {\cyrr }\IeC {\cyrt }}}%
3429 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{\IeC {\cyra }\IeC
3430 {\cyrp }\IeC {\cyrr }\IeC {\cyre }\IeC {\cyrl }\IeC {\cyrsftsn
3431 }}}%
3432 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{\IeC {\cyrm }\IeC
3433 {\cyra }\IeC {\cyrishrt }}}%
3434 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{\IeC {\cyri }\IeC
3435 {\cyryu }\IeC {\cyrn }\IeC {\cyrsftsn }}}%
3436 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{\IeC {\cyri }\IeC
3437 {\cyryu }\IeC {\cyrl }\IeC {\cyrsftsn }}}%
3438 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{\IeC {\cyra }\IeC
3439 {\cyrv }\IeC {\cyrg }\IeC {\cyru }\IeC {\cyrs }\IeC {\cyrt }}}%
3440 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{\IeC {\cyrs }\IeC
3441 {\cyre }\IeC {\cyrn }\IeC {\cyrt }\IeC {\cyrya }\IeC {\cyrb
3442 }\IeC {\cyrr }\IeC {\cyrsftsn }}}%
3443 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{\IeC {\cyro }\IeC
3444 {\cyrk }\IeC {\cyrt }\IeC {\cyrya }\IeC {\cyrb }\IeC {\cyrr
3445 }\IeC {\cyrsftsn }}}%
3446 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{\IeC {\cyrn }\IeC
3447 {\cyro }\IeC {\cyrya }\IeC {\cyrb }\IeC {\cyrr }\IeC {\cyrsftsn
3448 }}}%
3449 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{\IeC {\cyrd }\IeC
3450 {\cyre }\IeC {\cyrk }\IeC {\cyra }\IeC {\cyrb }\IeC {\cyrr }\IeC
3451 {\cyrsftsn }}}%
3452 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrya
3453 }\IeC {\cyrn }\IeC {\cyrv }.##1{}}}%
3454 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrf
3455 }\IeC {\cyre }\IeC {\cyrv }.##1{}}}%
3456 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrm
3457 }\IeC {\cyra }\IeC {\cyrr }.##1{}}}%
3458 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{\IeC {\cyra
3459 }\IeC {\cyrp }\IeC {\cyrr }.##1{}}}%
3460 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrm
3461 }\IeC {\cyra }\IeC {\cyrishrt }}}%
3462 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{\IeC {\cyri
3463 }\IeC {\cyryu }\IeC {\cyrn }\IeC {\cyrsftsn }##1{}}}%
3464 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{\IeC {\cyri
3465 }\IeC {\cyryu }\IeC {\cyrl }\IeC {\cyrsftsn }##1{}}}%
3466 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{\IeC {\cyra
3467 }\IeC {\cyrv }\IeC {\cyrg }.##1{}}}%
3468 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrs
3469 }\IeC {\cyre }\IeC {\cyrn }.##1{}}}%
3470 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{\IeC {\cyro
3471 }\IeC {\cyrk }\IeC {\cyrt }.##1{}}}%
3472 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrn
3473 }\IeC {\cyro }\IeC {\cyrya }.##1{}}}%
3474 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{\IeC {\cyrd
3475 }\IeC {\cyre }\IeC {\cyrk }.##1{}}}%
3476 \def\Btxinlong##1{\protect\foreignlanguage{#1}{\IeC {\CYRV }}}%
3477 \def\Btxinshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRV }}}%
3478 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRR
3479 }\IeC {\cyre }\IeC {\cyrd }.##1{}}}%
3480 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{\IeC {\CYRR }\IeC
3481 {\cyre }\IeC {\cyrd }\IeC {\cyra }\IeC {\cyrk }\IeC {\cyrt }\IeC
3482 {\cyro }\IeC {\cyrr }}}%
3483 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRR
3484 }\IeC {\cyre }\IeC {\cyrd }.##1{}}}%
3485 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{\IeC {\CYRR
3486 }\IeC {\cyre }\IeC {\cyrd }\IeC {\cyra }\IeC {\cyrk }\IeC {\cyrt
3487 }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrery }}}%
3488 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRT }.##1{}}}%
3489 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{\IeC {\CYRT }\IeC
3490 {\cyro }\IeC {\cyrm }}}%
3491 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRT }.##1{}}}%
3492 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{\IeC {\CYRT }\IeC
3493 {\cyro }\IeC {\cyrm }}}%
3494 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{%
3495 N\textsuperscript{\underline{o}}}}%
3496 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{\IeC {\CYRN }\IeC
3497 {\cyro }\IeC {\cyrm }\IeC {\cyre }\IeC {\cyrr }}}%
3498 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRR
3499 }\IeC {\cyre }\IeC {\cyrd }.##1{}}}%
3500 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{\IeC {\CYRR
3501 }\IeC {\cyre }\IeC {\cyrd }\IeC {\cyra }\IeC {\cyrk }\IeC {\cyrc
3502 }\IeC {\cyri }\IeC {\cyrya }}}%
3503 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
3504 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
3505 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{\IeC {\CYRG
3506 }\IeC {\cyrl }.##1{}}}%
3507 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{\IeC {\CYRG
3508 }\IeC {\cyrl }\IeC {\cyra }\IeC {\cyrv }\IeC {\cyra }}}%
3509 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRS }\IeC
3510 {\cyrt }\IeC {\cyrr }.##1{}}}%
3511 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{\IeC {\CYRS }\IeC
3512 {\cyrt }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyri }\IeC
3513 {\cyrc }\IeC {\cyra }}}%
3514 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRS }\IeC
3515 {\cyrt }\IeC {\cyrr }.##1{}}}%
3516 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{\IeC {\CYRS }\IeC
3517 {\cyrt }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyri }\IeC
3518 {\cyrc }\IeC {\cyrery }}}%
3519 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{\IeC {\CYRT
3520 }\IeC {\cyre }\IeC {\cyrh }.\ \IeC {\cyro }\IeC {\cyrt }\IeC
3521 {\cyrch }\IeC {\cyre }\IeC {\cyrt }##1{}}}%
3522 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{\IeC {\CYRT
3523 }\IeC {\cyre }\IeC {\cyrh }\IeC {\cyrn }\IeC {\cyri }\IeC
3524 {\cyrch }\IeC {\cyre }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri
3525 }\IeC {\cyrishrt } \IeC {\cyro }\IeC {\cyrt }\IeC {\cyrch }\IeC
3526 {\cyre }\IeC {\cyrt }}}%
3527 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, \IeC {\cyrp
3528 }\IeC {\cyro }\IeC {\cyrs }\IeC {\cyre }\IeC {\cyrshch }\IeC
3529 {\cyre }\IeC {\cyrn }\IeC {\cyro } ##1}}%
3530 \def\btxfnamespaceshort{\,}%
3531 \def\btxfnamespacelong{ }%
3532 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
3533 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
3534 % \end{macrocode}
3535 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
3536 % \begin{macrocode}
3537 \def\btxprintmonthyearnum##1##2{##1/##2}%
3538 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
3539 \ifbbbblanguagenames
3540 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{\IeC
3541 {\cyra }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyrl }\IeC {\cyri
3542 }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3543 {\cyrishrt }}}%
3544 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{\IeC
3545 {\cyra }\IeC {\cyrv }\IeC {\cyrs }\IeC {\cyrt }\IeC {\cyrr
3546 }\IeC {\cyri }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC
3547 {\cyri }\IeC {\cyrishrt }}}%
3548 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{\IeC
3549 {\cyrp }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrt }\IeC {\cyru
3550 }\IeC {\cyrg }\IeC {\cyra }\IeC {\cyrl }\IeC {\cyrsftsn }\IeC
3551 {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3552 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{\IeC
3553 {\cyrp }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrt }\IeC {\cyru
3554 }\IeC {\cyrg }\IeC {\cyra }\IeC {\cyrl }\IeC {\cyrsftsn }\IeC
3555 {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3556 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{\IeC
3557 {\cyra }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyrl }\IeC {\cyri
3558 }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3559 {\cyrishrt }}}%
3560 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{\IeC
3561 {\cyrb }\IeC {\cyro }\IeC {\cyrl }\IeC {\cyrg }\IeC {\cyra
3562 }\IeC {\cyrr }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3563 {\cyrishrt }}}%
3564 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{\IeC
3565 {\cyra }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyrl }\IeC {\cyri
3566 }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3567 {\cyrishrt }}}%
3568 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{\IeC
3569 {\cyrf }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyrc
3570 }\IeC {\cyru }\IeC {\cyrz }\IeC {\cyrs }\IeC {\cyrk }\IeC
3571 {\cyri }\IeC {\cyrishrt }}}%
3572 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{\IeC
3573 {\cyrk }\IeC {\cyra }\IeC {\cyrt }\IeC {\cyra }\IeC {\cyrl
3574 }\IeC {\cyro }\IeC {\cyrn }\IeC {\cyrs }\IeC {\cyrk }\IeC
3575 {\cyri }\IeC {\cyrishrt }}}%
3576 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{\IeC
3577 {\cyrh }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrv }\IeC {\cyra
3578 }\IeC {\cyrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3579 {\cyrishrt }}}%
3580 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{\IeC
3581 {\cyrch }\IeC {\cyre }\IeC {\cyrsh }\IeC {\cyrs }\IeC {\cyrk
3582 }\IeC {\cyri }\IeC {\cyrishrt }}}%
3583 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{\IeC
3584 {\cyrd }\IeC {\cyra }\IeC {\cyrt }\IeC {\cyrs }\IeC {\cyrk
3585 }\IeC {\cyri }\IeC {\cyrishrt }}}%
3586 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{\IeC {\cyrg
3587 }\IeC {\cyro }\IeC {\cyrl }\IeC {\cyrl }\IeC {\cyra }\IeC
3588 {\cyrn }\IeC {\cyrd }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri
3589 }\IeC {\cyrishrt }}}%
3590 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{\IeC
3591 {\cyra }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyrl }\IeC {\cyri
3592 }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3593 {\cyrishrt }}}%
3594 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{\IeC
3595 {\cyrerev }\IeC {\cyrs }\IeC {\cyrp }\IeC {\cyre }\IeC {\cyrr
3596 }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyrt }\IeC {\cyro }}}%
3597 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{\IeC
3598 {\cyrf }\IeC {\cyri }\IeC {\cyrn }\IeC {\cyrs }\IeC {\cyrk
3599 }\IeC {\cyri }\IeC {\cyrishrt }}}%
3600 \def\btxlanguagenamefranceis{\protect\foreignlanguage{#1}{\IeC
3601 {\cyrf }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyrc
3602 }\IeC {\cyru }\IeC {\cyrz }\IeC {\cyrs }\IeC {\cyrk }\IeC
3603 {\cyri }\IeC {\cyrishrt }}}%
3604 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{\IeC
3605 {\cyrf }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyrc
3606 }\IeC {\cyru }\IeC {\cyrz }\IeC {\cyrs }\IeC {\cyrk }\IeC
3607 {\cyri }\IeC {\cyrishrt }}}%
3608 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{\IeC
3609 {\cyrf }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyrn }\IeC {\cyrc
3610 }\IeC {\cyru }\IeC {\cyrz }\IeC {\cyrs }\IeC {\cyrk }\IeC
3611 {\cyri }\IeC {\cyrishrt }}}%
3612 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{\IeC
3613 {\cyrn }\IeC {\cyre }\IeC {\cyrm }\IeC {\cyre }\IeC {\cyrc
3614 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3615 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{\IeC
3616 {\cyrn }\IeC {\cyre }\IeC {\cyrm }\IeC {\cyre }\IeC {\cyrc
3617 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3618 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{\IeC {\cyrg
3619 }\IeC {\cyrr }\IeC {\cyre }\IeC {\cyrch }\IeC {\cyre }\IeC
3620 {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3621 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{\IeC
3622 {\cyre }\IeC {\cyrv }\IeC {\cyrr }\IeC {\cyre }\IeC {\cyrishrt
3623 }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3624 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{\IeC
3625 {\cyrv }\IeC {\cyre }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyre
3626 }\IeC {\cyrr }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3627 {\cyrishrt }}}%
3628 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{\IeC
3629 {\cyri }\IeC {\cyrs }\IeC {\cyrl }\IeC {\cyra }\IeC {\cyrn
3630 }\IeC {\cyrd }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3631 {\cyrishrt }}}%
3632 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{\IeC {\cyri
3633 }\IeC {\cyrr }\IeC {\cyrl }\IeC {\cyra }\IeC {\cyrn }\IeC
3634 {\cyrd }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt
3635 }}}%
3636 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{\IeC
3637 {\cyri }\IeC {\cyrt }\IeC {\cyra }\IeC {\cyrl }\IeC {\cyrsftsn
3638 }\IeC {\cyrya }\IeC {\cyrn }\IeC {\cyrs }\IeC {\cyrk }\IeC
3639 {\cyri }\IeC {\cyrishrt }}}%
3640 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{\IeC {\cyrl
3641 }\IeC {\cyra }\IeC {\cyrt }\IeC {\cyri }\IeC {\cyrn }\IeC
3642 {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3643 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{\IeC
3644 {\cyrn }\IeC {\cyre }\IeC {\cyrm }\IeC {\cyre }\IeC {\cyrc
3645 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3646 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{\IeC
3647 {\cyrn }\IeC {\cyre }\IeC {\cyrm }\IeC {\cyre }\IeC {\cyrc
3648 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3649 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{\IeC {\cyrn
3650 }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrv }\IeC {\cyre }\IeC
3651 {\cyrzh }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3652 {\cyrishrt }}}%
3653 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{\IeC
3654 {\cyrn }\IeC {\cyro }\IeC {\cyrv }\IeC {\cyro }\IeC {\cyrn
3655 }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrv }\IeC {\cyre }\IeC
3656 {\cyrzh }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3657 {\cyrishrt }}}%
3658 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{\IeC
3659 {\cyrp }\IeC {\cyro }\IeC {\cyrl }\IeC {\cyrsftsn }\IeC {\cyrs
3660 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3661 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{\IeC
3662 {\cyrp }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrt }\IeC {\cyru
3663 }\IeC {\cyrg }\IeC {\cyra }\IeC {\cyrl }\IeC {\cyrsftsn }\IeC
3664 {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3665 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{\IeC
3666 {\cyrp }\IeC {\cyro }\IeC {\cyrr }\IeC {\cyrt }\IeC {\cyru
3667 }\IeC {\cyrg }\IeC {\cyra }\IeC {\cyrl }\IeC {\cyrsftsn }\IeC
3668 {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3669 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{\IeC
3670 {\cyrr }\IeC {\cyru }\IeC {\cyrs }\IeC {\cyrs }\IeC {\cyrk
3671 }\IeC {\cyri }\IeC {\cyrishrt }}}%
3672 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{\IeC
3673 {\cyrsh }\IeC {\cyro }\IeC {\cyrt }\IeC {\cyrl }\IeC {\cyra
3674 }\IeC {\cyrn }\IeC {\cyrd }\IeC {\cyrs }\IeC {\cyrk }\IeC
3675 {\cyri }\IeC {\cyrishrt }}}%
3676 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{\IeC
3677 {\cyrs }\IeC {\cyre }\IeC {\cyrr }\IeC {\cyrb }\IeC {\cyrs
3678 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3679 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{\IeC
3680 {\cyri }\IeC {\cyrs }\IeC {\cyrp }\IeC {\cyra }\IeC {\cyrn
3681 }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3682 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{\IeC
3683 {\cyrsh }\IeC {\cyrv }\IeC {\cyre }\IeC {\cyrd }\IeC {\cyrs
3684 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3685 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{\IeC
3686 {\cyrt }\IeC {\cyru }\IeC {\cyrr }\IeC {\cyre }\IeC {\cyrc
3687 }\IeC {\cyrk }\IeC {\cyri }\IeC {\cyrishrt }}}%
3688 \def\btxlanguagenameukrainian{\protect\foreignlanguage{#1}{\IeC
3689 {\cyru }\IeC {\cyrk }\IeC {\cyrr }\IeC {\cyra }\IeC {\cyri
3690 }\IeC {\cyrn }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3691 {\cyrishrt }}}%
3692 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{\IeC
3693 {\cyra }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyrl }\IeC {\cyri
3694 }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3695 {\cyrishrt }}}%
3696 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{\IeC
3697 {\cyra }\IeC {\cyrn }\IeC {\cyrg }\IeC {\cyrl }\IeC {\cyri
3698 }\IeC {\cyrishrt }\IeC {\cyrs }\IeC {\cyrk }\IeC {\cyri }\IeC
3699 {\cyrishrt }}}%
3700 \fi
3701 }
3702 % \end{macrocode}
3703 % \end{macro}
3704 % Copy the commands to the other languages.
3705 % \begin{macrocode}
3706 \newcommand\bibsrussianb{\bibsrussian[russianb]}
3707 % \end{macrocode}
3708 % Append the definitions to the language-calling commands.
3709 % \begin{macrocode}
3710 \AtBeginDocument{%
3711 \ifbbbbfixlanguage
3712 \else
3713 \bbbbaddto{russianb}{bibrussianb}
3714 \bbbbaddto{russian}{bibsrussian}
3715 \fi
3716 % \end{macrocode}
3717 % Switch off the change of case in titles for all Russian dialects by
3718 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
3719 % \begin{macrocode}
3720 \bbbbaddto{russianb}{btxifchangecaseoff}
3721 \bbbbaddto{russian}{btxifchangecaseoff}
3722 }
3723 %</russian>
3724 % \end{macrocode}
3725 %
3726 % \subsubsection{Serbian}
3727 % \changes{1.31}{2012/01/03}{Added Serbian, Czech, and Romanian language}%
3728 % \begin{macrocode}
3729 %<*serbian>
3730 % \end{macrocode}
3731 %
3732 % The language definition for Serbian was provided by Zoran Filipovic.
3733 %
3734 % \begin{macro}{\bibsserbian}
3735 % Bibliographic commands for Serbian.
3736 % \begin{macrocode}
3737 \newcommand\bibsserbian[1][serbian]{%
3738 \def\biblanguagename{#1}%
3739 \def\btxetalshort##1{\protect\foreignlanguage{#1}{i~dr.##1{}}}%
3740 \def\btxetallong##1{\protect\foreignlanguage{#1}{i~drugi}}%
3741 \def\btxandshort##1{\protect\foreignlanguage{#1}{i}}%
3742 \def\btxandlong##1{\protect\foreignlanguage{#1}{i}}%
3743 \def\btxandcomma##1{,}%
3744 \def\btxinlong##1{\protect\foreignlanguage{#1}{u:}}%
3745 \def\btxinshort##1{\protect\foreignlanguage{#1}{u:}}%
3746 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{iz}}%
3747 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{u}}%
3748 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{iz}}%
3749 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{u}}%
3750 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ur.##1{}}}%
3751 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{urednik}}%
3752 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{ur.##1{}}}%
3753 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{urednici}}%
3754 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{tm.##1{}}}%
3755 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{tom}}%
3756 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{god.##1{}}}%
3757 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{godina}}%
3758 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{br.##1{}}}%
3759 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{broj}}%
3760 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed.##1{}}}%
3761 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edicija}}%
3762 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
3763 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
3764 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{pog.##1{}}}%
3765 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{poglavlje}}%
3766 \def\btxpageshort##1{\protect\foreignlanguage{#1}{str.##1{}}}%
3767 \def\btxpagelong##1{\protect\foreignlanguage{#1}{strana}}%
3768 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{str.##1{}}}%
3769 \def\btxpageslong##1{\protect\foreignlanguage{#1}{strane}}%
3770 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Magistarska teza}}%
3771 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Doktorska disertacija}}%
3772 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tehn.\ izv##1{}}}%
3773 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{%
3774 Tehni\v cki izve\v staj}}%
3775 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januar}}%
3776 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februar}}%
3777 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Mart}}%
3778 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
3779 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Maj}}%
3780 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Jun}}%
3781 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Jul}}%
3782 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{Avgust}}%
3783 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{Septembar}}%
3784 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Octobar}}%
3785 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{Novembar}}%
3786 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Decembar}}%
3787 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
3788 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
3789 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
3790 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
3791 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Maj}}%
3792 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun}}%
3793 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul}}%
3794 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Avg##1{}}}%
3795 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sept##1{}}}%
3796 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Oct##1{}}}%
3797 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
3798 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dec##1{}}}%
3799 \def\Btxinlong##1{\protect\foreignlanguage{#1}{U:}}%
3800 \def\Btxinshort##1{\protect\foreignlanguage{#1}{U:}}%
3801 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ur.##1{}}}%
3802 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Urednik}}%
3803 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ur.##1{}}}%
3804 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Urednici}}%
3805 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Tm.##1{}}}%
3806 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Tom}}%
3807 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{God.##1{}}}%
3808 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Godina}}%
3809 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Br.##1{}}}%
3810 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Broj}}%
3811 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed.##1{}}}%
3812 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edicija}}%
3813 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
3814 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
3815 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Pog.##1{}}}%
3816 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Poglavlje}}%
3817 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{Str.##1{}}}%
3818 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Strana}}%
3819 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Str.##1{}}}%
3820 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Strane}}%
3821 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tehn.\ Izv##1{}}}%
3822 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Tehni\v cki Izve\ staj}}%
3823 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, poseta na: ##1}}%
3824 \def\btxfnamespaceshort{}%
3825 \def\btxfnamespacelong{ }%
3826 \def\btxnumeralshort##1{\btxnumeralenglish{#1}{##1}}%
3827 \def\btxnumerallong##1{\btxnumeralenglish{#1}{##1}}%
3828 % \end{macrocode}
3829 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
3830 % \begin{macrocode}
3831 \def\btxprintmonthyearnum##1##2{##1/##2}%
3832 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
3833 \ifbbbblanguagenames
3834 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engleski}}%
3835 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{nema\v cki}}%
3836 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugalski}}%
3837 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugalski}}%
3838 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engleski}}%
3839 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bugarski}}%
3840 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engleski}}%
3841 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{francuski}}%
3842 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalonski}}%
3843 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{hrvatski}}%
3844 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{\v ce\v ski}}%
3845 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danski}}%
3846 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{holandski}}%
3847 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engleski}}%
3848 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
3849 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finski}}%
3850 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{francuski}}%
3851 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{francuski}}%
3852 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{francuski}}%
3853 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{nema\v cki}}%
3854 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{nema\v cki}}%
3855 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{gr\v cki}}%
3856 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{jevrejski}}%
3857 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ma\dj arski}}%
3858 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandski}}%
3859 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irski}}%
3860 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italianski}}%
3861 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latinski}}%
3862 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{nema\v cki}}%
3863 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{nema\v cki}}%
3864 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norve\v ski}}%
3865 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{%
3866 novi-norve\v ski}}%
3867 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{poljski}}%
3868 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugalski}}%
3869 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugalski}}%
3870 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{ruski}}%
3871 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{\v skotski}}%
3872 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{srpski}}%
3873 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{\v spanski}}%
3874 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{\v svedski}}%
3875 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turski}}%
3876 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engleski}}%
3877 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engleski}}%
3878 \fi
3879 }
3880 % \end{macrocode}
3881 % \end{macro}
3882 % Append the definitions to the language-calling commands.
3883 % \begin{macrocode}
3884 \AtBeginDocument{%
3885 \ifbbbbfixlanguage
3886 \else
3887 \bbbbaddto{serbian}{bibsserbian}
3888 \fi
3889 \bbbbaddto{serbian}{btxifchangecaseoff}
3890 }
3891 %</serbian>
3892 % \end{macrocode}
3893 %
3894 % \subsubsection{Spanish}
3895 % \changes{0.33}{2003/05/22}{Added Spanish language}%
3896 % \changes{1.32}{2019/03/11}{Corrected Spanish abbrevs (by Pablo Daniel Pareja
3897 % Obregon)}%
3898 % \begin{macrocode}
3899 %<*spanish>
3900 % \end{macrocode}
3901 %
3902 % The language definition for Spanish was provided by V{\'\i}ctor
3903 % Lua{\~n}a and slightly changed by me according to |spanish.mbs|
3904 % (custom-bib package).
3905 %
3906 % \begin{macro}{\bibsspanish}
3907 % Bibliographic commands for Spanish.
3908 % \begin{macrocode}
3909 \newcommand\bibsspanish[1][spanish]{%
3910 \def\biblanguagename{#1}%
3911 \def\btxetalshort##1{\protect\foreignlanguage{#1}{y~cols##1{}}}%
3912 \def\btxetallong##1{\protect\foreignlanguage{#1}{y~colaboradores}}%
3913 \def\btxandshort##1{\protect\foreignlanguage{#1}{y}}%
3914 \def\btxandlong##1{\protect\foreignlanguage{#1}{y}}%
3915 \def\btxandcomma##1{}%
3916 \def\btxinlong##1{\protect\foreignlanguage{#1}{en}}%
3917 \def\btxinshort##1{\protect\foreignlanguage{#1}{en}}%
3918 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{de}}%
3919 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{en}}%
3920 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{de}}%
3921 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{en}}%
3922 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
3923 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
3924 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{eds##1{}}}%
3925 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{editores}}%
3926 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
3927 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volumen}}%
3928 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
3929 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volumen}}%
3930 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{%
3931 n\textsuperscript{\underline{o}}}}%
3932 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{n\'umero}}%
3933 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
3934 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edici{\'o}n}}%
3935 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
3936 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
3937 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{cap##1{}}}%
3938 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{cap{\'\i}tulo}}%
3939 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p\'ag##1{}}}%
3940 \def\btxpagelong##1{\protect\foreignlanguage{#1}{p\'agina}}%
3941 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{p\'ags##1{}}}%
3942 \def\btxpageslong##1{\protect\foreignlanguage{#1}{p\'aginas}}%
3943 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Tesis de Licenciatura}}%
3944 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Tesis de Doctorado}}%
3945 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Informe t\'ecnico##1{}}}%
3946 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Informe t\'ecnico}}%
3947 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Enero}}%
3948 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Febrero}}%
3949 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Marzo}}%
3950 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{Abril}}%
3951 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Mayo}}%
3952 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Junio}}%
3953 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Julio}}%
3954 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{Agosto}}%
3955 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{Septiembre}}%
3956 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Octubre}}%
3957 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{Noviembre}}%
3958 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Diciembre}}%
3959 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Ene##1{}}}%
3960 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
3961 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
3962 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Abr##1{}}}%
3963 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{May##1{}}}%
3964 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1{}}}%
3965 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1{}}}%
3966 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Ago##1{}}}%
3967 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
3968 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Oct##1{}}}%
3969 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
3970 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dic##1{}}}%
3971 \def\Btxinlong##1{\protect\foreignlanguage{#1}{En}}%
3972 \def\Btxinshort##1{\protect\foreignlanguage{#1}{En}}%
3973 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
3974 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
3975 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
3976 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Editores}}%
3977 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
3978 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volumen}}%
3979 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
3980 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volumen}}%
3981 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{%
3982 N\textsuperscript{\underline{o}}}}%
3983 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{N\'umero}}%
3984 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
3985 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edici\'on}}%
3986 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
3987 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
3988 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Cap##1{}}}%
3989 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Cap\'\itulo}}%
3990 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P\'ag##1{}}}%
3991 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{P\'agina}}%
3992 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{P\'ags##1{}}}%
3993 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{P\'aginas}}%
3994 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Informe t\'ecnico}}%
3995 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Informe t\'ecnico}}%
3996 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, visitado el ##1}}%
3997 \def\btxfnamespaceshort{\,}%
3998 \def\btxfnamespacelong{ }%
3999 \def\btxnumeralshort##1{\protect\foreignlanguage{#1}{%
4000 \ifnumber{##1}{##1\textsuperscript{\underline a}}{##1}}}%
4001 % \def\btxnumeralshort##1{\ifnumber{##1}{\protect\foreignlanguage{#1}{%
4002 % ##1\ifcase##1 \ieme\or \iere\else \ieme\fi}}{##1}}%
4003 % \end{macrocode}
4004 % \changes{1.31}{2012/01/03}{Fix definition of \cs{btxnumerallong} in
4005 % Spanish}
4006 % Bug and solution for \cs{btxnumerallong} reported by Iago Qui\~nones
4007 % \begin{macrocode}
4008 \def\btxnumerallong##1{\btxnumeralshort{##1}}%
4009 % \end{macrocode}
4010 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
4011 % \begin{macrocode}
4012 \def\btxprintmonthyearnum##1##2{##1/##2}%
4013 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
4014 \ifbbbblanguagenames
4015 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{ingl\'es}}%
4016 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{alem\'an}}%
4017 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugu\'es}}%
4018 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugu\'es}}%
4019 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{ingl\'es}}%
4020 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{b\'ulgaro}}%
4021 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{ingl\'es}}%
4022 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franc\'es}}%
4023 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catalan}}%
4024 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croata}}%
4025 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{checo}}%
4026 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dan\'es}}%
4027 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{holand\'es}}%
4028 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{ingl\'es}}%
4029 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
4030 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finland\'es}}%
4031 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franc\'es}}%
4032 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franc\'es}}%
4033 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franc\'es}}%
4034 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{alem\'an}}%
4035 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{alem\'an}}%
4036 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{griego}}%
4037 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebreo}}%
4038 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{h\'ungaro}}%
4039 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{island\'es}}%
4040 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irland\'es}}%
4041 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italiano}}%
4042 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{lat\'\i n}}%
4043 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{alem\'an}}%
4044 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{alem\'an}}%
4045 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{noruego}}%
4046 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{noruego}}%
4047 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polaco}}%
4048 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugu\'es}}%
4049 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugu\'es}}%
4050 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{ruso}}%
4051 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{escoc\'es}}%
4052 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbio}}%
4053 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espa\~nol}}%
4054 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{sueco}}%
4055 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turco}}%
4056 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{ingl\'es}}%
4057 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{ingl\'es}}%
4058 \fi
4059 }
4060 % \end{macrocode}
4061 % \end{macro}
4062 % Copy the commands to the other languages.
4063 % \begin{macrocode}
4064 \newcommand\bibsmexican[1][mexican]{%
4065 \bibsspanish[mexican]%
4066 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Tesis de Maestr{\'\i}a}}%
4067 }
4068 % \end{macrocode}
4069 % Append the definitions to the language-calling commands.
4070 % \begin{macrocode}
4071 \AtBeginDocument{%
4072 \ifbbbbfixlanguage
4073 \else
4074 \bbbbaddto{spanish}{bibsspanish}
4075 \bbbbaddto{mexican}{bibsmexican}
4076 \fi
4077 \bbbbaddto{spanish}{btxifchangecaseoff}
4078 \bbbbaddto{mexican}{btxifchangecaseoff}
4079 }
4080 %</spanish>
4081 % \end{macrocode}
4082 %
4083 % \subsubsection{Czech}
4084 % \changes{1.31}{2012/01/03}{Added Serbian, Czech, and Romanian language}%
4085 % \begin{macrocode}
4086 %<*czech>
4087 % \end{macrocode}
4088 %
4089 % The language definition for Czech was provided by
4090 % Tomas Hnizdil, \url{[email protected]}.
4091 %
4092 % \begin{macro}{\bibsczech}
4093 % \begin{macrocode}
4094 \newcommand\bibsczech[1][czech]{%
4095 \def\biblanguagename{#1}%
4096 \def\btxetalshort##1{\protect\foreignlanguage{#1}{a~kol##1{}}}%
4097 \def\btxetallong##1{\protect\foreignlanguage{#1}{a~kolektiv}}%
4098 \def\btxandshort##1{\protect\foreignlanguage{#1}{a}}%
4099 \def\btxandlong##1{\protect\foreignlanguage{#1}{a}}%
4100 \def\btxandcomma##1{}%
4101 \def\btxinlong##1{\protect\foreignlanguage{#1}{v}}%
4102 \def\btxinshort##1{\protect\foreignlanguage{#1}{v}}%
4103 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{z}}%
4104 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{v}}%
4105 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{z}}%
4106 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{v}}%
4107 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{edit##1{}}}%
4108 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
4109 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{edit##1{}}}%
4110 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{edito\v{r}i}}%
4111 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{sv##1{}}}%
4112 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{svazek}}%
4113 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{ro\v{c}##1{}}}%
4114 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{ro\v{c}n\'ik}}%
4115 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{\v{c}##1{}}}%
4116 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{\v{c}\'islo}}%
4117 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
4118 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edice}}%
4119 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
4120 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
4121 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{kap##1{}}}%
4122 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{kapitola}}%
4123 \def\btxpageshort##1{\protect\foreignlanguage{#1}{str##1{}}}%
4124 \def\btxpagelong##1{\protect\foreignlanguage{#1}{strana}}%
4125 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{str##1{}}}%
4126 \def\btxpageslong##1{\protect\foreignlanguage{#1}{strany}}%
4127 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{diplomov\'a pr\'ace}}%
4128 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{disertace}}%
4129 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tech.\ zpr##1}}%
4130 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Technick\'a zpr\'ava}}%
4131 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{leden}}%
4132 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{\'unor}}%
4133 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{b\v{r}eze}}%
4134 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{duben}}%
4135 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{kv\v{e}ten}}%
4136 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{\v{c}erven}}%
4137 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{\v{c}ervenec}}%
4138 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{srpen}}%
4139 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{z\'a\v{r}\'i}}%
4140 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{\v{r}\'ijen}}%
4141 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{listopad}}%
4142 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{prosinec}}%
4143 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{led##1{}}}%
4144 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{\'uno##1{}}}%
4145 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{b\v{r}e##1{}}}%
4146 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{dub##1{}}}%
4147 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{kv\v{e}##1{}}}%
4148 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{\v{c}er##1{}}}%
4149 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{\v{c}ec##1{}}}%
4150 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{srp##1{}}}%
4151 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{z\'a\v{r}##1{}}}%
4152 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{\v{r}\'ij##1{}}}%
4153 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{lis##1{}}}%
4154 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{pro##1{}}}%
4155 \def\Btxinlong##1{\protect\foreignlanguage{#1}{V}}%
4156 \def\Btxinshort##1{\protect\foreignlanguage{#1}{V}}%
4157 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Edit##1{}}}%
4158 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
4159 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Edit##1{}}}%
4160 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Edito\v{r}i}}%
4161 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Sv##1{}}}%
4162 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Svazek}}%
4163 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Ro\v{c}##1{}}}%
4164 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Ro\v{c}n\'ik}}%
4165 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{\v{C}##1{}}}%
4166 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{\v{C}\'islo}}%
4167 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
4168 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edice}}%
4169 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
4170 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
4171 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Kap##1{}}}%
4172 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Kapitola}}%
4173 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{Str##1{}}}%
4174 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Strana}}%
4175 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Str##1{}}}%
4176 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Strany}}%
4177 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Techn.\ zpr##1}}%
4178 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Technick\'a zpr\'ava}}%
4179 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, dostupn\'e z ##1}}%
4180 \def\btxfnamespaceshort{\,}%
4181 \def\btxfnamespacelong{ }%
4182 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
4183 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
4184 % \end{macrocode}
4185 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
4186 % \begin{macrocode}
4187 \def\btxprintmonthyearnum##1##2{##1/##2}%
4188 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
4189 \ifbbbblanguagenames
4190 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{anglicky}}%
4191 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{n\v{e}mecky}}%
4192 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugalsky}}%
4193 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugalsky}}%
4194 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{anglicky}}%
4195 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulharsky}}%
4196 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{anglicky}}%
4197 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{francouzsky}}%
4198 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katal\'ansky}}%
4199 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{chorvatsky}}%
4200 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{\v{c}esky}}%
4201 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danese}}%
4202 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{holandsky}}%
4203 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{anglicky}}%
4204 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
4205 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finsky}}%
4206 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{francouzsky}}%
4207 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{francouzsky}}%
4208 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{francouzsky}}%
4209 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{n\v{e}mecky}}%
4210 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{n\v{e}mecky}}%
4211 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{\v{r}ecky}}%
4212 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebrejsky}}%
4213 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ma~arsky}}%
4214 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandsky}}%
4215 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irsky}}%
4216 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italsky}}%
4217 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latinsky}}%
4218 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{n\v{e}mecky}}%
4219 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{n\v{e}mecky}}%
4220 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norsky}}%
4221 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{norsky}}%
4222 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polsky}}%
4223 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugalsky}}%
4224 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugalsky}}%
4225 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{rusky}}%
4226 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skotsky}}%
4227 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{srbsky}}%
4228 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{%
4229 \v{s}pan\v{e}lsky}}%
4230 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{\v{s}v\'edsky}}%
4231 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turecky}}%
4232 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{anglicky}}%
4233 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{anglicky}}%
4234 \fi
4235 }
4236 % \end{macrocode}
4237 % \end{macro}
4238 % Append the definitions to the language-calling commands.
4239 % \begin{macrocode}
4240 \AtBeginDocument{%
4241 \ifbbbbfixlanguage
4242 \else
4243 \bbbbaddto{czech}{bibsczech}
4244 \fi
4245 % \end{macrocode}
4246 % Switch on the change of case in titles for all Afrikaans dialects by
4247 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
4248 % \begin{macrocode}
4249 \bbbbaddto{czech}{btxifchangecaseoff}
4250 }
4251 %</czech>
4252 % \end{macrocode}
4253 %
4254 % \subsubsection{Danish}
4255 % \changes{0.33}{2003/05/22}{Added Danish language}%
4256 % \begin{macrocode}
4257 %<*danish>
4258 % \end{macrocode}
4259 %
4260 % \begin{macro}{\bibsdanish}
4261 % Bibliographic commands for Danish.
4262 % \begin{macrocode}
4263 \newcommand\bibsdanish[1][danish]{%
4264 \def\biblanguagename{#1}%
4265 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
4266 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
4267 \def\btxandshort##1{\protect\foreignlanguage{#1}{og}}%
4268 \def\btxandlong##1{\protect\foreignlanguage{#1}{og}}%
4269 \def\btxandcomma##1{}%
4270 \def\btxinlong##1{\protect\foreignlanguage{#1}{i}}%
4271 \def\btxinshort##1{\protect\foreignlanguage{#1}{i}}%
4272 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{af}}%
4273 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{i}}%
4274 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{af}}%
4275 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{i}}%
4276 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
4277 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redakt\o r}}%
4278 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
4279 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redakt\o rer}}%
4280 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{bd##1{}}}%
4281 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{bind}}%
4282 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{\aa rg##1{}}}%
4283 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{\aa rgang}}%
4284 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nr##1{}}}%
4285 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nummer}}%
4286 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{udg##1{}}}%
4287 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{udgave}}%
4288 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
4289 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
4290 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{kap##1{}}}%
4291 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{kapitel}}%
4292 \def\btxpageshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
4293 \def\btxpagelong##1{\protect\foreignlanguage{#1}{side}}%
4294 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
4295 \def\btxpageslong##1{\protect\foreignlanguage{#1}{sider}}%
4296 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Speciale}}%
4297 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{ph.d.-afhandling}}%
4298 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ rap##1{}}}%
4299 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Teknisk rapport}}%
4300 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januar}}%
4301 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februar}}%
4302 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Marts}}%
4303 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
4304 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Maj}}%
4305 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Juni}}%
4306 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Juli}}%
4307 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{August}}%
4308 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
4309 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktober}}%
4310 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
4311 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{December}}%
4312 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
4313 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
4314 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
4315 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
4316 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Maj}}%
4317 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1{}}}%
4318 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1{}}}%
4319 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
4320 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
4321 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
4322 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
4323 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dec##1{}}}%
4324 \def\Btxinlong##1{\protect\foreignlanguage{#1}{I}}%
4325 \def\Btxinshort##1{\protect\foreignlanguage{#1}{I}}%
4326 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
4327 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redakt\o r}}%
4328 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
4329 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redakt\o rer}}%
4330 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Bd##1{}}}%
4331 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Bind}}%
4332 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{\Aa rg##1{}}}%
4333 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{\Aa rgang}}%
4334 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
4335 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nummer}}%
4336 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Udg##1{}}}%
4337 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Udgave}}%
4338 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
4339 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
4340 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Kap##1{}}}%
4341 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Kapitel}}%
4342 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
4343 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Side}}%
4344 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
4345 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Sider}}%
4346 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ rap##1{}}}%
4347 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Teknisk rapport}}%
4348 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, bes\o gt den ##1}}%
4349 \def\btxfnamespaceshort{\,}%
4350 \def\btxfnamespacelong{ }%
4351 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
4352 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
4353 % \end{macrocode}
4354 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
4355 % \begin{macrocode}
4356 \def\btxprintmonthyearnum##1##2{##1/##2}%
4357 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
4358 \ifbbbblanguagenames
4359 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engelsk}}%
4360 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{tysk}}%
4361 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugisisk}}%
4362 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugisisk}}%
4363 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engelsk}}%
4364 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgarsk}}%
4365 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engelsk}}%
4366 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{fransk}}%
4367 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalansk}}%
4368 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroatisk}}%
4369 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tjekkisk}}%
4370 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dansk}}%
4371 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{nederlandsk}}%
4372 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engelsk}}%
4373 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
4374 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finsk}}%
4375 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{fransk}}%
4376 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{fransk}}%
4377 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{fransk}}%
4378 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{tysk}}%
4379 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{tysk}}%
4380 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{gr\ae sk}}%
4381 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebraisk}}%
4382 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ungarsk}}%
4383 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandsk}}%
4384 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irsk}}%
4385 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italiensk}}%
4386 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latinsk}}%
4387 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{tysk}}%
4388 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{tysk}}%
4389 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norsk}}%
4390 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{nynorsk}}%
4391 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polsk}}%
4392 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugisisk}}%
4393 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugisisk}}%
4394 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russisk}}%
4395 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skotsk}}%
4396 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbisk}}%
4397 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spansk}}%
4398 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{svensk}}%
4399 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{tyrkisk}}%
4400 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engelsk}}%
4401 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engelsk}}%
4402 \fi
4403 }
4404 % \end{macrocode}
4405 % \end{macro}
4406 % Append the definitions to the language-calling commands.
4407 % \begin{macrocode}
4408 \AtBeginDocument{%
4409 \ifbbbbfixlanguage
4410 \else
4411 \bbbbaddto{danish}{bibsdanish}
4412 \fi
4413 \bbbbaddto{danish}{btxifchangecaseoff}
4414 }
4415 %</danish>
4416 % \end{macrocode}
4417 %
4418 % \subsubsection{Finnish}
4419 % \changes{0.45}{2004/04/21}{Added Finnish language}%
4420 % \begin{macrocode}
4421 %<*finnish>
4422 % \end{macrocode}
4423 %
4424 % \begin{macro}{\bibsfinnish}
4425 % Bibliographic commands for Finnish.
4426 % \begin{macrocode}
4427 \newcommand\bibsfinnish[1][finnish]{%
4428 \def\biblanguagename{#1}%
4429 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
4430 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
4431 \def\btxandshort##1{\protect\foreignlanguage{#1}{ja}}%
4432 \def\btxandlong##1{\protect\foreignlanguage{#1}{ja}}%
4433 \def\btxandcomma##1{}%
4434 \def\btxinlong##1{\protect\foreignlanguage{#1}{teoksessa}}%
4435 \def\btxinshort##1{\protect\foreignlanguage{#1}{teoksessa}}%
4436 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{sarjassa}}%
4437 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{sarjassa}}%
4438 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{sarjassa}}%
4439 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{sarjassa}}%
4440 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{toim##1{}}}%
4441 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{toimittaja}}%
4442 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{toim##1{}}}%
4443 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{toimittajat}}%
4444 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{nide}}%
4445 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{nide}}%
4446 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vsk##1{}}}%
4447 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{vuosikerta}}%
4448 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nro}}%
4449 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{numero}}%
4450 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
4451 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{painos}}%
4452 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
4453 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
4454 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{l##1{}}}%
4455 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{luku}}%
4456 \def\btxpageshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
4457 \def\btxpagelong##1{\protect\foreignlanguage{#1}{sivu}}%
4458 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
4459 \def\btxpageslong##1{\protect\foreignlanguage{#1}{sivut}}%
4460 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Pro Gradu -ty\"o}}%
4461 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{v\"ait\"oskirja}}%
4462 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{tekn.\ rap##1{}}}%
4463 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{tekninen raportti}}%
4464 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{tammikuu}}%
4465 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{helmikuu}}%
4466 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{maaliskuu}}%
4467 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{huhtikuu}}%
4468 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{toukokuu}}%
4469 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{kes\"akuu}}%
4470 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{hein\"akuu}}%
4471 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{elokuu}}%
4472 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{syyskuu}}%
4473 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{lokakuu}}%
4474 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{marraskuu}}%
4475 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{joulukuu}}%
4476 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{tam##1{}}}%
4477 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{hel##1{}}}%
4478 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{maa##1{}}}%
4479 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{huh##1{}}}%
4480 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{tou##1{}}}%
4481 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{kes##1{}}}%
4482 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{hei##1{}}}%
4483 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{elo##1{}}}%
4484 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{syy##1{}}}%
4485 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{lok##1{}}}%
4486 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{mar##1{}}}%
4487 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{jou##1{}}}%
4488 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Teoksessa}}%
4489 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Teoksessa}}%
4490 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Toim##1{}}}%
4491 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Toimittaja}}%
4492 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Toim##1{}}}%
4493 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Toimittajat}}%
4494 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Nide}}%
4495 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Nide}}%
4496 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vsk##1{}}}%
4497 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Vuosikerta}}%
4498 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nro}}%
4499 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Numero}}%
4500 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
4501 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Painos}}%
4502 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
4503 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
4504 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{L##1{}}}%
4505 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Luku}}%
4506 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
4507 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Sivu}}%
4508 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
4509 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Sivut}}%
4510 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ rap##1{}}}%
4511 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Tekninen raportti}}%
4512 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, vierailtu ##1}}%
4513 \def\btxfnamespaceshort{\,}%
4514 \def\btxfnamespacelong{ }%
4515 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
4516 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
4517 % \end{macrocode}
4518 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
4519 % \begin{macrocode}
4520 \def\btxprintmonthyearnum##1##2{##1/##2}%
4521 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
4522 \ifbbbblanguagenames
4523 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{englanti}}%
4524 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{saksa}}%
4525 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugali}}%
4526 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugali}}%
4527 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{englanti}}%
4528 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgaria}}%
4529 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{englanti}}%
4530 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{ranska}}%
4531 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalaani}}%
4532 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroaati}}%
4533 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tsekki}}%
4534 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{tanska}}%
4535 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{hollanti}}%
4536 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{englanti}}%
4537 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
4538 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{suomi}}%
4539 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{ranska}}%
4540 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{ranska}}%
4541 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{ranska}}%
4542 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{saksa}}%
4543 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{saksa}}%
4544 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{kreikka}}%
4545 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{heprea}}%
4546 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{unkari}}%
4547 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islanti}}%
4548 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{iiri}}%
4549 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italia}}%
4550 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latina}}%
4551 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{saksa}}%
4552 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{saksa}}%
4553 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norja}}%
4554 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{uusnorja}}%
4555 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{puola}}%
4556 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugali}}%
4557 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugali}}%
4558 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{ven\"j\"a}}%
4559 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skotti}}%
4560 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbi}}%
4561 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espanja}}%
4562 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{ruotsi}}%
4563 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turkki}}%
4564 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{englanti}}%
4565 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{englanti}}%
4566 \fi
4567 }
4568 % \end{macrocode}
4569 % \end{macro}
4570 % Append the definitions to the language-calling commands.
4571 % \begin{macrocode}
4572 \AtBeginDocument{%
4573 \ifbbbbfixlanguage
4574 \else
4575 \bbbbaddto{finnish}{bibsfinnish}
4576 \fi
4577 % \end{macrocode}
4578 % Switch off the change of case in titles by appending
4579 % \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
4580 % \begin{macrocode}
4581 \bbbbaddto{finnish}{btxifchangecaseoff}
4582 }
4583 %</finnish>
4584 % \end{macrocode}
4585 %
4586 % \subsubsection{Esperanto}
4587 % \changes{0.45}{2004/04/21}{Added Esperanto language}%
4588 % \begin{macrocode}
4589 %<*esperanto>
4590 % \end{macrocode}
4591 %
4592 % \begin{macro}{\bibsesperanto}
4593 % Bibliographic commands for Esperanto.
4594 % \begin{macrocode}
4595 \newcommand\bibsesperanto[1][esperanto]{%
4596 \def\biblanguagename{#1}%
4597 \def\btxetalshort##1{\protect\foreignlanguage{#1}{k~al##1{}}}%
4598 \def\btxetallong##1{\protect\foreignlanguage{#1}{kaj~aliaj}}%
4599 \def\btxandshort##1{\protect\foreignlanguage{#1}{k}}%
4600 \def\btxandlong##1{\protect\foreignlanguage{#1}{kaj}}%
4601 \def\btxandcomma##1{}%
4602 \def\btxinlong##1{\protect\foreignlanguage{#1}{en}}%
4603 \def\btxinshort##1{\protect\foreignlanguage{#1}{en}}%
4604 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{de}}%
4605 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{en}}%
4606 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{de}}%
4607 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{en}}%
4608 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
4609 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redaktoro}}%
4610 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{red-oj##1{}}}%
4611 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redaktoroj}}%
4612 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
4613 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volumo}}%
4614 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
4615 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volumo}}%
4616 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{no##1{}}}%
4617 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nombro}}%
4618 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
4619 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{redakcio}}%
4620 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
4621 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
4622 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{\^c##1{}}}%
4623 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{\^capitro}}%
4624 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
4625 \def\btxpagelong##1{\protect\foreignlanguage{#1}{pa\^go}}%
4626 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
4627 \def\btxpageslong##1{\protect\foreignlanguage{#1}{pa\^goj}}%
4628 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{magistra disertacio}}%
4629 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{doktora disertacio}}%
4630 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ rap##1{}}}%
4631 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Teknika raporto}}%
4632 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januaro}}%
4633 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februaro}}%
4634 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Marco}}%
4635 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{Aprilo}}%
4636 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Majo}}%
4637 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Junio}}%
4638 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Julio}}%
4639 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{A\u{u}gusto}}%
4640 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{Septembro}}%
4641 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktobro}}%
4642 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{Novembro}}%
4643 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Decembro}}%
4644 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
4645 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
4646 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
4647 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
4648 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Maj##1{}}}%
4649 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1{}}}%
4650 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1{}}}%
4651 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
4652 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sept##1{}}}%
4653 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
4654 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
4655 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dec##1{}}}%
4656 \def\Btxinlong##1{\protect\foreignlanguage{#1}{En}}%
4657 \def\Btxinshort##1{\protect\foreignlanguage{#1}{En}}%
4658 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
4659 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redaktoro}}%
4660 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
4661 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redaktoroj}}%
4662 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
4663 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volumo}}%
4664 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
4665 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volumo}}%
4666 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{No##1{}}}%
4667 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nombro}}%
4668 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
4669 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Redakcio}}%
4670 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
4671 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
4672 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{\^C##1{}}}%
4673 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{\^Capitro}}%
4674 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
4675 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Pa\^go}}%
4676 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
4677 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Pa\^goj}}%
4678 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ Rap##1{}}}%
4679 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Teknika Raporto}}%
4680 % \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, ?? ##1}}%
4681 \def\btxurldatecomment##1{\PackageError{babelbib}{Comment for
4682 urldate in Esperanto undefined. Please send the translation to the
4683 authors}{} [##1]}%
4684 \def\btxfnamespaceshort{\,}%
4685 \def\btxfnamespacelong{ }%
4686 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
4687 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
4688 % \end{macrocode}
4689 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
4690 % \begin{macrocode}
4691 \def\btxprintmonthyearnum##1##2{##1/##2}%
4692 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
4693 \ifbbbblanguagenames
4694 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{angla}}%
4695 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{germana}}%
4696 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugala}}%
4697 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugala}}%
4698 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{angla}}%
4699 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgara}}%
4700 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{angla}}%
4701 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franca}}%
4702 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalana}}%
4703 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroata}}%
4704 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{\^ce\^ha}}%
4705 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dana}}%
4706 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{nederlanda}}%
4707 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{angla}}%
4708 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
4709 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finna}}%
4710 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franca}}%
4711 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franca}}%
4712 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franca}}%
4713 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{germana}}%
4714 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{germana}}%
4715 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{greka}}%
4716 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebrea}}%
4717 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{hungara}}%
4718 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islanda}}%
4719 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlanda}}%
4720 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{itala}}%
4721 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latino}}%
4722 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{germana}}%
4723 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{germana}}%
4724 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norvega}}%
4725 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{nov-norvega}}%
4726 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{pola}}%
4727 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugala}}%
4728 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugala}}%
4729 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{rusa}}%
4730 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skota}}%
4731 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serba}}%
4732 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{hispana}}%
4733 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{sveda}}%
4734 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turka}}%
4735 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{angla}}%
4736 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{angla}}%
4737 \fi
4738 }
4739 % \end{macrocode}
4740 % \end{macro}
4741 % Append the definitions to the language-calling commands.
4742 % \begin{macrocode}
4743 \AtBeginDocument{%
4744 \ifbbbbfixlanguage
4745 \else
4746 \bbbbaddto{esperanto}{bibsesperanto}
4747 \fi
4748 % \end{macrocode}
4749 % Switch off the change of case in titles by appending
4750 % \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
4751 % \begin{macrocode}
4752 \bbbbaddto{esperanto}{btxifchangecaseoff}
4753 }
4754 %</esperanto>
4755 % \end{macrocode}
4756 %
4757 % \subsubsection{Portuguese}
4758 % \changes{0.33}{2003/05/22}{Added Portuguese language}%
4759 % \changes{1.02}{2005/04/15}{Language Portuguese completed}%
4760 % \changes{1.10}{2005/04/24}{Bug in Portuguese removed}%
4761 % \begin{macrocode}
4762 %<*portuguese>
4763 % \end{macrocode}
4764 %
4765 % \begin{macro}{\bibsportuguese}
4766 % Bibliographic commands for Portuguese.
4767 % \begin{macrocode}
4768 \newcommand\bibsportuguese[1][portuguese]{%
4769 \def\biblanguagename{#1}%
4770 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
4771 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
4772 \def\btxandshort##1{\protect\foreignlanguage{#1}{e}}%
4773 \def\btxandlong##1{\protect\foreignlanguage{#1}{e}}%
4774 \def\btxandcomma##1{}%
4775 \def\btxinlong##1{\protect\foreignlanguage{#1}{em}}%
4776 \def\btxinshort##1{\protect\foreignlanguage{#1}{em}}%
4777 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{de}}%
4778 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{em}}%
4779 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{de}}%
4780 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{em}}%
4781 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
4782 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
4783 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{eds##1{}}}%
4784 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{editores}}%
4785 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
4786 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
4787 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
4788 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
4789 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{%
4790 n\textsuperscript{\underline{o}}}}%
4791 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{n\'umero}}%
4792 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
4793 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edi\c c\~ao}}%
4794 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
4795 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
4796 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{cap##1{}}}%
4797 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{cap\'\i tulo}}%
4798 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p\'ag##1{}}}%
4799 \def\btxpagelong##1{\protect\foreignlanguage{#1}{p\'agina}}%
4800 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{p\'ags##1{}}}%
4801 \def\btxpageslong##1{\protect\foreignlanguage{#1}{p\'aginas}}%
4802 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Tese de Mestrado}}%
4803 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Tese de Doutoramento}}%
4804 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Rel.\ T\'ec##1{}}}%
4805 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Relat\'orio T\'ecnico}}%
4806 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{janeiro}}%
4807 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{fevereiro}}%
4808 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{mar\c co}}%
4809 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{abril}}%
4810 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{maio}}%
4811 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{junho}}%
4812 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{julho}}%
4813 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{agosto}}%
4814 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{setembro}}%
4815 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{outubro}}%
4816 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{novembro}}%
4817 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{dezembro}}%
4818 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{jan##1{}}}%
4819 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{fev##1{}}}%
4820 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mar##1{}}}%
4821 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{abr##1{}}}%
4822 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{maio}}%
4823 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{jun##1{}}}%
4824 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{jul##1{}}}%
4825 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{ago##1{}}}%
4826 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{set##1{}}}%
4827 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{out##1{}}}%
4828 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
4829 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{dez##1{}}}%
4830 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Em}}%
4831 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Em}}%
4832 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
4833 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
4834 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Eds##1{}}}%
4835 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Editores}}%
4836 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
4837 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
4838 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
4839 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
4840 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{%
4841 N\textsuperscript{\underline{o}}}}%
4842 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{N\'umero}}%
4843 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
4844 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edi\c c\~ao}}%
4845 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
4846 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
4847 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Cap##1{}}}%
4848 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Cap\'{\i}tulo}}%
4849 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P\'ag##1{}}}%
4850 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{P\'agina}}%
4851 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{P\'ags##1{}}}%
4852 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{P\'aginas}}%
4853 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Rel.\ T\'ec##1{}}}%
4854 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Relat\'orio T\'ecnico}}%
4855 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, acedido em ##1}}%
4856 \def\btxfnamespaceshort{\,}%
4857 \def\btxfnamespacelong{ }%
4858 \def\btxnumeralshort##1{\protect\foreignlanguage{#1}{%
4859 \ifnumber{##1}{##1\textsuperscript{\underline a}}{##1}}}%
4860 \def\btxnumerallong##1{\btxnumeralshort{##1}}%
4861 % \end{macrocode}
4862 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
4863 % \begin{macrocode}
4864 \def\btxprintmonthyearnum##1##2{##1/##2}%
4865 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
4866 \ifbbbblanguagenames
4867 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{ingl\^es}}%
4868 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{alem\~ao}}%
4869 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugu\^es}}%
4870 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugu\^es}}%
4871 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{ingl\^es}}%
4872 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{b\'ulgaro}}%
4873 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{ingl\^es}}%
4874 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franc\^es}}%
4875 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catal\~ao}}%
4876 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croata}}%
4877 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{checo}}%
4878 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dinamarqu\^es}}%
4879 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{holand\^es}}%
4880 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{ingl\^es}}%
4881 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
4882 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finland\^es}}%
4883 \def\btxlanguagenamefranceis{\protect\foreignlanguage{#1}{franc\^es}}%
4884 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franc\^es}}%
4885 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franc\^es}}%
4886 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{\alem\~ao}}%
4887 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{\alem\~ao}}%
4888 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{grego}}%
4889 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebreu}}%
4890 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{h\'ungaro}}%
4891 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{island\^es}}%
4892 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irland\^es}}%
4893 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italiano}}%
4894 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latim}}%
4895 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{\alem\~ao}}%
4896 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{\alem\~ao}}%
4897 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{noruegu\^es}}%
4898 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{neo-noruegu\^es}}%
4899 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polaco}}%
4900 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugu\^es}}%
4901 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugu\^es}}%
4902 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russio}}%
4903 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{escoc\^es}}%
4904 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{s\'ervio}}%
4905 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espanhol}}%
4906 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{sueco}}%
4907 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turco}}%
4908 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{ingl\^es}}%
4909 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{ingl\^es}}%
4910 \fi
4911 }
4912 % \end{macrocode}
4913 % \end{macro}
4914 % Copy the commands to the other languages.
4915 % \begin{macrocode}
4916 \newcommand\bibsportuges[1][portuges]{\bibsportuguese[#1]}
4917 \newcommand\bibsbrazil[1][brazil]{\bibsbrazilian[#1]}
4918 \newcommand\bibsbrazilian[1][brazilian]{%
4919 \bibsportuguese[#1]%
4920 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{janeiro}}%
4921 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{fevereiro}}%
4922 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{mar\c co}}%
4923 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{abril}}%
4924 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{maio}}%
4925 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{junho}}%
4926 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{julho}}%
4927 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{agosto}}%
4928 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{setembro}}%
4929 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{outubro}}%
4930 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{novembro}}%
4931 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{dezembro}}%
4932 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{jan##1{}}}%
4933 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{fev##1{}}}%
4934 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mar##1{}}}%
4935 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{abr##1{}}}%
4936 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{mai##1{}}}%
4937 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{jun##1{}}}%
4938 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{jul##1{}}}%
4939 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{ago##1{}}}%
4940 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{set##1{}}}%
4941 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{out##1{}}}%
4942 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
4943 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{dez##1{}}}%
4944 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
4945 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
4946 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
4947 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
4948 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, acesso em ##1}}%
4949 }
4950 % \end{macrocode}
4951 % Append the definitions to the language-calling commands.
4952 % \begin{macrocode}
4953 \AtBeginDocument{%
4954 \ifbbbbfixlanguage
4955 \else
4956 \bbbbaddto{brazil}{bibsbrazil}
4957 \bbbbaddto{brazilian}{bibsbrazilian}
4958 \bbbbaddto{portuges}{bibsportuges}
4959 \bbbbaddto{portuguese}{bibsportuguese}
4960 \fi
4961 % \end{macrocode}
4962 % Switch off the change of case in titles for all Portuguese dialects by
4963 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
4964 % \begin{macrocode}
4965 \bbbbaddto{brazil}{btxifchangecaseoff}
4966 \bbbbaddto{brazilian}{btxifchangecaseoff}
4967 \bbbbaddto{portuges}{btxifchangecaseoff}
4968 \bbbbaddto{portuguese}{btxifchangecaseoff}
4969 }
4970 %</portuguese>
4971 % \end{macrocode}
4972 %
4973 % \subsubsection{Dutch}
4974 % \changes{0.33}{2003/05/22}{Added Dutch language}%
4975 % \begin{macrocode}
4976 %<*dutch>
4977 % \end{macrocode}
4978 %
4979 % \begin{macro}{\bibsdutch}
4980 % Bibliographic commands for Dutch.
4981 % \begin{macrocode}
4982 \newcommand\bibsdutch[1][dutch]{%
4983 \def\biblanguagename{#1}%
4984 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
4985 \def\btxetallong##1{\protect\foreignlanguage{#1}{en anderen}}%
4986 \def\btxandshort##1{\protect\foreignlanguage{#1}{en}}%
4987 \def\btxandlong##1{\protect\foreignlanguage{#1}{en}}%
4988 \def\btxandcomma##1{,}%
4989 \def\btxinlong##1{\protect\foreignlanguage{#1}{in}}%
4990 \def\btxinshort##1{\protect\foreignlanguage{#1}{in}}%
4991 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{van}}%
4992 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{in}}%
4993 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{van}}%
4994 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{in}}%
4995 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
4996 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redactie}}%
4997 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
4998 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redactie}}%
4999 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5000 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
5001 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{jrg##1{}}}%
5002 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{jaargang}}%
5003 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nr##1{}}}%
5004 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nummer}}%
5005 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{druk}}%
5006 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{uitgave}}%
5007 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
5008 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
5009 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{hfdst##1{}}}%
5010 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{hoofdstuk}}%
5011 \def\btxpageshort##1{\protect\foreignlanguage{#1}{pag##1{}}}%
5012 \def\btxpagelong##1{\protect\foreignlanguage{#1}{pagina}}%
5013 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pag##1{}}}%
5014 \def\btxpageslong##1{\protect\foreignlanguage{#1}{pagina's}}%
5015 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{scriptie}}%
5016 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{proefschrift}}%
5017 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tech.\ Rapp##1{}}}%
5018 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Technisch Rapport}}%
5019 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januari}}%
5020 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februari}}%
5021 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Maart}}%
5022 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
5023 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Mei}}%
5024 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Juni}}%
5025 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Juli}}%
5026 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{Augustus}}%
5027 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
5028 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktober}}%
5029 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
5030 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{December}}%
5031 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
5032 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
5033 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mrt}}%
5034 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
5035 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Mei}}%
5036 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1{}}}%
5037 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1{}}}%
5038 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
5039 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
5040 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
5041 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
5042 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Dec##1{}}}%
5043 \def\Btxinlong##1{\protect\foreignlanguage{#1}{In}}%
5044 \def\Btxinshort##1{\protect\foreignlanguage{#1}{In}}%
5045 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5046 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redactie}}%
5047 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5048 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redactie}}%
5049 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5050 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
5051 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Jrg##1{}}}%
5052 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Jaargang}}%
5053 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
5054 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nummer}}%
5055 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Druk}}%
5056 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Uitgave}}%
5057 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
5058 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
5059 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Hfdst##1{}}}%
5060 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Hoofdstuk}}%
5061 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{Pag##1{}}}%
5062 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Pagina}}%
5063 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pags##1{}}}%
5064 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Pagina's}}%
5065 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tech.\ Rapp##1{}}}%
5066 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Technisch Rapport}}%
5067 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, bezocht op ##1}}%
5068 \def\btxfnamespaceshort{\,}%
5069 \def\btxfnamespacelong{ }%
5070 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
5071 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
5072 % \end{macrocode}
5073 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
5074 % \begin{macrocode}
5075 \def\btxprintmonthyearnum##1##2{##1/##2}%
5076 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
5077 \ifbbbblanguagenames
5078 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engels}}%
5079 % \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{german}}%
5080 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugees}}%
5081 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugees}}%
5082 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engels}}%
5083 % \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgarian}}%
5084 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engels}}%
5085 % \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{french}}%
5086 % \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catalan}}%
5087 % \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croatian}}%
5088 % \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{czech}}%
5089 % \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{d\"anisch}}%
5090 % \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{dutch}}%
5091 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engels}}%
5092 % \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
5093 % \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finnish}}%
5094 % \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{french}}%
5095 % \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{french}}%
5096 % \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{french}}%
5097 % \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{german}}%
5098 % \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{german}}%
5099 % \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{greek}}%
5100 % \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebrew}}%
5101 % \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{hungarian}}%
5102 % \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{icelandic}}%
5103 % \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irish}}%
5104 % \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italian}}%
5105 % \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latin}}%
5106 % \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{german}}%
5107 % \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{german}}%
5108 % \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norwegian}}%
5109 % \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{new-norwegian}}%
5110 % \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polish}}%
5111 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugees}}%
5112 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugees}}%
5113 % \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russian}}%
5114 % \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{scottish}}%
5115 % \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbian}}%
5116 % \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spanish}}%
5117 % \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{swedish}}%
5118 % \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turkish}}%
5119 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engels}}%
5120 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engels}}%
5121 \fi
5122 }
5123 % \end{macrocode}
5124 % \end{macro}
5125 % Append the definitions to the language-calling commands.
5126 % \begin{macrocode}
5127 \AtBeginDocument{%
5128 \ifbbbbfixlanguage
5129 \else
5130 \bbbbaddto{dutch}{bibsdutch}
5131 \fi
5132 % \end{macrocode}
5133 % Switch on the change of case in titles for all Dutch dialects by
5134 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
5135 % \begin{macrocode}
5136 \bbbbaddto{dutch}{btxifchangecaseoff}
5137 }
5138 %</dutch>
5139 % \end{macrocode}
5140 %
5141 % \subsubsection{Swedish}
5142 % \changes{0.33}{2003/05/22}{Added Swedish language}%
5143 % \changes{0.41}{2003/11/03}{Corrected swedish (by Hans Fredrik Nordhaug)}%
5144 % \changes{1.31}{2012/01/03}{Corrected Swedish (by Erik {\"O}sthols)}%
5145 % \begin{macrocode}
5146 %<*swedish>
5147 % \end{macrocode}
5148 %
5149 % The language definition for Swedish was provided by Hans Fredrik
5150 % Nordhaug and Erik {\"O}sthols.
5151 %
5152 % \begin{macro}{\bibsswedish}
5153 % Bibliographic commands for Swedish.
5154 % \begin{macrocode}
5155 \newcommand\bibsswedish[1][swedish]{%
5156 \def\biblanguagename{#1}%
5157 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
5158 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
5159 \def\btxandshort##1{\protect\foreignlanguage{#1}{och}}%
5160 \def\btxandlong##1{\protect\foreignlanguage{#1}{och}}%
5161 \def\btxandcomma##1{}%
5162 \def\btxinlong##1{\protect\foreignlanguage{#1}{i}}%
5163 \def\btxinshort##1{\protect\foreignlanguage{#1}{i}}%
5164 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{av}}%
5165 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{i}}%
5166 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{av}}%
5167 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{i}}%
5168 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
5169 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redakt\"or}}%
5170 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
5171 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redakt\"orer}}%
5172 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5173 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volym}}%
5174 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5175 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volym}}%
5176 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nr##1{}}}%
5177 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nummer}}%
5178 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{utg}}%
5179 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{utg\aa va}}%
5180 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
5181 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
5182 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{kap##1{}}}%
5183 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{kapitel}}%
5184 \def\btxpageshort##1{\protect\foreignlanguage{#1}{ss##1{}}}%
5185 \def\btxpagelong##1{\protect\foreignlanguage{#1}{sida}}%
5186 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
5187 \def\btxpageslong##1{\protect\foreignlanguage{#1}{sidor}}%
5188 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{examensarbete}}%
5189 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{doktorsavhandling}}%
5190 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ rapp##1{}}}%
5191 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Teknisk rapport}}%
5192 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{januari}}%
5193 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{februari}}%
5194 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{mars}}%
5195 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{april}}%
5196 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{maj}}%
5197 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{juni}}%
5198 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{juli}}%
5199 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{augusti}}%
5200 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{september}}%
5201 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{oktober}}%
5202 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{november}}%
5203 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{december}}%
5204 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{jan##1{}}}%
5205 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{feb##1{}}}%
5206 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mar}}%
5207 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{apr##1{}}}%
5208 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{maj}}%
5209 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{jun##1{}}}%
5210 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{jul##1{}}}%
5211 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{aug##1{}}}%
5212 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{sep##1{}}}%
5213 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{okt##1{}}}%
5214 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
5215 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{dec##1{}}}%
5216 \def\Btxinlong##1{\protect\foreignlanguage{#1}{I}}%
5217 \def\Btxinshort##1{\protect\foreignlanguage{#1}{I}}%
5218 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5219 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redakt\"or}}%
5220 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5221 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redakt\"orer}}%
5222 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5223 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volym}}%
5224 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5225 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volym}}%
5226 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
5227 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nummer}}%
5228 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Utg}}%
5229 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Utg\aa va}}%
5230 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
5231 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
5232 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Kap##1{}}}%
5233 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Kapitel}}%
5234 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{S##1{}}}%
5235 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Sida}}%
5236 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Ss##1{}}}%
5237 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Sida}}%
5238 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tekn.\ Rapp##1{}}}%
5239 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Teknisk Rapport}}%
5240 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, nedladdad ##1}}%
5241 \def\btxfnamespaceshort{\,}%
5242 \def\btxfnamespacelong{ }%
5243 \def\btxnumeralshort#1{\btxnumeralswedish{swedish}{#1}}%
5244 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
5245 \def\btxnumerallong##1{%
5246 \ifnumber{##1}{%
5247 \ifcase##1 0:e\or f\"orsta\or andra\or tredje\or fj\"arde\or femte\or
5248 sj\"atte\or sjunde\or {\aa}ttonde\or nionde\or tionde\else
5249 \btxnumeralswedish{swedish}{##1}%
5250 \fi}{##1}%
5251 }%
5252 % \end{macrocode}
5253 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
5254 % \begin{macrocode}
5255 \def\btxprintmonthyearnum##1##2{##1~##2}%
5256 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
5257 \ifbbbblanguagenames
5258 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engelska}}%
5259 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{tyska}}%
5260 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugisiska}}%
5261 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugisiska}}%
5262 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engelska}}%
5263 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgariska}}%
5264 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engelska}}%
5265 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franska}}%
5266 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalanska}}%
5267 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroatiska}}%
5268 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tjeckiska}}%
5269 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danska}}%
5270 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{nederl\"andska}}%
5271 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engelska}}%
5272 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
5273 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finska}}%
5274 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franska}}%
5275 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franska}}%
5276 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franska}}%
5277 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{tyska}}%
5278 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{tyska}}%
5279 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{grekiska}}%
5280 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebreiska}}%
5281 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ungerska}}%
5282 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{isl\"andska}}%
5283 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{iriska}}%
5284 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italienska}}%
5285 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latin}}%
5286 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{tyska}}%
5287 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{tyska}}%
5288 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norska}}%
5289 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{nynorska}}%
5290 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polska}}%
5291 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugisiska}}%
5292 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugisiska}}%
5293 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{ryska}}%
5294 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skotska}}%
5295 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbiska}}%
5296 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spanska}}%
5297 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{svenska}}%
5298 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turkiska}}%
5299 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engelska}}%
5300 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engelska}}%
5301 \fi
5302 }
5303 % \end{macrocode}
5304 % \end{macro}
5305 % Append the definitions to the language-calling commands.
5306 % \begin{macrocode}
5307 \AtBeginDocument{%
5308 \ifbbbbfixlanguage
5309 \else
5310 \bbbbaddto{swedish}{bibsswedish}
5311 \fi
5312 % \end{macrocode}
5313 % Switch on the change of case in titles for all Swedish dialects by
5314 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
5315 % \begin{macrocode}
5316 \bbbbaddto{swedish}{btxifchangecaseoff}
5317 }
5318 %</swedish>
5319 % \end{macrocode}
5320 %
5321 % \subsubsection{Turkish}
5322 % \changes{1.34}{2021/01/06}{Added Turkish language}%
5323 % \begin{macrocode}
5324 %<*turkish>
5325 % \end{macrocode}
5326 %
5327 % The language definition for Turkish was provided Ahmed Zahid Demirciler.
5328 %
5329 % \begin{macro}{\bibsturkish}
5330 % Bibliographic commands for Turkish.
5331 % \begin{macrocode}
5332 \newcommand\bibsturkish[1][turkish]{%
5333 \def\biblanguagename{#1}%
5334 \def\btxetalshort##1{\protect\foreignlanguage{#1}{vd##1{}}}%
5335 \def\btxetallong##1{\protect\foreignlanguage{#1}{ve di\u{g}erleri}}%
5336 \def\btxandshort##1{\protect\foreignlanguage{#1}{ve}}%
5337 \def\btxandlong##1{\protect\foreignlanguage{#1}{ve}}%
5338 \def\btxandcomma##1{}%
5339 \def\btxinlong##1{\protect\foreignlanguage{#1}{i\c{c}inde}}%
5340 \def\btxinshort##1{\protect\foreignlanguage{#1}{i\c{c}inde}}%
5341 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{in}}%
5342 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{i\c{c}inde}}%
5343 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{in}}%
5344 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{i\c{c}inde}}%
5345 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
5346 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{edit\"{o}r}}%
5347 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
5348 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{edit\"{o}rler}}%
5349 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{C##1{}}}%
5350 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{cilt}}%
5351 % \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{C##1{}}}%
5352 % \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{cilt}}%
5353 \def\btxjvolumeshort##1{\PackageError{babelbib}{Comment for
5354 btxjvolumeshort in Turkish undefined. Please send the translation to the
5355 authors}{} [##1]}%
5356 \def\btxjvolumelong##1{\PackageError{babelbib}{Comment for
5357 btxjvolumelong in Turkish undefined. Please send the translation to the
5358 authors}{} [##1]}%
5359 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{S##1{}}}%
5360 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{say{\i}}}%
5361 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{bs##1{}}}%
5362 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{bas{\i}m}}%
5363 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{B\"{o}l##1{}}}%
5364 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{b\"{o}l\"{u}m}}%
5365 \def\btxpageshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
5366 \def\btxpagelong##1{\protect\foreignlanguage{#1}{sayfa}}%
5367 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{sy##1{}}}%
5368 \def\btxpageslong##1{\protect\foreignlanguage{#1}{sayfa}}%
5369 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Y\"{u}ksek lisans tezi}}%
5370 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Doktora tezi}}%
5371 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Rap##1{}}}%
5372 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Rapor}}%
5373 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Ocak}}%
5374 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{\c{S}ubat}}%
5375 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Mart}}%
5376 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{Nisan}}%
5377 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{May{\i}s}}%
5378 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Haziran}}%
5379 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Temmuz}}%
5380 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{A\u{g}ustos}}%
5381 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{Eyl\"{u}l}}%
5382 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Ekim}}%
5383 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{Kas{\i}m}}%
5384 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Aral{\i}}}%
5385 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Oca##1{}}}%
5386 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{\c{S}ub##1{}}}%
5387 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mar##1{}}}%
5388 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Nis##1{}}}%
5389 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{May}}%
5390 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Haz}}%
5391 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Tem}}%
5392 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{A\u{g}u##1{}}}%
5393 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Eyl##1{}}}%
5394 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Eki##1{}}}%
5395 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Kas##1{}}}%
5396 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Ara##1{}}}%
5397 \def\Btxinlong##1{\protect\foreignlanguage{#1}{i\c{c}inde}}%
5398 \def\Btxinshort##1{\protect\foreignlanguage{#1}{i\c{c}inde}}%
5399 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
5400 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Edit\"{o}r}}%
5401 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
5402 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Edit\"{o}rler}}%
5403 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{C##1{}}}%
5404 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{cilt}}%
5405 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{C##1{}}}%
5406 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{cilt}}%
5407 \def\Btxjvolumeshort##1{\PackageError{babelbib}{Comment for
5408 btxjvolumeshort in Turkish undefined. Please send the translation to the
5409 authors}{} [##1]}%
5410 \def\Btxjvolumelong##1{\PackageError{babelbib}{Comment for
5411 btxjvolumelong in Turkish undefined. Please send the translation to the
5412 authors}{} [##1]}%
5413 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{S##1{}}}%
5414 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{say{\i}}}%
5415 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
5416 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{bas{\i}m}}%
5417 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{B\"{o}l##1{}}}%
5418 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{b\"{o}l\"{u}m}}%
5419 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
5420 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{sayfa}}%
5421 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{s##1{}}}%
5422 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{sayfalar}}%
5423 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Rap##1{}}}%
5424 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Rapor}}%
5425 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, g\"{o}r\"{u}ld\"{u} ##1}}%
5426 \def\btxfnamespaceshort{}%
5427 \def\btxfnamespacelong{ }%
5428 \def\btxnumeralshort##1{\protect\foreignlanguage{#1}{%
5429 \ifnumber{##1}{##1\textsuperscript{\underline a}}{##1}}}%
5430 \def\btxnumerallong##1{\btxnumeralshort{#1}{##1}}%
5431 % \end{macrocode}
5432 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
5433 % \begin{macrocode}
5434 \def\btxprintmonthyearnum##1##2{##1/##2}%
5435 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
5436 \ifbbbblanguagenames
5437 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{ingilizce}}%
5438 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{almanca}}%
5439 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portekizce}}%
5440 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portekizce}}%
5441 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{ingilizce}}%
5442 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgarca}}%
5443 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{ingilizce}}%
5444 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{frans{\i}zca}}%
5445 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalanca}}%
5446 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{h{\i}rvat\c{c}a}}%
5447 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{\c{c}ek\c{c}e}}%
5448 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danca}}%
5449 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{hollandaca}}%
5450 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{ingilizce}}%
5451 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
5452 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{fince}}%
5453 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franc\'es}}%
5454 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{frans{\i}zca}}%
5455 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{frans{\i}zca}}%
5456 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{almanca}}%
5457 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{almanca}}%
5458 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{yunanca}}%
5459 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{ibranice}}%
5460 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{macarca}}%
5461 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{izlandaca}}%
5462 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlandaca}}%
5463 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italyanca}}%
5464 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latince}}%
5465 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{almanca}}%
5466 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{almanca}}%
5467 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norve\c{c}\c{c}e}}%
5468 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{norve\c{c}\c{c}e}}%
5469 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{leh\c{c}}}%
5470 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portekizce}}%
5471 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portekizce}}%
5472 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{rus\c{c}a}}%
5473 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{isko\c{c}\c{c}a}}%
5474 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{s{\i}rp\c{c}a}}%
5475 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espa\~nol}}%
5476 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{isve\c{c}\c{c}e}}%
5477 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{t\"{u}rk\c{c}e}}%
5478 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{ingilizce}}%
5479 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{ingilizce}}%
5480 \fi
5481 }
5482 % \end{macrocode}
5483 % \end{macro}
5484 % Append the definitions to the language-calling commands.
5485 % \begin{macrocode}
5486 \AtBeginDocument{%
5487 \ifbbbbfixlanguage
5488 \else
5489 \bbbbaddto{turkish}{bibsturkish}
5490 \fi
5491 % \end{macrocode}
5492 % Switch on the change of case in titles for all Turkish dialects by
5493 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
5494 % \begin{macrocode}
5495 \bbbbaddto{turkish}{btxifchangecaseoff}
5496 }
5497 %</turkish>
5498 % \end{macrocode}
5499 %
5500 % \subsubsection{Afrikaans}
5501 % \changes{0.34}{2003/07/28}{Added Afrikaans language}%
5502 % \changes{1.33}{2020/10/29}{Added translation of urldatecomment (by Bertus
5503 % van Heerden)}%
5504 % \begin{macrocode}
5505 %<*afrikaans>
5506 % \end{macrocode}
5507 %
5508 % The language definition for Afrikaans was provided by Danie Els.
5509 %
5510 % \begin{macro}{\bibsafrikaans}
5511 % Bibliographic commands for Afrikaans.
5512 % \begin{macrocode}
5513 \newcommand\bibsafrikaans[1][afrikaans]{%
5514 \def\biblanguagename{#1}%
5515 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
5516 \def\btxetallong##1{\protect\foreignlanguage{#1}{et~alii}}%
5517 \def\btxandshort##1{\protect\foreignlanguage{#1}{en}}%
5518 \def\btxandlong##1{\protect\foreignlanguage{#1}{en}}%
5519 \def\btxandcomma##1{\protect\foreignlanguage{#1}{}}%
5520 \def\btxinlong##1{\protect\foreignlanguage{#1}{in}}%
5521 \def\btxinshort##1{\protect\foreignlanguage{#1}{in}}%
5522 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{van}}%
5523 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{in}}%
5524 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{van}}%
5525 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{in}}%
5526 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
5527 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redakteur}}%
5528 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{reds##1{}}}%
5529 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redakteurs}}%
5530 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5531 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
5532 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{jg##1{}}}%
5533 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{jaargang}}%
5534 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{no##1{}}}%
5535 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nommer}}%
5536 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{uitg##1{}}}%
5537 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{uitgawe}}%
5538 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
5539 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
5540 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{hfst##1{}}}%
5541 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{hoofstuk}}%
5542 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
5543 \def\btxpagelong##1{\protect\foreignlanguage{#1}{bladsy}}%
5544 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{pp##1{}}}%
5545 \def\btxpageslong##1{\protect\foreignlanguage{#1}{bladsye}}%
5546 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Meesters tesis}}%
5547 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{PhD verhandeling}}%
5548 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tegn.\ versl##1{}}}%
5549 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Tegniese verslag}}%
5550 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januarie}}%
5551 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februarie}}%
5552 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Maart}}%
5553 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
5554 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Mei}}%
5555 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Junie}}%
5556 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Julie}}%
5557 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{Augustus}}%
5558 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
5559 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktober}}%
5560 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
5561 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Desember}}%
5562 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
5563 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
5564 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mrt##1{}}}%
5565 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
5566 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Mei##1}}%
5567 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1}}%
5568 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1}}%
5569 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
5570 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
5571 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
5572 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
5573 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Des##1{}}}%
5574 \def\Btxinlong##1{\protect\foreignlanguage{#1}{In}}%
5575 \def\Btxinshort##1{\protect\foreignlanguage{#1}{In}}%
5576 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5577 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redakteur}}%
5578 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Reds##1{}}}%
5579 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redakteurs}}%
5580 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5581 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
5582 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Jg##1{}}}%
5583 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Jaargang}}%
5584 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{No##1{}}}%
5585 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nommer}}%
5586 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Uitg##1{}}}%
5587 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Uitgawe}}%
5588 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
5589 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
5590 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Hfst##1{}}}%
5591 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Hoofstuk}}%
5592 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
5593 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Bladsy}}%
5594 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Pp##1{}}}%
5595 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Bladsye}}%
5596 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tegn.\ Verslag}}%
5597 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Tegniese Verslag}}%
5598 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, besoek op ##1}}%
5599 \def\btxfnamespaceshort{\,}%
5600 \def\btxfnamespacelong{ }%
5601 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
5602 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
5603 % \end{macrocode}
5604 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
5605 % \begin{macrocode}
5606 \def\btxprintmonthyearnum##1##2{##1/##2}%
5607 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
5608 \ifbbbblanguagenames
5609 \def\btxlanguagenameafrikaans{\protect\foreignlanguage{#1}{afrikaans}}%
5610 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engels}}%
5611 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{duits}}%
5612 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugees}}%
5613 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugees}}%
5614 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engels}}%
5615 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgaars}}%
5616 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engels}}%
5617 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{frans}}%
5618 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalaans}}%
5619 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroaties}}%
5620 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{tsjeggies}}%
5621 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{deens}}%
5622 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{nederlands}}%
5623 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engels}}%
5624 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
5625 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{fins}}%
5626 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{frans}}%
5627 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{frans}}%
5628 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{frans}}%
5629 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{duits}}%
5630 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{duits}}%
5631 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{grieks}}%
5632 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebreeus}}%
5633 \def\btxlanguagenamenhungarian{\protect\foreignlanguage{#1}{hongaars}}%
5634 \def\btxlanguagenamenicelandic{\protect\foreignlanguage{#1}{yslands}}%
5635 \def\btxlanguagenamenirish{\protect\foreignlanguage{#1}{iers}}%
5636 \def\btxlanguagenamenitalian{\protect\foreignlanguage{#1}{italiaans}}%
5637 \def\btxlanguagenamenlatin{\protect\foreignlanguage{#1}{latyn}}%
5638 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{duits}}%
5639 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{duits}}%
5640 \def\btxlanguagenamennorsk{\protect\foreignlanguage{#1}{noors}}%
5641 \def\btxlanguagenamennynorsk{\protect\foreignlanguage{#1}{neo-noors}}%
5642 \def\btxlanguagenamenpolish{\protect\foreignlanguage{#1}{pools}}%
5643 \def\btxlanguagenamenportuges{\protect\foreignlanguage{#1}{portugees}}%
5644 \def\btxlanguagenamenportuguese{\protect\foreignlanguage{#1}{portugees}}%
5645 \def\btxlanguagenamenrussian{\protect\foreignlanguage{#1}{russies}}%
5646 \def\btxlanguagenamenscottish{\protect\foreignlanguage{#1}{skots}}%
5647 \def\btxlanguagenamenserbian{\protect\foreignlanguage{#1}{serwies}}%
5648 \def\btxlanguagenamenspanish{\protect\foreignlanguage{#1}{spaans}}%
5649 \def\btxlanguagenamenswedish{\protect\foreignlanguage{#1}{sweeds}}%
5650 \def\btxlanguagenamenturkish{\protect\foreignlanguage{#1}{turks}}%
5651 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engels}}%
5652 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engels}}%
5653 \fi
5654 }
5655 % \end{macrocode}
5656 % \end{macro}
5657 % Append the definitions to the language-calling commands.
5658 % \begin{macrocode}
5659 \AtBeginDocument{%
5660 \ifbbbbfixlanguage
5661 \else
5662 \bbbbaddto{afrikaans}{bibsafrikaans}
5663 \fi
5664 % \end{macrocode}
5665 % Switch on the change of case in titles for all Afrikaans dialects by
5666 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
5667 % \begin{macrocode}
5668 \bbbbaddto{afrikaans}{btxifchangecaseoff}
5669 }
5670 %</afrikaans>
5671 % \end{macrocode}
5672 %
5673 % \subsubsection{Bahasa}
5674 % \begin{macrocode}
5675 %<*bahasa>
5676 % \end{macrocode}
5677 %
5678 % The language definition for Bahasa was provided by Yanti Yulianti.
5679 %
5680 % \begin{macro}{\bibsbahasa}
5681 % Bibliographic commands for Bahasa.
5682 % \begin{macrocode}
5683 \newcommand\bibsbahasa[1][bahasa]{%
5684 \def\biblanguagename{#1}%
5685 \def\btxetalshort##1{\protect\foreignlanguage{#1}{et~al##1{}}}%
5686 \def\btxetallong##1{\protect\foreignlanguage{#1}{en~alii }}%
5687 \def\btxandshort##1{\protect\foreignlanguage{#1}{dan}}%
5688 \def\btxandlong##1{\protect\foreignlanguage{#1}{dan}}%
5689 \def\btxandcomma##1{,}%
5690 \def\btxinlong##1{\protect\foreignlanguage{#1}{dalam}}%
5691 \def\btxinshort##1{\protect\foreignlanguage{#1}{dalam}}%
5692 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{dari}}%
5693 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{dalam}}%
5694 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{dari}}%
5695 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{dalam}}%
5696 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
5697 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{redaktur}}%
5698 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{red##1{}}}%
5699 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{redaktur}}%
5700 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5701 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
5702 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5703 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volume}}%
5704 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{nr##1{}}}%
5705 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{nomor}}%
5706 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{edisi}}%
5707 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edisi}}%
5708 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
5709 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
5710 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{bab##1{}}}%
5711 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{bab}}%
5712 \def\btxpageshort##1{\protect\foreignlanguage{#1}{hal##1{}}}%
5713 \def\btxpagelong##1{\protect\foreignlanguage{#1}{halaman}}%
5714 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{hal##1{}}}%
5715 \def\btxpageslong##1{\protect\foreignlanguage{#1}{halaman}}%
5716 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{tesis Master}}%
5717 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{disertasi Dokotor}}%
5718 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Lap.\ Rapp##1{}}}%
5719 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Laporan}}%
5720 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{Januari}}%
5721 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{Februari}}%
5722 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{Maret}}%
5723 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{April}}%
5724 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{Mei}}%
5725 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{Juni}}%
5726 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{Juli}}%
5727 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{Augustus}}%
5728 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{September}}%
5729 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{Oktober}}%
5730 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{November}}%
5731 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{Desember}}%
5732 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{Jan##1{}}}%
5733 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{Feb##1{}}}%
5734 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{Mrt}}%
5735 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{Apr##1{}}}%
5736 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{Mei}}%
5737 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{Jun##1{}}}%
5738 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{Jul##1{}}}%
5739 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{Aug##1{}}}%
5740 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{Sep##1{}}}%
5741 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{Okt##1{}}}%
5742 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{Nov##1{}}}%
5743 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{Des##1{}}}%
5744 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Dalam}}%
5745 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Dalam}}%
5746 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5747 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Redaktur}}%
5748 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Red##1{}}}%
5749 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Redaktur}}%
5750 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5751 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
5752 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5753 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volume}}%
5754 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Nr##1{}}}%
5755 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Nomor}}%
5756 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed}}%
5757 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edisi}}%
5758 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
5759 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
5760 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Bab##1{}}}%
5761 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Bab}}%
5762 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{Hal##1{}}}%
5763 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Halaman}}%
5764 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Hal##1{}}}%
5765 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Halaman}}%
5766 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Lap.\ Rapp##1{}}}%
5767 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Laporan}}%
5768 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{%
5769 , diambil tanggal ##1}}%
5770 \def\btxfnamespaceshort{\,}%
5771 \def\btxfnamespacelong{ }%
5772 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
5773 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
5774 % \end{macrocode}
5775 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
5776 % \begin{macrocode}
5777 \def\btxprintmonthyearnum##1##2{##1/##2}%
5778 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
5779 \ifbbbblanguagenames
5780 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{inggris}}%
5781 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{jerman}}%
5782 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugis}}%
5783 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugis}}%
5784 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{inggris}}%
5785 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bulgaria}}%
5786 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{inggris}}%
5787 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{prancis}}%
5788 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catalanya}}%
5789 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{kroasia}}%
5790 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{ceko}}%
5791 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{denmark}}%
5792 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{belanda}}%
5793 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{inggris}}%
5794 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{spanyol}}%
5795 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finlandia}}%
5796 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{prancis}}%
5797 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{prancis}}%
5798 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{prancis}}%
5799 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{jerman}}%
5800 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{jerman}}%
5801 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{yunani}}%
5802 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{yahudi}}%
5803 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{hungaria}}%
5804 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandia}}%
5805 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irlandia}}%
5806 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{italia}}%
5807 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latin}}%
5808 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{jerman}}%
5809 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{jerman}}%
5810 % \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norwegia}}%
5811 % \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{norwegia baru}}%
5812 % \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polish}}%
5813 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugis}}%
5814 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugis}}%
5815 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{russia}}%
5816 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{skotlandia}}%
5817 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbia}}%
5818 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{spanyol}}%
5819 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{swedia}}%
5820 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turki}}%
5821 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{inggris}}%
5822 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{inggris}}%
5823 \fi
5824 }
5825 % \end{macrocode}
5826 % \end{macro}
5827 % Append the definitions to the language-calling commands.
5828 % \begin{macrocode}
5829 \AtBeginDocument{%
5830 \ifbbbbfixlanguage
5831 \else
5832 \bbbbaddto{bahasa}{bibsbahasa}
5833 \fi
5834 \bbbbaddto{bahasa}{btxifchangecaseoff}
5835 }
5836 %</bahasa>
5837 % \end{macrocode}
5838 %
5839 % \subsubsection{Catalan}
5840 % \changes{1.00}{2005/02/16}{Added Catalan language}%
5841 % \begin{macrocode}
5842 %<*catalan>
5843 % \end{macrocode}
5844 %
5845 % The language definition for Catalan was provided by
5846 % Robert Fuster, [email protected].
5847 %
5848 % \begin{macro}{\bibsafrikaans}
5849 % \begin{macrocode}
5850 \newcommand\bibscatalan[1][catalan]{%
5851 \def\biblanguagename{#1}%
5852 \def\btxetalshort##1{\protect\foreignlanguage{#1}{i~al##1{}}}%
5853 \def\btxetallong##1{\protect\foreignlanguage{#1}{i~altres}}%
5854 \def\btxandshort##1{\protect\foreignlanguage{#1}{i}}%
5855 \def\btxandlong##1{\protect\foreignlanguage{#1}{i}}%
5856 \def\btxandcomma##1{}%
5857 \def\btxinlong##1{\protect\foreignlanguage{#1}{dins}}%
5858 \def\btxinshort##1{\protect\foreignlanguage{#1}{dins}}%
5859 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{dins}}%
5860 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{de}}%
5861 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{dins}}%
5862 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
5863 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{editor}}%
5864 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{eds##1{}}}%
5865 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{editors}}%
5866 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5867 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{volum}}%
5868 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{vol##1{}}}%
5869 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{volum}}%
5870 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{n}}%
5871 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{n\'umero}}%
5872 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{ed##1{}}}%
5873 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{edici{\'o}}}%
5874 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
5875 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
5876 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{cap##1{}}}%
5877 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{cap{\'\i}tol}}%
5878 \def\btxpageshort##1{\protect\foreignlanguage{#1}{p##1{}}}%
5879 \def\btxpagelong##1{\protect\foreignlanguage{#1}{p\`agina}}%
5880 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{ps##1{}}}%
5881 \def\btxpageslong##1{\protect\foreignlanguage{#1}{p\`agines}}%
5882 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Tesina de Llicenciatura}}%
5883 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Tesi de Doctorat}}%
5884 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Rep. t\`ecnic}}%
5885 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{Report t\`ecnic}}%
5886 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{gener}}%
5887 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{febrer}}%
5888 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{mar\c{c}}}%
5889 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{abril}}%
5890 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{maig}}%
5891 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{juny}}%
5892 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{juliol}}%
5893 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{agost}}%
5894 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{setembre}}%
5895 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{octubre}}%
5896 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{novembre}}%
5897 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{desembre}}%
5898 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{gen##1{}}}%
5899 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{feb##1{}}}%
5900 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{mar\c{c}}}%
5901 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{abr##1{}}}%
5902 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{maig}}%
5903 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{juny}}%
5904 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{jul}}%
5905 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{ago##1{}}}%
5906 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{sep##1{}}}%
5907 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{oct##1{}}}%
5908 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{nov##1{}}}%
5909 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{dec##1{}}}%
5910 \def\Btxinlong##1{\protect\foreignlanguage{#1}{Dins}}%
5911 \def\Btxinshort##1{\protect\foreignlanguage{#1}{Dins}}%
5912 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
5913 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Editor}}%
5914 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
5915 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Editors}}%
5916 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5917 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Volum}}%
5918 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{Vol##1{}}}%
5919 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Volum}}%
5920 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{N\'um}}%
5921 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{N\'umero}}%
5922 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Ed##1{}}}%
5923 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Edici\'o}}%
5924 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
5925 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
5926 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Cap##1{}}}%
5927 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Cap\'\itol}}%
5928 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
5929 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{P\`agina}}%
5930 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{P##1{}}}%
5931 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{P\`agines}}%
5932 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Rep. t\`ecnic}}%
5933 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{Report t\`ecnic}}%
5934 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, visitada el ##1}}%
5935 \def\btxfnamespaceshort{\,}%
5936 \def\btxfnamespacelong{ }%
5937 \def\btxnumeralshort##1{\btxnumeralfallback{#1}{##1}}%
5938 \def\btxnumerallong##1{\btxnumeralfallback{#1}{##1}}%
5939 % \end{macrocode}
5940 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
5941 % \begin{macrocode}
5942 \def\btxprintmonthyearnum##1##2{##1/##2}%
5943 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
5944 \ifbbbblanguagenames
5945 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{angl\`es}}%
5946 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{alem\`any}}%
5947 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugu\`es}}%
5948 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugu\`es}}%
5949 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{angl\'es}}%
5950 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{b\'ulgar}}%
5951 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{angl\`es}}%
5952 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{franc\`es}}%
5953 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{catal\`a}}%
5954 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{croat}}%
5955 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{txec}}%
5956 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{dan\`es}}%
5957 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{neerland\`es}}%
5958 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{angl\`es}}%
5959 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
5960 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finland\`es}}%
5961 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{franc\`es}}%
5962 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{franc\`es}}%
5963 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{franc\`es}}%
5964 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{alem\`any}}%
5965 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{alem\`any}}%
5966 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{grec}}%
5967 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebreu}}%
5968 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{hongar\`es}}%
5969 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{island\`es}}%
5970 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irland\`es}}%
5971 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{itali\`a}}%
5972 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{llat\'\i}}%
5973 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{alem\`any}}%
5974 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{alem\`any}}%
5975 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{noruec}}%
5976 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{noruec}}%
5977 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{polon\`es}}%
5978 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugu\`es}}%
5979 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugu\`es}}%
5980 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{rus}}%
5981 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{escoc\`es}}%
5982 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{serbi}}%
5983 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{espa\~nol}}%
5984 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{suec}}%
5985 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turc}}%
5986 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{angl\`es}}%
5987 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{angl\`es}}%
5988 \fi
5989 }
5990 % \end{macrocode}
5991 % \end{macro}
5992 % Append the definitions to the language-calling commands.
5993 % \begin{macrocode}
5994 \AtBeginDocument{%
5995 \ifbbbbfixlanguage
5996 \else
5997 \bbbbaddto{catalan}{bibscatalan}
5998 \fi
5999 % \end{macrocode}
6000 % Switch on the change of case in titles for all Afrikaans dialects by
6001 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
6002 % \begin{macrocode}
6003 \bbbbaddto{catalan}{btxifchangecaseoff}
6004 }
6005 %</catalan>
6006 % \end{macrocode}
6007 %
6008 % \subsubsection{Croatian}
6009 % \changes{1.30}{2010/01/06}{Added Croatian language}%
6010 % \begin{macrocode}
6011 %<*croatian>
6012 % \end{macrocode}
6013 %
6014 % The language definition for Croatian was provided by
6015 % Vedran Mileti\'c ([email protected]),
6016 % Ivan Kokan ([email protected]), and
6017 % Ivica Naki\'c ([email protected]).
6018 %
6019 % \begin{macro}{\bibscroatian}
6020 % \begin{macrocode}
6021 \newcommand\bibscroatian[1][croatian]{%
6022 \def\biblanguagename{#1}%
6023 \def\btxetalshort##1{\protect\foreignlanguage{#1}{i~ost##1{}}}%
6024 \def\btxetallong##1{\protect\foreignlanguage{#1}{i~ostali}}%
6025 \def\btxandshort##1{\protect\foreignlanguage{#1}{i}}%
6026 \def\btxandlong##1{\protect\foreignlanguage{#1}{i}}%
6027 \def\btxandcomma##1{}%
6028 \def\btxinlong##1{\protect\foreignlanguage{#1}{u}}%
6029 \def\btxinshort##1{\protect\foreignlanguage{#1}{u}}%
6030 \def\btxofseriesshort##1{\protect\foreignlanguage{#1}{iz}}%
6031 \def\btxinseriesshort##1{\protect\foreignlanguage{#1}{u}}%
6032 \def\btxofserieslong##1{\protect\foreignlanguage{#1}{iz}}%
6033 \def\btxinserieslong##1{\protect\foreignlanguage{#1}{u}}%
6034 \def\btxeditorshort##1{\protect\foreignlanguage{#1}{ur##1{}}}%
6035 \def\btxeditorlong##1{\protect\foreignlanguage{#1}{urednik}}%
6036 \def\btxeditorsshort##1{\protect\foreignlanguage{#1}{ur##1{}}}%
6037 \def\btxeditorslong##1{\protect\foreignlanguage{#1}{urednici}}%
6038 \def\btxvolumeshort##1{\protect\foreignlanguage{#1}{sv##1{}}}%
6039 \def\btxvolumelong##1{\protect\foreignlanguage{#1}{svezak}}%
6040 \def\btxjvolumeshort##1{\protect\foreignlanguage{#1}{god##1{}}}%
6041 \def\btxjvolumelong##1{\protect\foreignlanguage{#1}{godina}}%
6042 \def\btxnumbershort##1{\protect\foreignlanguage{#1}{br##1{}}}%
6043 \def\btxnumberlong##1{\protect\foreignlanguage{#1}{broj}}%
6044 \def\btxeditionshort##1{\protect\foreignlanguage{#1}{izd##1{}}}%
6045 \def\btxeditionlong##1{\protect\foreignlanguage{#1}{izdanje}}%
6046 \def\btxeditionnumshort##1##2{\btxnumeralshort{##1}~\btxeditionshort{##2}}%
6047 \def\btxeditionnumlong##1##2{\btxnumerallong{##1}~\btxeditionlong{##2}}%
6048 \def\btxchaptershort##1{\protect\foreignlanguage{#1}{pogl##1{}}}%
6049 \def\btxchapterlong##1{\protect\foreignlanguage{#1}{poglavlje}}%
6050 \def\btxpageshort##1{\protect\foreignlanguage{#1}{str##1{}}}%
6051 \def\btxpagelong##1{\protect\foreignlanguage{#1}{stranica}}%
6052 \def\btxpagesshort##1{\protect\foreignlanguage{#1}{str##1{}}}%
6053 \def\btxpageslong##1{\protect\foreignlanguage{#1}{stranice}}%
6054 \def\btxmastthesis##1{\protect\foreignlanguage{#1}{Magistarski rad}}%
6055 \def\btxphdthesis##1{\protect\foreignlanguage{#1}{Disertacija}}%
6056 \def\btxtechrepshort##1{\protect\foreignlanguage{#1}{Tehn.\ izvj##1{}}}%
6057 \def\btxtechreplong##1{\protect\foreignlanguage{#1}{%
6058 Tehni\v{c}ki izvje\v{s}taj}}%
6059 \def\btxmonjanlong##1{\protect\foreignlanguage{#1}{sije\v{c}anj}}%
6060 \def\btxmonfeblong##1{\protect\foreignlanguage{#1}{velja\v{c}a}}%
6061 \def\btxmonmarlong##1{\protect\foreignlanguage{#1}{o\v{z}ujak}}%
6062 \def\btxmonaprlong##1{\protect\foreignlanguage{#1}{travanj}}%
6063 \def\btxmonmaylong##1{\protect\foreignlanguage{#1}{svibanj}}%
6064 \def\btxmonjunlong##1{\protect\foreignlanguage{#1}{lipanj}}%
6065 \def\btxmonjullong##1{\protect\foreignlanguage{#1}{srpanj}}%
6066 \def\btxmonauglong##1{\protect\foreignlanguage{#1}{kolovoz}}%
6067 \def\btxmonseplong##1{\protect\foreignlanguage{#1}{rujan}}%
6068 \def\btxmonoctlong##1{\protect\foreignlanguage{#1}{listopad}}%
6069 \def\btxmonnovlong##1{\protect\foreignlanguage{#1}{studeni}}%
6070 \def\btxmondeclong##1{\protect\foreignlanguage{#1}{prosinac}}%
6071 \def\btxmonjanshort##1{\protect\foreignlanguage{#1}{sij##1{}}}%
6072 \def\btxmonfebshort##1{\protect\foreignlanguage{#1}{velj##1{}}}%
6073 \def\btxmonmarshort##1{\protect\foreignlanguage{#1}{o\v{z}u##1{}}}%
6074 \def\btxmonaprshort##1{\protect\foreignlanguage{#1}{tra##1{}}}%
6075 \def\btxmonmayshort##1{\protect\foreignlanguage{#1}{svi##1{}}}%
6076 \def\btxmonjunshort##1{\protect\foreignlanguage{#1}{lip##1{}}}%
6077 \def\btxmonjulshort##1{\protect\foreignlanguage{#1}{srp##1{}}}%
6078 \def\btxmonaugshort##1{\protect\foreignlanguage{#1}{kol##1{}}}%
6079 \def\btxmonsepshort##1{\protect\foreignlanguage{#1}{ruj##1{}}}%
6080 \def\btxmonoctshort##1{\protect\foreignlanguage{#1}{lis##1{}}}%
6081 \def\btxmonnovshort##1{\protect\foreignlanguage{#1}{stu##1{}}}%
6082 \def\btxmondecshort##1{\protect\foreignlanguage{#1}{pro##1{}}}%
6083 \def\Btxinlong##1{\protect\foreignlanguage{#1}{U}}%
6084 \def\Btxinshort##1{\protect\foreignlanguage{#1}{U}}%
6085 \def\Btxeditorshort##1{\protect\foreignlanguage{#1}{Ur##1{}}}%
6086 \def\Btxeditorlong##1{\protect\foreignlanguage{#1}{Urednik}}%
6087 \def\Btxeditorsshort##1{\protect\foreignlanguage{#1}{Ur##1{}}}%
6088 \def\Btxeditorslong##1{\protect\foreignlanguage{#1}{Urednici}}%
6089 \def\Btxvolumeshort##1{\protect\foreignlanguage{#1}{Sv##1{}}}%
6090 \def\Btxvolumelong##1{\protect\foreignlanguage{#1}{Svezak}}%
6091 \def\Btxjvolumeshort##1{\protect\foreignlanguage{#1}{God##1{}}}%
6092 \def\Btxjvolumelong##1{\protect\foreignlanguage{#1}{Godina}}%
6093 \def\Btxnumbershort##1{\protect\foreignlanguage{#1}{Br##1{}}}%
6094 \def\Btxnumberlong##1{\protect\foreignlanguage{#1}{Broj}}%
6095 \def\Btxeditionshort##1{\protect\foreignlanguage{#1}{Izd##1{}}}%
6096 \def\Btxeditionlong##1{\protect\foreignlanguage{#1}{Izdanje}}%
6097 \def\Btxeditionnumshort##1##2{\btxnumeralshort{##1}~\Btxeditionshort{##2}}%
6098 \def\Btxeditionnumlong##1##2{\btxnumerallong{##1}~\Btxeditionlong{##2}}%
6099 \def\Btxchaptershort##1{\protect\foreignlanguage{#1}{Pogl##1{}}}%
6100 \def\Btxchapterlong##1{\protect\foreignlanguage{#1}{Poglavlje}}%
6101 \def\Btxpageshort##1{\protect\foreignlanguage{#1}{Str##1{}}}%
6102 \def\Btxpagelong##1{\protect\foreignlanguage{#1}{Stranica}}%
6103 \def\Btxpagesshort##1{\protect\foreignlanguage{#1}{Str##1{}}}%
6104 \def\Btxpageslong##1{\protect\foreignlanguage{#1}{Stranice}}%
6105 \def\Btxtechrepshort##1{\protect\foreignlanguage{#1}{Tehn.\ izvj##1{}}}%
6106 \def\Btxtechreplong##1{\protect\foreignlanguage{#1}{%
6107 Tehni\v{c}ki izvje\v{s}taj}}%
6108 \def\btxurldatecomment##1{\protect\foreignlanguage{#1}{, posje\'{c}eno ##1}}%
6109 \def\btxfnamespaceshort{\ }%
6110 \def\btxfnamespacelong{ }%
6111 \def\btxnumeralshort##1{\btxnumeraldot{#1}{##1}}%
6112 \def\btxnumerallong##1{\btxnumeraldot{#1}{##1}}%
6113 % \end{macrocode}
6114 % Define how to print month and year in numeric format, e.\,g. MM/YYYY.
6115 % \begin{macrocode}
6116 \def\btxprintmonthyearnum##1##2{##1/##2}%
6117 \def\btxkeywordlanguage##1{{\protect\selectlanguage{#1}##1}}%
6118 \ifbbbblanguagenames
6119 \def\btxlanguagenameamerican{\protect\foreignlanguage{#1}{engleski}}%
6120 \def\btxlanguagenameaustrian{\protect\foreignlanguage{#1}{njema\v{c}ki}}%
6121 \def\btxlanguagenamebrazil{\protect\foreignlanguage{#1}{portugalski}}%
6122 \def\btxlanguagenamebrazilian{\protect\foreignlanguage{#1}{portugalski}}%
6123 \def\btxlanguagenamebritish{\protect\foreignlanguage{#1}{engleski}}%
6124 \def\btxlanguagenamebulgarian{\protect\foreignlanguage{#1}{bugarski}}%
6125 \def\btxlanguagenamecanadian{\protect\foreignlanguage{#1}{engleski}}%
6126 \def\btxlanguagenamecanadien{\protect\foreignlanguage{#1}{francuski}}%
6127 \def\btxlanguagenamecatalan{\protect\foreignlanguage{#1}{katalonski}}%
6128 \def\btxlanguagenamecroatian{\protect\foreignlanguage{#1}{hrvatski}}%
6129 \def\btxlanguagenameczech{\protect\foreignlanguage{#1}{\v{c}e\v{s}ki}}%
6130 \def\btxlanguagenamedanish{\protect\foreignlanguage{#1}{danski}}%
6131 \def\btxlanguagenamedutch{\protect\foreignlanguage{#1}{nizozemski}}%
6132 \def\btxlanguagenameenglish{\protect\foreignlanguage{#1}{engleski}}%
6133 \def\btxlanguagenameesperanto{\protect\foreignlanguage{#1}{esperanto}}%
6134 \def\btxlanguagenamefinnish{\protect\foreignlanguage{#1}{finski}}%
6135 \def\btxlanguagenamefrancais{\protect\foreignlanguage{#1}{francuski}}%
6136 \def\btxlanguagenamefrench{\protect\foreignlanguage{#1}{francuski}}%
6137 \def\btxlanguagenamefrenchb{\protect\foreignlanguage{#1}{francuski}}%
6138 \def\btxlanguagenamegerman{\protect\foreignlanguage{#1}{njema\v{c}ki}}%
6139 \def\btxlanguagenamegermanb{\protect\foreignlanguage{#1}{njema\v{c}ki}}%
6140 \def\btxlanguagenamegreek{\protect\foreignlanguage{#1}{gr\v{c}ki}}%
6141 \def\btxlanguagenamehebrew{\protect\foreignlanguage{#1}{hebrejski}}%
6142 \def\btxlanguagenamehungarian{\protect\foreignlanguage{#1}{ma\dj{}arski}}%
6143 \def\btxlanguagenameicelandic{\protect\foreignlanguage{#1}{islandski}}%
6144 \def\btxlanguagenameirish{\protect\foreignlanguage{#1}{irski}}%
6145 \def\btxlanguagenameitalian{\protect\foreignlanguage{#1}{talijanski}}%
6146 \def\btxlanguagenamelatin{\protect\foreignlanguage{#1}{latinski}}%
6147 \def\btxlanguagenamenaustrian{\protect\foreignlanguage{#1}{njema\v{c}ki}}%
6148 \def\btxlanguagenamengerman{\protect\foreignlanguage{#1}{njema\v{c}ki}}%
6149 \def\btxlanguagenamenorsk{\protect\foreignlanguage{#1}{norve\v{s}ki}}%
6150 \def\btxlanguagenamenynorsk{\protect\foreignlanguage{#1}{novonorve\v{s}ki}}%
6151 \def\btxlanguagenamepolish{\protect\foreignlanguage{#1}{poljski}}%
6152 \def\btxlanguagenameportuges{\protect\foreignlanguage{#1}{portugalski}}%
6153 \def\btxlanguagenameportuguese{\protect\foreignlanguage{#1}{portugalski}}%
6154 \def\btxlanguagenamerussian{\protect\foreignlanguage{#1}{ruski}}%
6155 \def\btxlanguagenamescottish{\protect\foreignlanguage{#1}{\v{s}kotski}}%
6156 \def\btxlanguagenameserbian{\protect\foreignlanguage{#1}{srpski}}%
6157 \def\btxlanguagenamespanish{\protect\foreignlanguage{#1}{\v{s}panjolski}}%
6158 \def\btxlanguagenameswedish{\protect\foreignlanguage{#1}{\v{s}vedski}}%
6159 \def\btxlanguagenameturkish{\protect\foreignlanguage{#1}{turski}}%
6160 \def\btxlanguagenameUKenglish{\protect\foreignlanguage{#1}{engleski}}%
6161 \def\btxlanguagenameUSenglish{\protect\foreignlanguage{#1}{engleski}}%
6162 \fi
6163 }
6164 % \end{macrocode}
6165 % \end{macro}
6166 % Append the definitions to the language-calling commands.
6167 % \begin{macrocode}
6168 \AtBeginDocument{%
6169 \ifbbbbfixlanguage
6170 \else
6171 \bbbbaddto{croatian}{bibscroatian}
6172 \fi
6173 % \end{macrocode}
6174 % Switch on the change of case in titles for all Afrikaans dialects by
6175 % appending \cs{btxifchangecaseoff} to \cs{extras}\meta{language}.
6176 % \begin{macrocode}
6177 \bbbbaddto{croatian}{btxifchangecaseoff}
6178 }
6179 %</croatian>
6180 % \end{macrocode}
6181 %
6182 % \section{\BibTeX\ style files}
6183 % \changes{0.40}{2003/09/26}{Moved the \texttt{bst} files into the
6184 % global \texttt{dtx} file}%
6185 %
6186 % \subsection{``Normal'' \BibTeX\ style files}
6187 %
6188 % \subsubsection{Generic code}
6189 %
6190 % Because most parts of the \BibTeX\ style files are equal for all
6191 % styles, they are generated from the same source code.
6192 % \begin{macrocode}
6193 %<*bststd>
6194 % \end{macrocode}
6195 % Declare the data fields that are handled by the \BibTeX\ styles.
6196 % \begin{macrocode}
6197 ENTRY
6198 { address
6199 annote
6200 annotelanguage
6201 author
6202 booktitle
6203 chapter
6204 edition
6205 editor
6206 howpublished
6207 institution
6208 isbn
6209 issn
6210 journal
6211 key
6212 language
6213 month
6214 note
6215 number
6216 organization
6217 pages
6218 publisher
6219 school
6220 series
6221 title
6222 type
6223 url
6224 urldate
6225 volume
6226 year
6227 }
6228 {}
6229 %</bststd>
6230 %<bststd&!bstalpha> { label }
6231 %<bststd&bstalpha> { label extra.label sort.label }
6232 %<*bststd>
6233
6234 % \end{macrocode}
6235 % Declare integer variables.
6236 % \begin{macrocode}
6237 INTEGERS
6238 { output.state
6239 before.all
6240 mid.sentence
6241 after.sentence
6242 after.block
6243 before.title
6244 }
6245
6246 % \end{macrocode}
6247 % Declare string variables.
6248 % \begin{macrocode}
6249 STRINGS
6250 { s
6251 t
6252 language.state
6253 change.temp
6254 isbn.command
6255 }
6256
6257 % \end{macrocode}
6258 % Declare the constants that define at which position within a
6259 % citation we are when processing it.
6260 % \begin{macrocode}
6261 FUNCTION {init.state.consts}
6262 { #0 'before.all :=
6263 #1 'mid.sentence :=
6264 #2 'after.sentence :=
6265 #3 'after.block :=
6266 #4 'before.title :=
6267 "nostate" 'language.state :=
6268 }
6269
6270 % \end{macrocode}
6271 % Logical function |not|.
6272 %
6273 % Syntax: \meta{int1} |not| $\longrightarrow$ \meta{int2}.
6274 %
6275 % Returns |1| if \meta{arg1} != |0|, |0| otherwise.
6276 % \begin{macrocode}
6277 FUNCTION {not}
6278 { { #0 }
6279 { #1 }
6280 if$
6281 }
6282
6283 % \end{macrocode}
6284 % Logical function |and|.
6285 % Syntax: \meta{arg1} \meta{arg1} |and|.
6286 % Returns |1| if \meta{arg1} == |true| and \meta{arg2} == |true|, |0|
6287 % otherwise.
6288 % \begin{macrocode}
6289 FUNCTION {and}
6290 { 'skip$
6291 { pop$ #0 }
6292 if$
6293 }
6294
6295 % \end{macrocode}
6296 % Logical function |or|.
6297 % Syntax: \meta{arg1} \meta{arg1} |or|.
6298 % Returns |1| if \meta{arg1} == |true| or \meta{arg2} == |true|, |0|
6299 % otherwise.
6300 % \begin{macrocode}
6301 FUNCTION {or}
6302 { { pop$ #1 }
6303 'skip$
6304 if$
6305 }
6306
6307 % \end{macrocode}
6308 % Function |language.change.case|.
6309 % Syntax: \meta{string1} \meta{string2} |language.change.case|
6310 % $\longrightarrow$ \meta{string3}
6311 % This function has the same syntax as |change.case$| but writes
6312 % \meta{string1} twice into \meta{string3}, first with changed case,
6313 % second with original case.
6314 % \begin{macrocode}
6315 FUNCTION {language.change.case}
6316 {
6317 'change.temp :=
6318 't :=
6319 "\btxifchangecase {"
6320 t change.temp change.case$ *
6321 "}{" *
6322 t *
6323 "}" *
6324 }
6325
6326 % \end{macrocode}
6327 % Generates output for the string \meta{string1}.
6328 % Syntax: \meta{string1} |output.nonnull| $\longrightarrow$ \meta{string2}
6329 % \begin{macrocode}
6330 FUNCTION {output.nonnull}
6331 { 's :=
6332 output.state mid.sentence =
6333 { ", " * write$ }
6334 { output.state after.block =
6335 { add.period$ write$
6336 newline$
6337 "\newblock " write$
6338 }
6339 { output.state before.all =
6340 'write$
6341 {
6342 output.state before.title =
6343 { "\btxauthorcolon\ " * write$ }
6344 { add.period$ " " * write$ }
6345 if$
6346 }
6347 if$
6348 }
6349 if$
6350 mid.sentence 'output.state :=
6351 }
6352 if$
6353 s
6354 }
6355
6356 % \end{macrocode}
6357 % Generates output if the given string \meta{string1} is not empty.
6358 % Syntax: \meta{string1} |output.nonnull| $\longrightarrow$ \meta{string2}
6359 % \begin{macrocode}
6360 FUNCTION {output}
6361 { duplicate$ empty$
6362 'pop$
6363 'output.nonnull
6364 if$
6365 }
6366
6367 % \end{macrocode}
6368 %
6369 % \begin{macrocode}
6370 FUNCTION {output.check}
6371 { 't :=
6372 duplicate$ empty$
6373 { pop$ "empty " t * " in " * cite$ * warning$ }
6374 'output.nonnull
6375 if$
6376 }
6377
6378 % \end{macrocode}
6379 % Outputs a bibliography item.
6380 % \changes{1.17}{2005/11/05}{Change the language in alpha-numerical
6381 % bib items}%
6382 % \begin{macrocode}
6383 FUNCTION {output.bibitem}
6384 { newline$
6385 % \end{macrocode}
6386 % \changes{0.40}{2003/09/26}{Switch to a fall-back language when
6387 % \texttt{language} field is missing}%
6388 % If no language is given, fall back to the language that has been
6389 % active at \cs{begin\{document\}} or to the given fall-back
6390 % language.
6391 % For \BibTeX, this language gets the name \texttt{nolanguage}.
6392 % \begin{macrocode}
6393 language empty$
6394 {
6395 language.state "nolanguage" =
6396 'skip$
6397 {
6398 "empty language in " cite$ * warning$
6399 "\expandafter\btxselectlanguage\expandafter {"
6400 "\btxfallbacklanguage}" *
6401 write$ newline$
6402 }
6403 if$
6404 "nolanguage" 'language.state :=
6405 }
6406 {
6407 language.state language =
6408 'skip$
6409 {
6410 "\btxselectlanguage {" language * "}" *
6411 write$ newline$
6412 }
6413 if$
6414 language 'language.state :=
6415 }
6416 if$
6417 %</bststd>
6418 %<bststd&!bstalpha> "\bibitem {" write$
6419 %<bststd&bstalpha> "\bibitem [{" label * "}]{" * write$
6420 %<*bststd>
6421 cite$ write$
6422 "}" write$
6423 newline$
6424 ""
6425 before.all 'output.state :=
6426 }
6427
6428 % \end{macrocode}
6429 % Output an ISBN or ISSN.
6430 %
6431 % Syntax: \meta{string1} \meta{string2} |output.isbn|
6432 %
6433 % Prints the ISBN or ISSN given by \meta{string1} and uses the \TeX\
6434 % macro given by \meta{string2} to determine if the text is printed or
6435 % not.
6436 % \meta{string2} normally is \cs{ifbtxprintISSN} or
6437 % \cs{ifbtxprintISSN}.
6438 % \begin{macrocode}
6439 FUNCTION {output.isbn}
6440 {
6441 'isbn.command :=
6442 duplicate$
6443 empty$
6444 'pop$
6445 {
6446 's :=
6447 output.state mid.sentence =
6448 {
6449 isbn.command * " {, " * write$
6450 s "}" *
6451 }
6452 { output.state after.block =
6453 {
6454 add.period$
6455 write$
6456 newline$
6457 "\newblock " write$
6458 isbn.command " {" * s * ".}" *
6459 }
6460 { output.state before.all =
6461 {
6462 write$
6463 isbn.command " {" * write$
6464 s "}" *
6465 }
6466 {
6467 output.state before.title =
6468 {
6469 "\btxauthorcolon\ " * write$
6470 isbn.command " {" * write$
6471 s "}" *
6472 }
6473 {
6474 add.period$ " " * write$
6475 isbn.command " {" * write$
6476 s ".}" *
6477 }
6478 if$
6479 }
6480 if$
6481 }
6482 if$
6483 mid.sentence 'output.state :=
6484 }
6485 if$
6486 }
6487 if$
6488 }
6489
6490 % \end{macrocode}
6491 % Completes an entry.
6492 % \begin{macrocode}
6493 FUNCTION {fin.entry}
6494 { add.period$
6495 write$
6496 newline$
6497 }
6498
6499 % \end{macrocode}
6500 %
6501 % \begin{macrocode}
6502 FUNCTION {new.block}
6503 { output.state before.all =
6504 'skip$
6505 { after.block 'output.state := }
6506 if$
6507 }
6508
6509 % \end{macrocode}
6510 %
6511 % \begin{macrocode}
6512 FUNCTION {new.sentence}
6513 { output.state after.block =
6514 'skip$
6515 { output.state before.all =
6516 'skip$
6517 { after.sentence 'output.state := }
6518 if$
6519 }
6520 if$
6521 }
6522
6523 % \end{macrocode}
6524 %
6525 % \begin{macrocode}
6526 FUNCTION {after.authors}
6527 { output.state before.all =
6528 'skip$
6529 { before.title 'output.state := }
6530 if$
6531 }
6532
6533 % \end{macrocode}
6534 %
6535 % \begin{macrocode}
6536 FUNCTION {new.block.checka}
6537 { empty$
6538 'skip$
6539 'new.block
6540 if$
6541 }
6542
6543 % \end{macrocode}
6544 %
6545 % \begin{macrocode}
6546 FUNCTION {new.block.checkb}
6547 { empty$
6548 swap$ empty$
6549 and
6550 'skip$
6551 'new.block
6552 if$
6553 }
6554
6555 % \end{macrocode}
6556 %
6557 % \begin{macrocode}
6558 FUNCTION {new.block.checkc}
6559 { empty$
6560 swap$ empty$
6561 and
6562 'skip$
6563 'after.authors
6564 if$
6565 }
6566
6567 % \end{macrocode}
6568 %
6569 % \begin{macrocode}
6570 FUNCTION {new.sentence.checka}
6571 { empty$
6572 'skip$
6573 'new.sentence
6574 if$
6575 }
6576
6577 % \end{macrocode}
6578 %
6579 % \begin{macrocode}
6580 FUNCTION {new.sentence.checkb}
6581 { empty$
6582 swap$ empty$
6583 and
6584 'skip$
6585 'new.sentence
6586 if$
6587 }
6588
6589 % \end{macrocode}
6590 %
6591 % \begin{macrocode}
6592 FUNCTION {field.or.null}
6593 { duplicate$ empty$
6594 { pop$ "" }
6595 'skip$
6596 if$
6597 }
6598
6599 % \end{macrocode}
6600 % \changes{1.00}{2005/02/16}{Remove \texttt{emphasize} and
6601 % \texttt{smallcaps} from \BibTeX\ styles}%
6602 % \begin{macrocode}
6603 FUNCTION {namefont}
6604 { duplicate$ empty$
6605 { pop$ "" }
6606 { "\btxnamefont {" swap$ * "}" * }
6607 if$
6608 }
6609
6610 % \end{macrocode}
6611 % \changes{1.12}{2005/06/19}{Add extra formatting of lastnames to
6612 % \BibTeX\ styles}%
6613 % \begin{macrocode}
6614 FUNCTION {lastnamefont}
6615 { duplicate$ empty$
6616 { pop$ "" }
6617 { "\btxlastnamefont {" swap$ * "}" * }
6618 if$
6619 }
6620 % \end{macrocode}
6621 % Set font for titles:
6622 % \begin{macrocode}
6623 FUNCTION {titlefont}
6624 { duplicate$ empty$
6625 { pop$ "" }
6626 { "\btxtitlefont {" swap$ * "}" * }
6627 if$
6628 }
6629 % \end{macrocode}
6630 % Set font for titles of articles in journals:
6631 % \begin{macrocode}
6632 FUNCTION {jtitlefont}
6633 { duplicate$ empty$
6634 { pop$ "" }
6635 { "\btxjtitlefont {" swap$ * "}" * }
6636 if$
6637 }
6638 % \end{macrocode}
6639 % Set font for the journal name:
6640 % \begin{macrocode}
6641 FUNCTION {journalfont}
6642 { duplicate$ empty$
6643 { pop$ "" }
6644 { "\btxjournalfont {" swap$ * "}" * }
6645 if$
6646 }
6647 % \end{macrocode}
6648 % Set font for the publisher name:
6649 % \begin{macrocode}
6650 FUNCTION {publisherfont}
6651 { duplicate$ empty$
6652 { pop$ "" }
6653 { "\btxpublisherfont {" swap$ * "}" * }
6654 if$
6655 }
6656 % \end{macrocode}
6657 %
6658 % \begin{macrocode}
6659 FUNCTION {volumefont}
6660 { duplicate$ empty$
6661 { pop$ "" }
6662 { "\btxvolumefont {" swap$ * "}" * }
6663 if$
6664 }
6665
6666 % \end{macrocode}
6667 %
6668 % \begin{macrocode}
6669 FUNCTION {etalfont}
6670 { duplicate$ empty$
6671 { pop$ "" }
6672 { "\btxetalfont {" swap$ * "}" * }
6673 if$
6674 }
6675
6676 % \end{macrocode}
6677 %
6678 % \begin{macrocode}
6679 INTEGERS { nameptr namesleft numnames }
6680
6681 % \end{macrocode}
6682 %
6683 % \begin{macrocode}
6684 FUNCTION {format.names}
6685 { 's :=
6686 #1 'nameptr :=
6687 s num.names$ 'numnames :=
6688 numnames 'namesleft :=
6689 { namesleft #0 > }
6690 { nameptr #1 >
6691 {
6692 %</bststd>
6693 %<*bststd&!bstshort&!namevarb>
6694 s nameptr "{ff{\btxfnamespacelong } }{vv~}" format.name$
6695 s nameptr "{ll}" format.name$ lastnamefont *
6696 s nameptr "{, jj}" format.name$ *
6697 't :=
6698 %</bststd&!bstshort&!namevarb>
6699 %<*bststd&bstshort&!namevarb>
6700 s nameptr
6701 "{f{.\btxfnamespaceshort }.~}{vv~}" format.name$
6702 s nameptr "{ll}" format.name$ lastnamefont *
6703 s nameptr "{,~jj}" format.name$ *
6704 't :=
6705 %</bststd&bstshort&!namevarb>
6706 %<*bststd&!bstshort&namevarb>
6707 s nameptr "{ll}" format.name$ lastnamefont
6708 s nameptr "{,~jj}{, ff{\btxfnamespacelong }}{~vv}" format.name$ *
6709 't :=
6710 %</bststd&!bstshort&namevarb>
6711 %<*bststd&bstshort&namevarb>
6712 s nameptr "{ll}" format.name$ lastnamefont
6713 s nameptr "{,~jj}{,~f{.\btxfnamespaceshort }.}{~vv}" format.name$ *
6714 't :=
6715 %</bststd&bstshort&namevarb>
6716 %<*bststd&bstthree>
6717 namesleft #2 >
6718 { " " "\btxetalshort {.}" etalfont * *
6719 #1 'namesleft := }
6720 {
6721 %</bststd&bstthree>
6722 %<*bststd>
6723 namesleft #1 >
6724 { ", " * t namefont * }
6725 { numnames #2 >
6726 { "\btxandcomma {}" * }
6727 'skip$
6728 if$
6729 s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ "others" =
6730 { " " "\btxetalshort {.}" etalfont * * }
6731 %</bststd>
6732 %<bststd&!bstshort> { " \btxandlong {}\ " * t namefont * }
6733 %<bststd&bstshort> { " \btxandshort {.}\ " * t namefont * }
6734 %<*bststd&bstthree>
6735 if$
6736 }
6737 %</bststd&bstthree>
6738 %<*bststd>
6739 if$
6740 }
6741 if$
6742 }
6743 {
6744 %</bststd>
6745 %<*bststd&!bstshort&!namevara>
6746 s nameptr "{ll}" format.name$ lastnamefont
6747 s nameptr "{,~jj}{, ff{\btxfnamespacelong }}{~vv}"
6748 format.name$ * namefont
6749 %</bststd&!bstshort&!namevara>
6750 %<*bststd&bstshort&!namevara>
6751 s nameptr "{ll}" format.name$ lastnamefont
6752 s nameptr "{,~jj}{,~f{.\btxfnamespaceshort }.}{~vv}"
6753 format.name$ * namefont
6754 %</bststd&bstshort&!namevara>
6755 %<*bststd&!bstshort&namevara>
6756 s nameptr "{ff{\btxfnamespacelong } }{vv~}" format.name$
6757 s nameptr "{ll}" format.name$ lastnamefont *
6758 s nameptr "{,~jj}" format.name$ * namefont
6759 %</bststd&!bstshort&namevara>
6760 %<*bststd&bstshort&namevara>
6761 s nameptr "{f{.\btxfnamespaceshort }.~}{vv~}" format.name$
6762 s nameptr "{ll}" format.name$ lastnamefont *
6763 s nameptr "{,~jj}" format.name$ * namefont
6764 %</bststd&bstshort&namevara>
6765 %<*bststd>
6766 }
6767 if$
6768 nameptr #1 + 'nameptr :=
6769 namesleft #1 - 'namesleft :=
6770 }
6771 while$
6772 }
6773
6774 % \end{macrocode}
6775 %
6776 % \begin{macrocode}
6777 FUNCTION {format.authors}
6778 { author empty$
6779 { "" }
6780 { author format.names }
6781 if$
6782 }
6783
6784 % \end{macrocode}
6785 %
6786 % \begin{macrocode}
6787 FUNCTION {format.editors}
6788 { editor empty$
6789 { "" }
6790 { editor format.names
6791 editor num.names$ #1 >
6792 %</bststd>
6793 %<*bststd&!bstshort>
6794 { "\ (\btxeditorslong {})" * }
6795 { "\ (\btxeditorlong {})" * }
6796 %</bststd&!bstshort>
6797 %<*bststd&bstshort>
6798 { "\ (\btxeditorsshort {.})" * }
6799 { "\ (\btxeditorshort {.})" * }
6800 %</bststd&bstshort>
6801 %<*bststd>
6802 if$
6803 }
6804 if$
6805 }
6806 % \end{macrocode}
6807 % Format the title:
6808 % \begin{macrocode}
6809 FUNCTION {format.title}
6810 { title empty$
6811 { "" }
6812 { title "t" language.change.case titlefont }
6813 if$
6814 }
6815 % \end{macrocode}
6816 % Format the title of a journal article:
6817 % \begin{macrocode}
6818 FUNCTION {format.jtitle}
6819 { title empty$
6820 { "" }
6821 { title "t" language.change.case jtitlefont }
6822 if$
6823 }
6824 % \end{macrocode}
6825 %
6826 % \begin{macrocode}
6827 FUNCTION {n.dashify}
6828 { 't :=
6829 ""
6830 { t empty$ not }
6831 { t #1 #1 substring$ "-" =
6832 { t #1 #2 substring$ "--" = not
6833 { "--" *
6834 t #2 global.max$ substring$ 't :=
6835 }
6836 { { t #1 #1 substring$ "-" = }
6837 { "-" *
6838 t #2 global.max$ substring$ 't :=
6839 }
6840 while$
6841 }
6842 if$
6843 }
6844 { t #1 #1 substring$ *
6845 t #2 global.max$ substring$ 't :=
6846 }
6847 if$
6848 }
6849 while$
6850 }
6851
6852 % \end{macrocode}
6853 %
6854 % \begin{macrocode}
6855 FUNCTION {format.date}
6856 { year empty$
6857 { month empty$
6858 { "" }
6859 { "there's a month but no year in " cite$ * warning$
6860 month
6861 }
6862 if$
6863 }
6864 { month empty$
6865 'year
6866 %</bststd>
6867 %<*bststd&!bstshort>
6868 { "\btxprintmonthyear{.}{"
6869 month * "}{" * year * "}{long}" *
6870 }
6871 %</bststd&!bstshort>
6872 %<*bststd&bstshort>
6873 { "\btxprintmonthyear{.}{"
6874 month * "}{" * year * "}{short}" *
6875 }
6876 %</bststd&bstshort>
6877 %<*bststd>
6878 if$
6879 }
6880 if$
6881 }
6882
6883 % \end{macrocode}
6884 %
6885 % \begin{macrocode}
6886 FUNCTION {format.btitle}
6887 { title titlefont
6888 }
6889
6890 % \end{macrocode}
6891 %
6892 % \begin{macrocode}
6893 FUNCTION {tie.or.space.connect}
6894 { duplicate$ text.length$ #3 <
6895 { "~" }
6896 { "\ " }
6897 if$
6898 swap$ * *
6899 }
6900
6901 % \end{macrocode}
6902 %
6903 % \begin{macrocode}
6904 FUNCTION {volume.tie.or.space.connect}
6905 { duplicate$ text.length$ #3 <
6906 { "~" }
6907 { "\ " }
6908 if$
6909 swap$ volumefont * *
6910 }
6911
6912 % \end{macrocode}
6913 %
6914 % \begin{macrocode}
6915 FUNCTION {either.or.check}
6916 { empty$
6917 'pop$
6918 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
6919 if$
6920 }
6921
6922 % \end{macrocode}
6923 %
6924 % \begin{macrocode}
6925 FUNCTION {format.bvolume}
6926 { volume empty$
6927 { "" }
6928 { output.state after.block =
6929 %</bststd>
6930 %<bststd&!bstshort> { "\Btxvolumelong {}" }
6931 %<bststd&!bstshort> { "\btxvolumelong {}" }
6932 %<bststd&bstshort> { "\Btxvolumeshort {.}" }
6933 %<bststd&bstshort> { "\btxvolumeshort {.}" }
6934 %<*bststd>
6935 if$
6936 volume volume.tie.or.space.connect
6937 series empty$
6938 'skip$
6939 %</bststd>
6940 %<bststd&!bstshort> { " \btxofserieslong {}\ " * series titlefont * }
6941 %<bststd&bstshort> { " \btxofseriesshort {.}\ " * series titlefont * }
6942 %<*bststd>
6943 if$
6944 "volume and number" number either.or.check
6945 }
6946 if$
6947 }
6948
6949 % \end{macrocode}
6950 %
6951 % \begin{macrocode}
6952 FUNCTION {format.number.series}
6953 { volume empty$
6954 { number empty$
6955 { series field.or.null }
6956 { output.state mid.sentence =
6957 %</bststd>
6958 %<bststd&!bstshort> { "\btxnumberlong {}" }
6959 %<bststd&!bstshort> { "\Btxnumberlong {}" }
6960 %<bststd&bstshort> { "\btxnumbershort {.}" }
6961 %<bststd&bstshort> { "\Btxnumbershort {.}" }
6962 %<*bststd>
6963 if$
6964 number tie.or.space.connect
6965 series empty$
6966 { "there's a number but no series in " cite$ * warning$ }
6967 %</bststd>
6968 %<bststd&!bstshort> { " \btxinserieslong {}\ " * series titlefont * }
6969 %<bststd&bstshort> { " \btxinseriesshort {.}\ " * series titlefont * }
6970 %<*bststd>
6971 if$
6972 }
6973 if$
6974 }
6975 { "" }
6976 if$
6977 }
6978
6979 % \end{macrocode}
6980 %
6981 % \begin{macrocode}
6982 FUNCTION {format.edition}
6983 { edition empty$
6984 { "" }
6985 {
6986 %</bststd>
6987 % \end{macrocode}
6988 % Handle the edition first to get the beginning of the sentence.
6989 % Afterwards, the text before the edition is put to the stack and
6990 % exchanged with the edition number itself.
6991 % \begin{macrocode}
6992 %<*bststd&!bstshort>
6993 output.state mid.sentence =
6994 { edition "l" change.case$ }
6995 { edition "t" change.case$ }
6996 if$
6997 "\btxeditionnumlong {" swap$ *
6998 "}{}" *
6999 %</bststd&!bstshort>
7000 %<*bststd&bstshort>
7001 output.state mid.sentence =
7002 { edition "l" change.case$ }
7003 { edition "t" change.case$ }
7004 if$
7005 "\btxeditionnumshort {" swap$ *
7006 "}{.}" *
7007 %</bststd&bstshort>
7008 %<*bststd>
7009 }
7010 if$
7011 }
7012
7013 FUNCTION {format.isbn}
7014 { isbn empty$
7015 { "" }
7016 { "\mbox{\btxISBN~\btxISBNfont {" isbn * "}}" * }
7017 if$
7018 }
7019
7020 % \end{macrocode}
7021 %
7022 % \begin{macrocode}
7023 FUNCTION {format.issn}
7024 { issn empty$
7025 { "" }
7026 { "\mbox{\btxISSN~\btxISSNfont {" issn * "}}" * }
7027 if$
7028 }
7029 % \end{macrocode}
7030 %
7031 % \begin{macrocode}
7032 FUNCTION {format.url}
7033 { url empty$
7034 { "" }
7035 {
7036 urldate empty$
7037 { "{\latintext \btxurlfont{" url * "}}" * }
7038 {
7039 "{\latintext \btxurlfont{" url * "}}\empty " *
7040 "\btxurldatecomment {\btxkeywordlanguage {\btxurldatefont{" *
7041 urldate * "}}}" *
7042 }
7043 if$
7044 }
7045 if$
7046 }
7047 % \end{macrocode}
7048 % Format annotations:
7049 % \begin{macrocode}
7050 FUNCTION {write.annote}
7051 { annote empty$
7052 'skip$
7053 {
7054 annotelanguage empty$
7055 { "\btxkeywordlanguage {" }
7056 { "{\selectlanguage {" annotelanguage * "}" * }
7057 if$
7058 "\btxannotation {" * annote * "}}" *
7059 write$ newline$
7060 }
7061 if$
7062 }
7063 % \end{macrocode}
7064 %
7065 % \begin{macrocode}
7066 INTEGERS { multiresult }
7067
7068 % \end{macrocode}
7069 %
7070 % \begin{macrocode}
7071 FUNCTION {multi.page.check}
7072 { 't :=
7073 #0 'multiresult :=
7074 { multiresult not
7075 t empty$ not
7076 and
7077 }
7078 { t #1 #1 substring$
7079 duplicate$ "-" =
7080 swap$ duplicate$ "," =
7081 swap$ "+" =
7082 or or
7083 { #1 'multiresult := }
7084 { t #2 global.max$ substring$ 't := }
7085 if$
7086 }
7087 while$
7088 multiresult
7089 }
7090
7091 % \end{macrocode}
7092 %
7093 % \begin{macrocode}
7094 FUNCTION {format.pages}
7095 { pages empty$
7096 { "" }
7097 { pages multi.page.check
7098 %</bststd>
7099 %<*bststd&!bstshort>
7100 { "\btxpageslong {}" pages n.dashify tie.or.space.connect }
7101 { "\btxpagelong {}" pages tie.or.space.connect }
7102 %</bststd&!bstshort>
7103 %<*bststd&bstshort>
7104 { "\btxpagesshort {.}" pages n.dashify tie.or.space.connect }
7105 { "\btxpageshort {.}" pages tie.or.space.connect }
7106 %</bststd&bstshort>
7107 %<*bststd>
7108 if$
7109 }
7110 if$
7111 }
7112
7113 % \end{macrocode}
7114 %
7115 % \begin{macrocode}
7116 FUNCTION {format.vol.num.pages}
7117 { volume field.or.null
7118 number empty$
7119 'skip$
7120 { "(" number * ")" * *
7121 volume empty$
7122 { "there's a number but no volume in " cite$ * warning$ }
7123 'skip$
7124 if$
7125 }
7126 if$
7127 pages empty$
7128 'skip$
7129 { duplicate$ empty$
7130 { pop$ format.pages }
7131 { ":" * pages n.dashify * }
7132 if$
7133 }
7134 if$
7135 }
7136
7137 % \end{macrocode}
7138 %
7139 % \begin{macrocode}
7140 FUNCTION {format.chapter.pages}
7141 { chapter empty$
7142 'format.pages
7143 { type empty$
7144 %</bststd>
7145 %<bststd&!bstshort> { "\btxchapterlong {}" }
7146 %<bststd&bstshort> { "\btxchaptershort {.}" }
7147 %<*bststd>
7148 { type "l" language.change.case }
7149 if$
7150 chapter tie.or.space.connect
7151 pages empty$
7152 'skip$
7153 { ", " * format.pages * }
7154 if$
7155 }
7156 if$
7157 }
7158
7159 FUNCTION {format.in.ed.booktitle}
7160 { booktitle empty$
7161 { "" }
7162 { editor empty$
7163 %</bststd>
7164 %<*bststd&!bstshort>
7165 { "\Btxinlong {}\ " booktitle titlefont * }
7166 { "\Btxinlong {}\ " format.editors * ": " * booktitle titlefont * }
7167 %</bststd&!bstshort>
7168 %<*bststd&bstshort>
7169 { "\Btxinshort {.}\ " booktitle titlefont * }
7170 { "\Btxinshort {.}\ " format.editors * ": " * booktitle titlefont * }
7171 %</bststd&bstshort>
7172 %<*bststd>
7173 if$
7174 }
7175 if$
7176 }
7177
7178 % \end{macrocode}
7179 %
7180 % \begin{macrocode}
7181 FUNCTION {empty.misc.check}
7182 { author empty$ title empty$ howpublished empty$
7183 month empty$ year empty$ note empty$
7184 and and and and and
7185 key empty$ not and
7186 { "all relevant fields are empty in " cite$ * warning$ }
7187 'skip$
7188 if$
7189 }
7190
7191 % \end{macrocode}
7192 %
7193 % \begin{macrocode}
7194 FUNCTION {format.thesis.type}
7195 { type empty$
7196 'skip$
7197 { pop$
7198 type "t" language.change.case
7199 }
7200 if$
7201 }
7202
7203 % \end{macrocode}
7204 %
7205 % \begin{macrocode}
7206 FUNCTION {format.tr.number}
7207 {
7208 number empty$
7209 {
7210 type empty$
7211 %</bststd>
7212 % \end{macrocode}
7213 % \changes{0.40}{2003/09/26}{For \texttt{babalpha.bst}, use
7214 % \cs{btxtechreplong}}%
7215 % \begin{macrocode}
7216 %<bststd&!bstshort> { "\btxtechreplong {}" }
7217 %<bststd&bstshort> { "\btxtechrepshort {.}" }
7218 %<*bststd>
7219 { type "t" language.change.case }
7220 if$
7221 }
7222 {
7223 type empty$
7224 %</bststd>
7225 % \end{macrocode}
7226 % \changes{0.40}{2003/09/26}{For \texttt{babalpha.bst}, use
7227 % \cs{Btxtechreplong}}%
7228 % \begin{macrocode}
7229 %<bststd&!bstshort> { "\Btxtechreplong {}" }
7230 %<bststd&bstshort> { "\Btxtechrepshort {.}" }
7231 %<*bststd>
7232 { type "t" language.change.case }
7233 if$
7234 number tie.or.space.connect
7235 }
7236 if$
7237 }
7238
7239 % \end{macrocode}
7240 %
7241 % \begin{macrocode}
7242 FUNCTION {format.article.crossref}
7243 { key empty$
7244 %</bststd>
7245 %<*bststd&!bstshort>
7246 { journal empty$
7247 { "need key or journal for " cite$ * " to crossref " * crossref *
7248 warning$
7249 ""
7250 }
7251 { "\Btxinlong {}\ " journal titlefont * }
7252 if$
7253 }
7254 { "\Btxinlong {}\ " key titlefont * }
7255 %</bststd&!bstshort>
7256 %<*bststd&bstshort>
7257 { journal empty$
7258 { "need key or journal for " cite$ * " to crossref " * crossref *
7259 warning$
7260 ""
7261 }
7262 { "\Btxinshort {.}\ " journal titlefont * }
7263 if$
7264 }
7265 { "\Btxinshort {.}\ " key titlefont * }
7266 %</bststd&bstshort>
7267 %<*bststd>
7268 if$
7269 " \cite{" * crossref * "}" *
7270 }
7271
7272 % \end{macrocode}
7273 %
7274 % \begin{macrocode}
7275 FUNCTION {format.crossref.editor}
7276 {
7277 %</bststd>
7278 %<*bststd&!bstshort>
7279 editor #1 "{ll}{,~jj}{, ff}{~vv}" format.name$ namefont
7280 %</bststd&!bstshort>
7281 %<*bststd&bstshort>
7282 editor #1 "{ll}{,~jj}{,~f.}{~vv}" format.name$ namefont
7283 %</bststd&bstshort>
7284 %<*bststd>
7285 editor num.names$ duplicate$
7286 #2 >
7287 { pop$ " " "\btxetalshort {.}" etalfont * * }
7288 { #2 <
7289 'skip$
7290 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
7291 { " " "\btxetalshort {.}" etalfont * * }
7292 %</bststd>
7293 %<*bststd&!bstshort>
7294 { " \btxandlong {}\ " * editor #2 "{ff}{~vv}{~ll}{, jj}"
7295 %</bststd&!bstshort>
7296 %<*bststd&bstshort>
7297 { " \btxandshort {.}\ " * editor #2 "{vv~}{ll}"
7298 %</bststd&bstshort>
7299 %<*bststd>
7300 format.name$ namefont * }
7301 if$
7302 }
7303 if$
7304 }
7305 if$
7306 }
7307
7308 % \end{macrocode}
7309 %
7310 % \begin{macrocode}
7311 FUNCTION {format.book.crossref}
7312 { volume empty$
7313 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
7314 %</bststd>
7315 %<bststd&!bstshort> "\Btxinlong {}\ "
7316 %<bststd&bstshort> "\Btxinshort {.}\ "
7317 %<*bststd>
7318 }
7319 %</bststd>
7320 %<*bststd&!bstshort>
7321 { "\Btxvolumelong {}" volume volume.tie.or.space.connect
7322 " \btxofserieslong {}\ " *
7323 %</bststd&!bstshort>
7324 %<*bststd&bstshort>
7325 { "\Btxvolumeshort {.}" volume volume.tie.or.space.connect
7326 " \btxofseriesshort {.}\ " *
7327 %</bststd&bstshort>
7328 %<*bststd>
7329 }
7330 if$
7331 editor empty$
7332 editor field.or.null author field.or.null =
7333 or
7334 { key empty$
7335 { series empty$
7336 { "need editor, key, or series for " cite$ * " to crossref " *
7337 crossref * warning$
7338 "" *
7339 }
7340 { series titlefont * }
7341 if$
7342 }
7343 { key titlefont * }
7344 if$
7345 }
7346 { format.crossref.editor * }
7347 if$
7348 " \cite{" * crossref * "}" *
7349 }
7350
7351 % \end{macrocode}
7352 %
7353 % \begin{macrocode}
7354 FUNCTION {format.incoll.inproc.crossref}
7355 { editor empty$
7356 editor field.or.null author field.or.null =
7357 or
7358 { key empty$
7359 { booktitle empty$
7360 { "need editor, key, or booktitle for " cite$ * " to crossref " *
7361 crossref * warning$
7362 ""
7363 }
7364 %</bststd>
7365 %<bststd&!bstshort> { "\Btxinlong {}\ " booktitle titlefont * }
7366 %<bststd&bstshort> { "\Btxinshort {.}\ " booktitle titlefont * }
7367 %<*bststd>
7368 if$
7369 }
7370 %</bststd>
7371 %<bststd&!bstshort> { "\Btxinlong {}\ " key titlefont * }
7372 %<bststd&bstshort> { "\Btxinshort {.}\ " key titlefont * }
7373 %<*bststd>
7374 if$
7375 }
7376 %</bststd>
7377 %<bststd&!bstshort> { "\Btxinlong {}\ " format.crossref.editor * }
7378 %<bststd&bstshort> { "\Btxinshort {.}\ " format.crossref.editor * }
7379 %<*bststd>
7380 if$
7381 " \cite{" * crossref * "}" *
7382 }
7383
7384 % \end{macrocode}
7385 %
7386 % \begin{macrocode}
7387 FUNCTION {article}
7388 { output.bibitem
7389 format.authors "author" output.check
7390 after.authors
7391 format.jtitle "title" output.check
7392 new.block
7393 crossref missing$
7394 { journal
7395 title missing$
7396 { titlefont }
7397 { journalfont }
7398 if$
7399 "journal" output.check
7400 format.vol.num.pages output
7401 format.date "year" output.check
7402 }
7403 { format.article.crossref output.nonnull
7404 format.pages output
7405 }
7406 if$
7407 format.issn "\ifbtxprintISSN" output.isbn
7408 new.block
7409 format.url output
7410 note output
7411 fin.entry
7412 write.annote
7413 }
7414
7415 % \end{macrocode}
7416 %
7417 % \begin{macrocode}
7418 FUNCTION {book}
7419 { output.bibitem
7420 author empty$
7421 { format.editors "author and editor" output.check }
7422 { format.authors output.nonnull
7423 crossref missing$
7424 { "author and editor" editor either.or.check }
7425 'skip$
7426 if$
7427 }
7428 if$
7429 after.authors
7430 format.btitle "title" output.check
7431 crossref missing$
7432 { format.bvolume output
7433 new.block
7434 format.number.series output
7435 new.sentence
7436 publisher "publisher" output.check publisherfont
7437 address output
7438 }
7439 { new.block
7440 format.book.crossref output.nonnull
7441 }
7442 if$
7443 format.edition output
7444 format.date "year" output.check
7445 format.isbn "\ifbtxprintISBN" output.isbn
7446 new.block
7447 format.url output
7448 note output
7449 fin.entry
7450 write.annote
7451 }
7452
7453 % \end{macrocode}
7454 %
7455 % \begin{macrocode}
7456 FUNCTION {booklet}
7457 { output.bibitem
7458 format.authors output
7459 after.authors
7460 format.title "title" output.check
7461 howpublished address new.block.checkb
7462 howpublished output
7463 address output
7464 format.date output
7465 new.block
7466 format.url output
7467 note output
7468 fin.entry
7469 write.annote
7470 }
7471
7472 % \end{macrocode}
7473 %
7474 % \begin{macrocode}
7475 FUNCTION {inbook}
7476 { output.bibitem
7477 author empty$
7478 { format.editors "author and editor" output.check }
7479 { format.authors output.nonnull
7480 crossref missing$
7481 { "author and editor" editor either.or.check }
7482 'skip$
7483 if$
7484 }
7485 if$
7486 after.authors
7487 format.btitle "title" output.check
7488 crossref missing$
7489 { format.bvolume output
7490 format.chapter.pages "chapter and pages" output.check
7491 new.block
7492 format.number.series output
7493 new.sentence
7494 publisher "publisher" output.check publisherfont
7495 address output
7496 }
7497 { format.chapter.pages "chapter and pages" output.check
7498 new.block
7499 format.book.crossref output.nonnull
7500 }
7501 if$
7502 format.edition output
7503 format.date "year" output.check
7504 format.isbn "\ifbtxprintISBN" output.isbn
7505 new.block
7506 format.url output
7507 note output
7508 fin.entry
7509 write.annote
7510 }
7511
7512 % \end{macrocode}
7513 %
7514 % \begin{macrocode}
7515 FUNCTION {incollection}
7516 { output.bibitem
7517 format.authors "author" output.check
7518 after.authors
7519 format.title "title" output.check
7520 new.block
7521 crossref missing$
7522 { format.in.ed.booktitle "booktitle" output.check
7523 format.bvolume output
7524 format.number.series output
7525 format.chapter.pages output
7526 new.sentence
7527 publisher "publisher" output.check publisherfont
7528 address output
7529 format.edition output
7530 format.date "year" output.check
7531 }
7532 { format.incoll.inproc.crossref output.nonnull
7533 format.chapter.pages output
7534 }
7535 if$
7536 format.isbn "\ifbtxprintISBN" output.isbn
7537 new.block
7538 format.url output
7539 note output
7540 fin.entry
7541 write.annote
7542 }
7543
7544 % \end{macrocode}
7545 %
7546 % \begin{macrocode}
7547 FUNCTION {inproceedings}
7548 { output.bibitem
7549 format.authors "author" output.check
7550 after.authors
7551 format.title "title" output.check
7552 new.block
7553 crossref missing$
7554 { format.in.ed.booktitle "booktitle" output.check
7555 format.bvolume output
7556 format.number.series output
7557 format.pages output
7558 address empty$
7559 { organization publisher new.sentence.checkb
7560 organization output
7561 publisher publisherfont output
7562 format.date "year" output.check
7563 }
7564 { address output.nonnull
7565 format.date "year" output.check
7566 new.sentence
7567 organization output
7568 publisher publisherfont output
7569 }
7570 if$
7571 }
7572 { format.incoll.inproc.crossref output.nonnull
7573 format.pages output
7574 }
7575 if$
7576 format.isbn "\ifbtxprintISBN" output.isbn
7577 new.block
7578 format.url output
7579 note output
7580 fin.entry
7581 write.annote
7582 }
7583
7584 % \end{macrocode}
7585 %
7586 % \begin{macrocode}
7587 FUNCTION {conference} { inproceedings }
7588
7589 % \end{macrocode}
7590 %
7591 % \begin{macrocode}
7592 FUNCTION {manual}
7593 { output.bibitem
7594 author empty$
7595 { organization empty$
7596 'skip$
7597 { organization output.nonnull
7598 address output
7599 }
7600 if$
7601 }
7602 { format.authors output.nonnull }
7603 if$
7604 after.authors
7605 format.btitle "title" output.check
7606 author empty$
7607 { organization empty$
7608 { address new.block.checka
7609 address output
7610 }
7611 'skip$
7612 if$
7613 }
7614 { organization address new.block.checkb
7615 organization output
7616 address output
7617 }
7618 if$
7619 format.edition output
7620 format.date output
7621 format.isbn "\ifbtxprintISBN" output.isbn
7622 new.block
7623 format.url output
7624 note output
7625 fin.entry
7626 write.annote
7627 }
7628
7629 % \end{macrocode}
7630 %
7631 % \begin{macrocode}
7632 FUNCTION {mastersthesis}
7633 { output.bibitem
7634 format.authors "author" output.check
7635 after.authors
7636 format.title "title" output.check
7637 new.block
7638 "\btxmastthesis {}" format.thesis.type output.nonnull
7639 school "school" output.check
7640 address output
7641 format.date "year" output.check
7642 new.block
7643 format.url output
7644 note output
7645 fin.entry
7646 write.annote
7647 }
7648
7649 % \end{macrocode}
7650 %
7651 % \begin{macrocode}
7652 FUNCTION {misc}
7653 { output.bibitem
7654 format.authors output
7655 title howpublished new.block.checkc
7656 format.title output
7657 howpublished new.block.checka
7658 howpublished output
7659 format.date output
7660 format.isbn "\ifbtxprintISBN" output.isbn
7661 new.block
7662 format.issn "\ifbtxprintISSN" output.isbn
7663 new.block
7664 format.url output
7665 note output
7666 fin.entry
7667 write.annote
7668 empty.misc.check
7669 }
7670
7671 % \end{macrocode}
7672 %
7673 % \begin{macrocode}
7674 FUNCTION {phdthesis}
7675 { output.bibitem
7676 format.authors "author" output.check
7677 after.authors
7678 format.btitle "title" output.check
7679 new.block
7680 "\btxphdthesis {}" format.thesis.type output.nonnull
7681 school "school" output.check
7682 address output
7683 format.date "year" output.check
7684 format.isbn "\ifbtxprintISBN" output.isbn
7685 new.block
7686 format.url output
7687 note output
7688 fin.entry
7689 write.annote
7690 }
7691
7692 % \end{macrocode}
7693 %
7694 % \begin{macrocode}
7695 FUNCTION {proceedings}
7696 { output.bibitem
7697 editor empty$
7698 { organization output }
7699 { format.editors output.nonnull }
7700 if$
7701 after.authors
7702 format.btitle "title" output.check
7703 format.bvolume output
7704 format.number.series output
7705 address empty$
7706 { editor empty$
7707 { publisher new.sentence.checka }
7708 { organization publisher new.sentence.checkb
7709 organization output
7710 }
7711 if$
7712 publisher publisherfont output
7713 format.date "year" output.check
7714 }
7715 { address output.nonnull
7716 format.date "year" output.check
7717 new.sentence
7718 editor empty$
7719 'skip$
7720 { organization output }
7721 if$
7722 publisher publisherfont output
7723 }
7724 if$
7725 format.isbn "\ifbtxprintISBN" output.isbn
7726 new.block
7727 format.url output
7728 note output
7729 fin.entry
7730 write.annote
7731 }
7732
7733 % \end{macrocode}
7734 %
7735 % \begin{macrocode}
7736 FUNCTION {techreport}
7737 { output.bibitem
7738 format.authors "author" output.check
7739 after.authors
7740 format.title "title" output.check
7741 new.block
7742 format.tr.number output.nonnull
7743 institution "institution" output.check
7744 address output
7745 format.date "year" output.check
7746 format.isbn "\ifbtxprintISBN" output.isbn
7747 new.block
7748 format.url output
7749 note output
7750 fin.entry
7751 write.annote
7752 }
7753
7754 % \end{macrocode}
7755 %
7756 % \begin{macrocode}
7757 FUNCTION {unpublished}
7758 { output.bibitem
7759 format.authors "author" output.check
7760 after.authors
7761 format.title "title" output.check
7762 new.block
7763 format.url output
7764 note "note" output.check
7765 format.date output
7766 fin.entry
7767 write.annote
7768 }
7769
7770 % \end{macrocode}
7771 %
7772 % \begin{macrocode}
7773 FUNCTION {default.type} { misc }
7774
7775 %</bststd>
7776 % \end{macrocode}
7777 % Months and journals:
7778 % \begin{macrocode}
7779 %<*bststd&!bstshort>
7780 MACRO {jan} {"1"}
7781 MACRO {feb} {"2"}
7782 MACRO {mar} {"3"}
7783 MACRO {apr} {"4"}
7784 MACRO {may} {"5"}
7785 MACRO {jun} {"6"}
7786 MACRO {jul} {"7"}
7787 MACRO {aug} {"8"}
7788 MACRO {sep} {"9"}
7789 MACRO {oct} {"10"}
7790 MACRO {nov} {"11"}
7791 MACRO {dec} {"12"}
7792 MACRO {acmcs} {"ACM Computing Surveys"}
7793 MACRO {acta} {"Acta Informatica"}
7794 MACRO {cacm} {"Communications of the ACM"}
7795 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
7796 MACRO {ibmsj} {"IBM Systems Journal"}
7797 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
7798 MACRO {ieeetc} {"IEEE Transactions on Computers"}
7799 MACRO {ieeetcad}
7800 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
7801 MACRO {ipl} {"Information Processing Letters"}
7802 MACRO {jacm} {"Journal of the ACM"}
7803 MACRO {jcss} {"Journal of Computer and System Sciences"}
7804 MACRO {scp} {"Science of Computer Programming"}
7805 MACRO {sicomp} {"SIAM Journal on Computing"}
7806 MACRO {tocs} {"ACM Transactions on Computer Systems"}
7807 MACRO {tods} {"ACM Transactions on Database Systems"}
7808 MACRO {tog} {"ACM Transactions on Graphics"}
7809 MACRO {toms} {"ACM Transactions on Mathematical Software"}
7810 MACRO {toois} {"ACM Transactions on Office Information Systems"}
7811 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
7812 MACRO {tcs} {"Theoretical Computer Science"}
7813 %</bststd&!bstshort>
7814 %<*bststd&bstshort>
7815 MACRO {jan} {"1"}
7816 MACRO {feb} {"2"}
7817 MACRO {mar} {"3"}
7818 MACRO {apr} {"4"}
7819 MACRO {may} {"5"}
7820 MACRO {jun} {"6"}
7821 MACRO {jul} {"7"}
7822 MACRO {aug} {"8"}
7823 MACRO {sep} {"9"}
7824 MACRO {oct} {"10"}
7825 MACRO {nov} {"11"}
7826 MACRO {dec} {"12"}
7827 MACRO {acmcs} {"ACM Comput.\ Surv.{}"}
7828 MACRO {acta} {"Acta Inf.{}"}
7829 MACRO {cacm} {"Commun. ACM"}
7830 MACRO {ibmjrd} {"IBM J.~Res.\ Dev.{}"}
7831 MACRO {ibmsj} {"IBM Syst.~J.{}"}
7832 MACRO {ieeese} {"IEEE Trans.\ Softw.\ Eng.{}"}
7833 MACRO {ieeetc} {"IEEE Trans.\ Comput.{}"}
7834 MACRO {ieeetcad}
7835 {"IEEE Trans.\ Comput.-Aided Design Integrated Circuits"}
7836 MACRO {ipl} {"Inf.\ Process.\ Lett.{}"}
7837 MACRO {jacm} {"J.~ACM"}
7838 MACRO {jcss} {"J.~Comput.\ Syst.\ Sci.{}"}
7839 MACRO {scp} {"Sci.\ Comput.\ Programming"}
7840 MACRO {sicomp} {"SIAM J.~Comput.{}"}
7841 MACRO {tocs} {"ACM Trans.\ Comput.\ Syst.{}"}
7842 MACRO {tods} {"ACM Trans.\ Database Syst.{}"}
7843 MACRO {tog} {"ACM Trans.\ Gr.{}"}
7844 MACRO {toms} {"ACM Trans.\ Math.\ Softw.{}"}
7845 MACRO {toois} {"ACM Trans.\ Office Inf.\ Syst.{}"}
7846 MACRO {toplas} {"ACM Trans.\ Prog.\ Lang.\ Syst.{}"}
7847 MACRO {tcs} {"Theoretical Comput.\ Sci.{}"}
7848 %</bststd&bstshort>
7849 % \end{macrocode}
7850 % Action.
7851 % \begin{macrocode}
7852 %<*bststd>
7853
7854 READ
7855
7856 %</bststd>
7857 % \end{macrocode}
7858 %
7859 % \subsubsection{Sorted bibliographies}
7860 %
7861 % This code is only used for sorted bibliographies.
7862 % \changes{1.00}{2005/02/16}{Fix sorting of \BibTeX\ entries without
7863 % an author}%
7864 % \begin{macrocode}
7865 %<*bststd&!bstunsorted>
7866 FUNCTION {sortify}
7867 { purify$
7868 "l" change.case$
7869 }
7870
7871 % \end{macrocode}
7872 %
7873 % \begin{macrocode}
7874 INTEGERS { len }
7875
7876 % \end{macrocode}
7877 %
7878 % \begin{macrocode}
7879 FUNCTION {chop.word}
7880 { 's :=
7881 'len :=
7882 s #1 len substring$ =
7883 { s len #1 + global.max$ substring$ }
7884 's
7885 if$
7886 }
7887
7888 %</bststd&!bstunsorted>
7889 %<*bststd&bstalpha>
7890 % \end{macrocode}
7891 %
7892 % \begin{macrocode}
7893 INTEGERS { et.al.char.used }
7894
7895 % \end{macrocode}
7896 %
7897 % \begin{macrocode}
7898 FUNCTION {initialize.et.al.char.used}
7899 { #0 'et.al.char.used :=
7900 }
7901
7902 % \end{macrocode}
7903 %
7904 % \begin{macrocode}
7905 EXECUTE {initialize.et.al.char.used}
7906
7907 % \end{macrocode}
7908 %
7909 % \begin{macrocode}
7910 FUNCTION {format.lab.names}
7911 { 's :=
7912 s num.names$ 'numnames :=
7913 numnames #1 >
7914 { numnames #4 >
7915 { #3 'namesleft := }
7916 { numnames 'namesleft := }
7917 if$
7918 #1 'nameptr :=
7919 ""
7920 { namesleft #0 > }
7921 { nameptr numnames =
7922 { s nameptr "{ff }{vv }{ll}{ jj}" format.name$ "others" =
7923 { "{\etalchar{+}}" *
7924 #1 'et.al.char.used :=
7925 }
7926 { s nameptr "{v{}}{l{}}" format.name$ * }
7927 if$
7928 }
7929 { s nameptr "{v{}}{l{}}" format.name$ * }
7930 if$
7931 nameptr #1 + 'nameptr :=
7932 namesleft #1 - 'namesleft :=
7933 }
7934 while$
7935 numnames #4 >
7936 { "{\etalchar{+}}" *
7937 #1 'et.al.char.used :=
7938 }
7939 'skip$
7940 if$
7941 }
7942 { s #1 "{v{}}{l{}}" format.name$
7943 duplicate$ text.length$ #2 <
7944 { pop$ s #1 "{ll}" format.name$ #3 text.prefix$ }
7945 'skip$
7946 if$
7947 }
7948 if$
7949 }
7950
7951 % \end{macrocode}
7952 %
7953 % \begin{macrocode}
7954 FUNCTION {author.key.label}
7955 { author empty$
7956 { key empty$
7957 { cite$ #1 #3 substring$ }
7958 { key #3 text.prefix$ }
7959 if$
7960 }
7961 { author format.lab.names }
7962 if$
7963 }
7964
7965 % \end{macrocode}
7966 %
7967 % \begin{macrocode}
7968 FUNCTION {author.editor.key.label}
7969 { author empty$
7970 { editor empty$
7971 { key empty$
7972 { cite$ #1 #3 substring$ }
7973 { key #3 text.prefix$ }
7974 if$
7975 }
7976 { editor format.lab.names }
7977 if$
7978 }
7979 { author format.lab.names }
7980 if$
7981 }
7982
7983 % \end{macrocode}
7984 %
7985 % \begin{macrocode}
7986 FUNCTION {author.key.organization.label}
7987 { author empty$
7988 { key empty$
7989 { organization empty$
7990 { cite$ #1 #3 substring$ }
7991 { "The " #4 organization chop.word #3 text.prefix$ }
7992 if$
7993 }
7994 { key #3 text.prefix$ }
7995 if$
7996 }
7997 { author format.lab.names }
7998 if$
7999 }
8000
8001 % \end{macrocode}
8002 %
8003 % \begin{macrocode}
8004 FUNCTION {editor.key.organization.label}
8005 { editor empty$
8006 { key empty$
8007 { organization empty$
8008 { cite$ #1 #3 substring$ }
8009 { "The " #4 organization chop.word #3 text.prefix$ }
8010 if$
8011 }
8012 { key #3 text.prefix$ }
8013 if$
8014 }
8015 { editor format.lab.names }
8016 if$
8017 }
8018
8019 % \end{macrocode}
8020 %
8021 % \begin{macrocode}
8022 FUNCTION {calc.label}
8023 { type$ "book" =
8024 type$ "inbook" =
8025 or
8026 'author.editor.key.label
8027 { type$ "proceedings" =
8028 'editor.key.organization.label
8029 { type$ "manual" =
8030 'author.key.organization.label
8031 'author.key.label
8032 if$
8033 }
8034 if$
8035 }
8036 if$
8037 duplicate$
8038 year field.or.null purify$ #-1 #2 substring$
8039 *
8040 'label :=
8041 year field.or.null purify$ #-1 #4 substring$
8042 *
8043 sortify 'sort.label :=
8044 }
8045
8046 %</bststd&bstalpha>
8047 %<*bststd&!bstunsorted>
8048 % \end{macrocode}
8049 %
8050 % \begin{macrocode}
8051 FUNCTION {sort.format.names}
8052 { 's :=
8053 #1 'nameptr :=
8054 ""
8055 s num.names$ 'numnames :=
8056 numnames 'namesleft :=
8057 { namesleft #0 > }
8058 { nameptr #1 >
8059 { " " * }
8060 'skip$
8061 if$
8062 %</bststd&!bstunsorted>
8063 % \end{macrocode}
8064 % \changes{0.41}{2003/11/03}{Corrected \texttt{babunsrt.bst}}%
8065 % \begin{macrocode}
8066 %<*bststd&!bstshort&!bstunsorted>
8067 s nameptr "{ll{ }}{ ff{ }}{vv{ } }{ jj{ }}" format.name$ 't :=
8068 %</bststd&!bstshort&!bstunsorted>
8069 %<*bststd&bstshort&!bstunsorted>
8070 s nameptr "{ll{ }}{ f{ }}{vv{ } }{ jj{ }}" format.name$ 't :=
8071 %</bststd&bstshort&!bstunsorted>
8072 %<*bststd&!bstunsorted>
8073 nameptr numnames = t "others" = and
8074 { "et al" * }
8075 { t sortify * }
8076 if$
8077 nameptr #1 + 'nameptr :=
8078 namesleft #1 - 'namesleft :=
8079 }
8080 while$
8081 }
8082
8083 % \end{macrocode}
8084 %
8085 % \begin{macrocode}
8086 FUNCTION {sort.format.title}
8087 { 't :=
8088 "A " #2
8089 "An " #3
8090 "The " #4 t chop.word
8091 chop.word
8092 chop.word
8093 sortify
8094 #1 global.max$ substring$
8095 }
8096
8097 % \end{macrocode}
8098 %
8099 % \begin{macrocode}
8100 FUNCTION {author.sort}
8101 { author empty$
8102 { key empty$
8103 { "to sort, need author or key in " cite$ * warning$
8104 ""
8105 }
8106 { key sortify }
8107 if$
8108 }
8109 { author sort.format.names }
8110 if$
8111 }
8112
8113 % \end{macrocode}
8114 %
8115 % \begin{macrocode}
8116 FUNCTION {author.editor.sort}
8117 { author empty$
8118 { editor empty$
8119 { key empty$
8120 { "to sort, need author, editor, or key in " cite$ * warning$
8121 ""
8122 }
8123 { key sortify }
8124 if$
8125 }
8126 { editor sort.format.names }
8127 if$
8128 }
8129 { author sort.format.names }
8130 if$
8131 }
8132
8133 % \end{macrocode}
8134 %
8135 % \begin{macrocode}
8136 FUNCTION {author.organization.sort}
8137 { author empty$
8138 { organization empty$
8139 { key empty$
8140 { "to sort, need author, organization, or key in " cite$ * warning$
8141 ""
8142 }
8143 { key sortify }
8144 if$
8145 }
8146 { "The " #4 organization chop.word sortify }
8147 if$
8148 }
8149 { author sort.format.names }
8150 if$
8151 }
8152
8153 % \end{macrocode}
8154 %
8155 % \begin{macrocode}
8156 FUNCTION {editor.organization.sort}
8157 { editor empty$
8158 { organization empty$
8159 { key empty$
8160 { "to sort, need editor, organization, or key in " cite$ * warning$
8161 ""
8162 }
8163 { key sortify }
8164 if$
8165 }
8166 { "The " #4 organization chop.word sortify }
8167 if$
8168 }
8169 { editor sort.format.names }
8170 if$
8171 }
8172
8173 % \end{macrocode}
8174 %
8175 % \begin{macrocode}
8176 FUNCTION {presort}
8177 {
8178 %</bststd&!bstunsorted>
8179 %<*bststd&bstalpha>
8180 calc.label
8181 sort.label
8182 " "
8183 *
8184 %</bststd&bstalpha>
8185 %<*bststd&!bstunsorted>
8186 type$ "book" =
8187 type$ "inbook" =
8188 or
8189 'author.editor.sort
8190 { type$ "proceedings" =
8191 'editor.organization.sort
8192 { type$ "manual" =
8193 'author.organization.sort
8194 'author.sort
8195 if$
8196 }
8197 if$
8198 }
8199 if$
8200 %</bststd&!bstunsorted>
8201 %<bststd&bstalpha> *
8202 %<*bststd&!bstunsorted>
8203 " "
8204 *
8205 year field.or.null sortify
8206 *
8207 " "
8208 *
8209 title field.or.null
8210 sort.format.title
8211 *
8212 #1 entry.max$ substring$
8213 'sort.key$ :=
8214 }
8215
8216 % \end{macrocode}
8217 %
8218 % \begin{macrocode}
8219 ITERATE {presort}
8220
8221 % \end{macrocode}
8222 %
8223 % \begin{macrocode}
8224 SORT
8225
8226 %</bststd&!bstunsorted>
8227 %<*bststd&!bstalpha>
8228 % \end{macrocode}
8229 %
8230 % \begin{macrocode}
8231 STRINGS { longest.label }
8232
8233 % \end{macrocode}
8234 %
8235 % \begin{macrocode}
8236 INTEGERS { number.label longest.label.width }
8237
8238 % \end{macrocode}
8239 %
8240 % \begin{macrocode}
8241 FUNCTION {initialize.longest.label}
8242 { "" 'longest.label :=
8243 #1 'number.label :=
8244 #0 'longest.label.width :=
8245 }
8246
8247 % \end{macrocode}
8248 %
8249 % \begin{macrocode}
8250 FUNCTION {longest.label.pass}
8251 { number.label int.to.str$ 'label :=
8252 number.label #1 + 'number.label :=
8253 label width$ longest.label.width >
8254 { label 'longest.label :=
8255 label width$ 'longest.label.width :=
8256 }
8257 'skip$
8258 if$
8259 }
8260 %</bststd&!bstalpha>
8261 %<*bststd&bstalpha>
8262 % \end{macrocode}
8263 %
8264 % \begin{macrocode}
8265 STRINGS { longest.label last.sort.label next.extra }
8266
8267 % \end{macrocode}
8268 %
8269 % \begin{macrocode}
8270 INTEGERS { longest.label.width last.extra.num }
8271
8272 % \end{macrocode}
8273 %
8274 % \begin{macrocode}
8275 FUNCTION {initialize.longest.label}
8276 { "" 'longest.label :=
8277 #0 int.to.chr$ 'last.sort.label :=
8278 "" 'next.extra :=
8279 #0 'longest.label.width :=
8280 #0 'last.extra.num :=
8281 }
8282
8283 % \end{macrocode}
8284 %
8285 % \begin{macrocode}
8286 FUNCTION {forward.pass}
8287 { last.sort.label sort.label =
8288 { last.extra.num #1 + 'last.extra.num :=
8289 last.extra.num int.to.chr$ 'extra.label :=
8290 }
8291 { "a" chr.to.int$ 'last.extra.num :=
8292 "" 'extra.label :=
8293 sort.label 'last.sort.label :=
8294 }
8295 if$
8296 }
8297
8298 % \end{macrocode}
8299 %
8300 % \begin{macrocode}
8301 FUNCTION {reverse.pass}
8302 { next.extra "b" =
8303 { "a" 'extra.label := }
8304 'skip$
8305 if$
8306 label extra.label * 'label :=
8307 label width$ longest.label.width >
8308 { label 'longest.label :=
8309 label width$ 'longest.label.width :=
8310 }
8311 'skip$
8312 if$
8313 extra.label 'next.extra :=
8314 }
8315 %</bststd&bstalpha>
8316 % \end{macrocode}
8317 %
8318 % \subsubsection{Generic code}
8319 %
8320 % \begin{macrocode}
8321 %<*bststd>
8322
8323 EXECUTE {initialize.longest.label}
8324
8325 %</bststd>
8326 %<bststd&!bstalpha>ITERATE {longest.label.pass}
8327 %<bststd&bstalpha>ITERATE {forward.pass}
8328 %<bststd&bstalpha>REVERSE {reverse.pass}
8329 %<*bststd>
8330
8331 % \end{macrocode}
8332 %
8333 % \begin{macrocode}
8334 FUNCTION {begin.bib}
8335 {
8336 %</bststd>
8337 %<*bststd&bstalpha>
8338 et.al.char.used
8339 { "\newcommand{\etalchar}[1]{$^{#1}$}" write$ newline$ }
8340 'skip$
8341 if$
8342 %</bststd&bstalpha>
8343 %<*bststd>
8344 preamble$ empty$
8345 'skip$
8346 { preamble$ write$ newline$ }
8347 if$
8348 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
8349 " \providebibliographyfont{name}{}%" write$ newline$
8350 " \providebibliographyfont{lastname}{}%" write$ newline$
8351 " \providebibliographyfont{title}{\emph}%" write$ newline$
8352 " \providebibliographyfont{jtitle}{\btxtitlefont}%" write$ newline$
8353 " \providebibliographyfont{etal}{\emph}%" write$ newline$
8354 " \providebibliographyfont{journal}{}%" write$ newline$
8355 " \providebibliographyfont{volume}{}%" write$ newline$
8356 " \providebibliographyfont{ISBN}{\MakeUppercase}%" write$ newline$
8357 " \providebibliographyfont{ISSN}{\MakeUppercase}%" write$ newline$
8358 " \providebibliographyfont{url}{\url}%" write$ newline$
8359 " \providebibliographyfont{numeral}{}%" write$ newline$
8360 " \expandafter\btxselectlanguage\expandafter {\btxfallbacklanguage}"
8361 write$ newline$
8362 }
8363
8364 % \end{macrocode}
8365 %
8366 % \begin{macrocode}
8367 EXECUTE {begin.bib}
8368
8369 % \end{macrocode}
8370 %
8371 % \begin{macrocode}
8372 EXECUTE {init.state.consts}
8373
8374 % \end{macrocode}
8375 %
8376 % \begin{macrocode}
8377 ITERATE {call.type$}
8378
8379 % \end{macrocode}
8380 %
8381 % \begin{macrocode}
8382 FUNCTION {end.bib}
8383 { newline$
8384 "\end{thebibliography}" write$ newline$
8385 }
8386
8387 % \end{macrocode}
8388 %
8389 % \begin{macrocode}
8390 EXECUTE {end.bib}
8391 %</bststd>
8392 % \end{macrocode}
8393 %
8394 %
8395 % \subsection{AMS styles}
8396 %
8397 % The following \BibTeX\ styles are derived from the AMS \BibTeX-style-files
8398 % by the American Mathematical Society.
8399 % For example, see `amsplain.bst' for more documentation about the
8400 % original.
8401 % \begin{macrocode}
8402 %<*bstams>
8403 ENTRY
8404 { address
8405 annote
8406 annotelanguage
8407 author
8408 booktitle
8409 chapter
8410 edition
8411 editor
8412 howpublished
8413 institution
8414 isbn
8415 issn
8416 journal
8417 key
8418 language
8419 month
8420 mrnumber
8421 note
8422 number
8423 organization
8424 pages
8425 publisher
8426 school
8427 series
8428 title
8429 type
8430 url
8431 urldate
8432 volume
8433 year
8434 }
8435 {}
8436 { label bysame }
8437
8438
8439 INTEGERS { output.state before.all mid.sentence }
8440
8441 FUNCTION {init.state.consts}
8442 { #0 'before.all :=
8443 #1 'mid.sentence :=
8444 }
8445
8446 STRINGS { s t language.state change.temp}
8447
8448 FUNCTION {shows}
8449 { duplicate$ ":::: `" swap$ * "'" * top$
8450 }
8451
8452 FUNCTION {showstack}
8453 {"STACK================================================================"
8454 top$
8455 stack$
8456 "ENDSTACK============================================================="
8457 top$
8458 }
8459
8460 FUNCTION {not}
8461 { { #0 }
8462 { #1 }
8463 if$
8464 }
8465
8466 FUNCTION {and}
8467 { 'skip$
8468 { pop$ #0 }
8469 if$
8470 }
8471
8472 FUNCTION {or}
8473 { { pop$ #1 }
8474 'skip$
8475 if$
8476 }
8477
8478 FUNCTION {language.change.case}
8479 {
8480 'change.temp :=
8481 't :=
8482 "\btxifchangecase {"
8483 t change.temp change.case$ *
8484 "}{" *
8485 t *
8486 "}" *
8487 }
8488
8489 FUNCTION {field.or.null}
8490 { duplicate$ empty$
8491 { pop$ "" }
8492 'skip$
8493 if$
8494 }
8495
8496 % \end{macrocode}
8497 % \changes{1.00}{2005/02/16}{Remove \texttt{emphasize} and
8498 % \texttt{smallcaps} from \BibTeX\ styles}%
8499 % \begin{macrocode}
8500 FUNCTION {namefont}
8501 { duplicate$ empty$
8502 { pop$ "" }
8503 { "\btxnamefont {" swap$ * "}" * }
8504 if$
8505 }
8506
8507 % \end{macrocode}
8508 % \changes{1.12}{2005/06/19}{Add extra formatting of lastnames to
8509 % \BibTeX\ styles}%
8510 % \begin{macrocode}
8511 FUNCTION {lastnamefont}
8512 { duplicate$ empty$
8513 { pop$ "" }
8514 { "\btxlastnamefont {" swap$ * "}" * }
8515 if$
8516 }
8517
8518 FUNCTION {titlefont}
8519 { duplicate$ empty$
8520 { pop$ "" }
8521 { "\btxtitlefont {" swap$ * "}" * }
8522 if$
8523 }
8524
8525 FUNCTION {jtitlefont}
8526 { duplicate$ empty$
8527 { pop$ "" }
8528 { "\btxjtitlefont {" swap$ * "}" * }
8529 if$
8530 }
8531
8532 FUNCTION {journalfont}
8533 { duplicate$ empty$
8534 { pop$ "" }
8535 { "\btxjournalfont {" swap$ * "}" * }
8536 if$
8537 }
8538
8539 FUNCTION {publisherfont}
8540 { duplicate$ empty$
8541 { pop$ "" }
8542 { "\btxpublisherfont {" swap$ * "}" * }
8543 if$
8544 }
8545
8546 FUNCTION {volumefont}
8547 { duplicate$ empty$
8548 { pop$ "" }
8549 { "\btxvolumefont {" swap$ * "}" * }
8550 if$
8551 }
8552
8553 FUNCTION {etalfont}
8554 { duplicate$ empty$
8555 { pop$ "" }
8556 { "\btxetalfont {" swap$ * "}" * }
8557 if$
8558 }
8559
8560 % \end{macrocode}
8561 % \texttt{n.dashify} is used to make sure page ranges get the \TeX\ code
8562 % (two hyphens) for en-dashes.
8563 % \begin{macrocode}
8564 FUNCTION {n.dashify}
8565 { 't :=
8566 ""
8567 { t empty$ not }
8568 { t #1 #1 substring$ "-" =
8569 { t #1 #2 substring$ "--" = not
8570 { "--" *
8571 t #2 global.max$ substring$ 't :=
8572 }
8573 { { t #1 #1 substring$ "-" = }
8574 { "-" *
8575 t #2 global.max$ substring$ 't :=
8576 }
8577 while$
8578 }
8579 if$
8580 }
8581 { t #1 #1 substring$ *
8582 t #2 global.max$ substring$ 't :=
8583 }
8584 if$
8585 }
8586 while$
8587 }
8588
8589 % \end{macrocode}
8590 % |tie.or.space.connect| connects two items with a |~| if the
8591 % second item is less than 3 letters long, otherwise it just puts an
8592 % ordinary space.
8593 % \begin{macrocode}
8594 FUNCTION {tie.or.space.connect}
8595 { duplicate$ text.length$ #3 <
8596 { "~" }
8597 { "\ " }
8598 if$
8599 swap$ * *
8600 }
8601
8602 FUNCTION {add.space.if.necessary}
8603 { duplicate$ "" =
8604 'skip$
8605 { "\ " * }
8606 if$
8607 }
8608
8609 % \end{macrocode}
8610 % |either.or.check| gives a warning if two mutually exclusive fields
8611 % were used in the database.
8612 % \begin{macrocode}
8613 FUNCTION {either.or.check}
8614 { empty$
8615 'pop$
8616 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
8617 if$
8618 }
8619
8620 % \end{macrocode}
8621 % |output.nonnull| is called by output.
8622 % \begin{macrocode}
8623 FUNCTION {output.nonnull}
8624 % \end{macrocode}
8625 % remove the top item from the stack because it's in the way.
8626 % \begin{macrocode}
8627 { 's :=
8628 output.state mid.sentence =
8629 % \end{macrocode}
8630 % If we're in mid-sentence, add a comma to the new top item and write it
8631 % \begin{macrocode}
8632 { ", " * write$ }
8633 % \end{macrocode}
8634 % Otherwise, if we're at the beginning of a bibitem,
8635 % \begin{macrocode}
8636 { output.state before.all =
8637 % \end{macrocode}
8638 % just write out the top item from the stack;
8639 % \begin{macrocode}
8640 'write$
8641 % \end{macrocode}
8642 % and the last alternative is that we're at the end of the current
8643 % bibitem, so we add a period to the top stack item and write it out.
8644 % \begin{macrocode}
8645 { add.period$ " " * write$ }
8646 if$
8647 mid.sentence 'output.state :=
8648 }
8649 if$
8650 % \end{macrocode}
8651 % Put the top item back on the stack that we removed earlier.
8652 % \begin{macrocode}
8653 s
8654 }
8655
8656 % \end{macrocode}
8657 % Output checks to see if the stack top is empty; if not, it
8658 % calls output.nonnull to write it out.
8659 % \begin{macrocode}
8660 FUNCTION {output}
8661 { duplicate$ empty$
8662 'pop$
8663 'output.nonnull
8664 if$
8665 }
8666
8667 % \end{macrocode}
8668 % Standard warning message for a missing or empty field. For the user
8669 % we call any such field `missing' without respect to the distinction
8670 % made by Bib\TeX\ between missing and empty.
8671 % \begin{macrocode}
8672 FUNCTION {missing.warning}
8673 { "missing " swap$ * " in " * cite$ * warning$ }
8674
8675 % \end{macrocode}
8676 % |output.check| is like output except that it gives a warning on-screen
8677 % if the given field in the database entry is empty. t is the field
8678 % name.
8679 % \begin{macrocode}
8680 FUNCTION {output.check}
8681 { 't :=
8682 duplicate$ empty$
8683 { pop$ t missing.warning }
8684 'output.nonnull
8685 if$
8686 }
8687
8688 FUNCTION {output.bibitem}
8689 { newline$
8690 % \end{macrocode}
8691 % \changes{0.40}{2003/09/26}{Switch to a fall-back language when
8692 % \texttt{language} field is missing}%
8693 % If no language is given, fall back to the language that has been
8694 % active at \cs{begin\{document\}}.
8695 % For \BibTeX, this language gets the name \texttt{nolanguage}.
8696 % \begin{macrocode}
8697 language empty$
8698 { "empty language in " cite$ * warning$
8699 language.state "nolanguage" =
8700 'skip$
8701 {
8702 "\expandafter\btxselectlanguage\expandafter {"
8703 "\btxfallbacklanguage}" * write$
8704 newline$
8705 }
8706 if$
8707 "nolanguage" 'language.state :=
8708 }
8709 { language.state language =
8710 'skip$
8711 { "\btxselectlanguage {" language * "}" * write$
8712 newline$
8713 }
8714 if$
8715 language 'language.state :=
8716 }
8717 if$
8718 "\bibitem {" cite$ * "}" * write$
8719 newline$
8720 % \end{macrocode}
8721 % This empty string is the first thing that will be written
8722 % the next time \verb|write$| is called. Done this way because each
8723 % item is saved on the stack until we find out what punctuation
8724 % should be added after it. Therefore we need an empty first item.
8725 % \begin{macrocode}
8726 ""
8727 before.all 'output.state :=
8728 }
8729
8730 FUNCTION {output.nonempty.mrnumber}
8731 { duplicate$ missing$
8732 { pop$ "" }
8733 'skip$
8734 if$
8735 duplicate$ empty$
8736 'pop$
8737 { " \MR{" swap$ * "}" * write$ }
8738 if$
8739 }
8740
8741 FUNCTION {fin.entry}
8742 { add.period$
8743 write$
8744 mrnumber output.nonempty.mrnumber
8745 newline$
8746 }
8747
8748 % \end{macrocode}
8749 % Removed |new.block|, |new.block.checka|, |new.block.checkb|,
8750 % |new.sentence|, |new.sentence.checka|, and |new.sentence.checkb|
8751 % functions here, since they don't seem to be needed in the AMS style.
8752 % Also moved some real basic functions like `and' and 'or' earlier in
8753 % the file.
8754 % \begin{macrocode}
8755 INTEGERS { nameptr namesleft numnames }
8756
8757 % \end{macrocode}
8758 % The extra section to write out a language field was added
8759 % for babamspl.bst. Not present in babplain.bst.
8760 % \begin{macrocode}
8761 FUNCTION {format.language}
8762 { language empty$
8763 { "" }
8764 { "\btxprintamslanguage{\btxlanguagename {" language * "}}" * }
8765 if$
8766 }
8767
8768 % \end{macrocode}
8769 % This version of format.names puts names in the format
8770 % ``First von Last, Jr.''
8771 % (i.\,e., first name first, no abbreviating to initials).
8772 % \begin{macrocode}
8773 FUNCTION {format.names}
8774 { 's :=
8775 #1 'nameptr :=
8776 s num.names$ 'numnames :=
8777 numnames 'namesleft :=
8778 { namesleft #0 > }
8779 {
8780 s nameptr "{ff{\btxfnamespacelong }~}{vv~}" format.name$
8781 s nameptr "{ll}" format.name$ lastnamefont *
8782 s nameptr "{, jj}" format.name$ * 't :=
8783 nameptr #1 >
8784 { namesleft #1 >
8785 { ", " * t namefont * }
8786 { numnames #2 >
8787 { "\btxandcomma {}" * }
8788 'skip$
8789 if$
8790 s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ "others" =
8791 { " " * "\btxetalshort {.}" etalfont * }
8792 { " \btxandlong {} " * t namefont * }
8793 if$
8794 }
8795 if$
8796 }
8797 {
8798 s nameptr "{ff{\btxfnamespacelong }~}{vv~}" format.name$
8799 s nameptr "{ll}" format.name$ lastnamefont *
8800 s nameptr "{, jj}" format.name$ * namefont
8801 }
8802 if$
8803 nameptr #1 + 'nameptr :=
8804 namesleft #1 - 'namesleft :=
8805 }
8806 while$
8807 }
8808
8809 FUNCTION {format.authors}
8810 { author empty$
8811 { "" }
8812 { bysame "\bysame" =
8813 {"\bysame"}
8814 { author format.names }
8815 if$
8816 }
8817 if$
8818 }
8819
8820 FUNCTION {format.editors}
8821 { editor empty$
8822 { "" }
8823 { editor format.names
8824 editor num.names$ #1 >
8825 { "\ (\btxeditorsshort {.})" * }
8826 { "\ (\btxeditorshort {.})" * }
8827 if$
8828 }
8829 if$
8830 }
8831
8832 FUNCTION {format.nonauthor.editors}
8833 { editor empty$
8834 { "" }
8835 { editor format.names
8836 editor num.names$ #1 >
8837 { ", \btxeditorsshort {.}" * }
8838 { ", \btxeditorshort {.}" * }
8839 if$
8840 }
8841 if$
8842 }
8843
8844 FUNCTION {format.title}
8845 { title empty$
8846 { "" }
8847 { title "t" language.change.case titlefont }
8848 if$
8849 }
8850
8851 FUNCTION {format.jtitle}
8852 { title empty$
8853 { "" }
8854 { title "t" language.change.case jtitlefont }
8855 if$
8856 }
8857
8858 FUNCTION {format.journal.vol.year}
8859 { journal empty$
8860 { "journal name" missing.warning ""}
8861 { journal journalfont }
8862 if$
8863 volume empty$
8864 'skip$
8865 { " " * volume volumefont * }
8866 if$
8867 year empty$
8868 { "year" missing.warning }
8869 { " (" * year * ")" * }
8870 if$
8871 }
8872
8873 % \end{macrocode}
8874 % For formatting the issue number for a journal article.
8875 % \begin{macrocode}
8876 FUNCTION {format.number}
8877 { number empty$
8878 { "" }
8879 { "\btxnumbershort {.}~" number * }
8880 if$
8881 }
8882
8883 % \end{macrocode}
8884 % For formatting miscellaneous dates
8885 % \begin{macrocode}
8886 FUNCTION {format.date}
8887 { year empty$
8888 { month empty$
8889 { "" }
8890 { "there's a month but no year in " cite$ * warning$
8891 month
8892 }
8893 if$
8894 }
8895 { month empty$
8896 'year
8897 { "\btxprintmonthyear{.}{"
8898 month * "}{" * year * "}{long}" *
8899 }
8900 if$
8901 }
8902 if$
8903 }
8904
8905 % \end{macrocode}
8906 % The volume, series and number information is sort of tricky.
8907 % This code handles it as follows:
8908 % If the series is present, and the volume, but not the number,
8909 % then we do "\emph{Book title}, Series Name, vol. 000"
8910 % If the series is present, and the number, but not the volume,
8911 % then we do "\emph{Book title}, Series Name, no. 000"
8912 % If the series is present, and both number and volume,
8913 % then we do "\emph{Book title}, vol. XX, Series Name, no. 000"
8914 % Finally, if the series is absent,
8915 % then we do "\emph{Book title}, vol. XX"
8916 % or "\emph{Book title}, no. 000"
8917 % and if both volume and number are present, give a warning message.
8918 % \begin{macrocode}
8919 FUNCTION {format.bookvolume.series.number}
8920 { volume empty$
8921 { "" % Push the empty string as a placeholder in case everything else
8922 % is empty too.
8923 series empty$
8924 'skip$
8925 { pop$ series } % if series is not empty put in stack
8926 if$
8927 number empty$
8928 'skip$
8929 { duplicate$ empty$ % if no preceding material,
8930 'skip$ % do nothing, otherwise
8931 { ", " * } % add a comma and space to separate.
8932 if$
8933 "\btxnumbershort {.}" number tie.or.space.connect * % add the number information
8934 }
8935 if$
8936 }
8937 % \end{macrocode}
8938 % If the volume is NOT EMPTY:
8939 % \begin{macrocode}
8940 { "\btxvolumeshort {.}" volume tie.or.space.connect % vol. XX
8941 number empty$
8942 { series empty$
8943 'skip$
8944 { series ", " * swap$ *} % Series Name, vol. XX
8945 if$
8946 }
8947 { series empty$
8948 { "can't use both volume and number if series info is missing"
8949 warning$
8950 "in BibTeX entry type `" type$ * "'" * top$
8951 }
8952 { ", " * series * ", \btxnumbershort {.}" * number tie.or.space.connect }
8953 if$
8954 }
8955 if$
8956 }
8957 if$
8958
8959 } % end of format.bookvolume.series.number
8960
8961 % \end{macrocode}
8962 % |format.inproc.title.where.editors| is used by inproceedings entry types
8963 % No case changing or emphasizing for the title. We want initial
8964 % caps, roman.
8965 % We add parentheses around the address (place where conference
8966 % was held).
8967 % Likewise we add parentheses around the editors' names.
8968 % \begin{macrocode}
8969 FUNCTION {format.inproc.title.address.editors}
8970 { booktitle empty$
8971 { "" }
8972 { booktitle
8973 address empty$
8974 'skip$
8975 { add.space.if.necessary "(" * address * ")" * }
8976 if$
8977 editor empty$
8978 'skip$
8979 { add.space.if.necessary "(" * format.nonauthor.editors * ")" * }
8980 if$
8981 }
8982 if$
8983 }
8984
8985 % \end{macrocode}
8986 % |format.incoll.title.editors| is similar to |format.inproc...| but
8987 % omits the address. For collections that are not proceedings volumes.
8988 % \begin{macrocode}
8989 FUNCTION {format.incoll.title.editors}
8990 { booktitle empty$
8991 { "" }
8992 { editor empty$
8993 { booktitle }
8994 { booktitle
8995 add.space.if.necessary "(" * format.nonauthor.editors * ")" *
8996 }
8997 if$
8998 }
8999 if$
9000 }
9001
9002 FUNCTION {format.edition}
9003 { edition empty$
9004 { "" }
9005 {
9006 output.state mid.sentence =
9007 { edition "l" change.case$ }
9008 { edition "t" change.case$ }
9009 if$
9010 "\btxeditionnumshort {" swap$ *
9011 "}{.}" *
9012 }
9013 if$
9014 }
9015
9016 FUNCTION {format.isbn}
9017 { isbn empty$
9018 { "" }
9019 { "\mbox{\btxISBN~\btxISBNfont {" isbn * "}}" * }
9020 if$
9021 }
9022
9023 FUNCTION {format.issn}
9024 { issn empty$
9025 { "" }
9026 { "\mbox{\btxISSN~\btxISSNfont {" issn * "}}" * }
9027 if$
9028 }
9029
9030 FUNCTION {format.url}
9031 { url empty$
9032 { "" }
9033 {
9034 urldate empty$
9035 { "{\latintext \btxurlfont{" url * "}}" * }
9036 {
9037 "{\latintext \btxurlfont{" url * "}}\empty " *
9038 "\btxurldatecomment {\btxkeywordlanguage {\btxurldatefont{" *
9039 urldate * "}}}" *
9040 }
9041 if$
9042 }
9043 if$
9044 }
9045 % \end{macrocode}
9046 % Format annotations:
9047 % \begin{macrocode}
9048 FUNCTION {write.annote}
9049 { annote empty$
9050 'skip$
9051 {
9052 annotelanguage empty$
9053 { "\btxkeywordlanguage {" }
9054 { "{\selectlanguage {" annotelanguage * "}" * }
9055 if$
9056 "\btxannotation {" * annote * "}}" *
9057 write$ newline$
9058 }
9059 if$
9060 }
9061
9062 INTEGERS { multiresult }
9063
9064 FUNCTION {multi.page.check}
9065 { 't :=
9066 #0 'multiresult :=
9067 { multiresult not
9068 t empty$ not
9069 and
9070 }
9071 { t #1 #1 substring$
9072 duplicate$ "-" =
9073 swap$ duplicate$ "," =
9074 swap$ "+" =
9075 or or
9076 { #1 'multiresult := }
9077 { t #2 global.max$ substring$ 't := }
9078 if$
9079 }
9080 while$
9081 multiresult
9082 }
9083
9084 FUNCTION {format.pages}
9085 { pages empty$
9086 { "" }
9087 { pages n.dashify }
9088 if$
9089 }
9090
9091 FUNCTION {format.book.pages}
9092 { pages empty$
9093 { "" }
9094 { pages multi.page.check
9095 { "\btxpagesshort {.}~" pages n.dashify * }
9096 { "\btxpageshort {.}~" pages * }
9097 if$
9098 }
9099 if$
9100 }
9101
9102 FUNCTION {format.chapter.pages}
9103 { chapter empty$
9104 'format.book.pages
9105 { type empty$
9106 { "\btxchaptershort {.}~" }
9107 { type "l" language.change.case " " * }
9108 if$
9109 chapter *
9110 pages empty$
9111 'skip$
9112 { ", " * format.book.pages * }
9113 if$
9114 }
9115 if$
9116 }
9117
9118 FUNCTION {empty.misc.check}
9119 { author empty$ title empty$ howpublished empty$
9120 month empty$ year empty$ note empty$
9121 and and and and and
9122 key empty$ not and
9123 { "all relevant fields are empty in " cite$ * warning$ }
9124 'skip$
9125 if$
9126 }
9127
9128 FUNCTION {format.thesis.type}
9129 { type empty$
9130 'skip$
9131 { pop$
9132 type "t" language.change.case
9133 }
9134 if$
9135 }
9136
9137 FUNCTION {format.tr.number}
9138 { type empty$
9139 { "\Btxtechrepshort {.}" }
9140 'type
9141 if$
9142 number empty$
9143 { "t" language.change.case }
9144 { number tie.or.space.connect }
9145 if$
9146 }
9147
9148 % \end{macrocode}
9149 % The |format.crossref| functions haven't been paid much attention
9150 % at the present time (June 1990) and could probably use some
9151 % work. MJD
9152 % \begin{macrocode}
9153 FUNCTION {format.article.crossref}
9154 { key empty$
9155 { journal empty$
9156 { "need key or journal for " cite$ * " to crossref " * crossref *
9157 warning$
9158 ""
9159 }
9160 { "\btxinshort {} " journal journalfont * }
9161 if$
9162 }
9163 { "\btxinshort {} " key * }
9164 if$
9165 " \cite{" * crossref * "}" *
9166 }
9167
9168 FUNCTION {format.crossref.editor}
9169 { editor #1 "{vv~}{ll}" format.name$
9170 editor num.names$ duplicate$
9171 #2 >
9172 { pop$ " \btxetalshort {.}" * }
9173 { #2 <
9174 'skip$
9175 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
9176 { " \btxetalshort {.}" * }
9177 { " \btxandlong {} " * editor #2 "{vv~}{ll}" format.name$ * }
9178 if$
9179 }
9180 if$
9181 }
9182 if$
9183 }
9184
9185 FUNCTION {format.book.crossref}
9186 { volume empty$
9187 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
9188 "\btxinserieslong {} "
9189 }
9190 { "\btxvolumeshort {.}" volume tie.or.space.connect
9191 " \btxofserieslong {} " *
9192 }
9193 if$
9194 editor empty$
9195 editor field.or.null author field.or.null =
9196 or
9197 { key empty$
9198 { series empty$
9199 { "need editor, key, or series for " cite$ * " to crossref " *
9200 crossref * warning$
9201 "" *
9202 }
9203 { series * }
9204 if$
9205 }
9206 { key * }
9207 if$
9208 }
9209 { format.crossref.editor * }
9210 if$
9211 " \cite{" * crossref * "}" *
9212 }
9213
9214 FUNCTION {format.incoll.inproc.crossref}
9215 { editor empty$
9216 editor field.or.null author field.or.null =
9217 or
9218 { key empty$
9219 { booktitle empty$
9220 { "need editor, key, or booktitle for " cite$ * " to crossref " *
9221 crossref * warning$
9222 ""
9223 }
9224 { "\btxinlong {} " * booktitle titlefont * }
9225 if$
9226 }
9227 { "\btxinlong {} " key * }
9228 if$
9229 }
9230 { "\btxinlong {} " format.crossref.editor * }
9231 if$
9232 " \cite{" * crossref * "}" *
9233 }
9234
9235 % \end{macrocode}
9236 % The main functions for each entry type.
9237 %
9238 % journal, vol and year are formatted together because they are
9239 % not separated by commas.
9240 % \begin{macrocode}
9241 FUNCTION {article}
9242 { output.bibitem
9243 format.authors "author" output.check
9244 format.jtitle "title" output.check
9245 crossref missing$
9246 { format.journal.vol.year output
9247 format.number output
9248 format.pages "pages" output.check
9249 }
9250 { format.article.crossref output.nonnull
9251 format.pages "pages" output.check
9252 }
9253 if$
9254 format.issn output
9255 format.url output
9256 format.language *
9257 note output
9258 fin.entry
9259 write.annote
9260 }
9261
9262 FUNCTION {book}
9263 { output.bibitem
9264 author empty$
9265 { format.editors "author and editor" output.check }
9266 { format.authors output.nonnull
9267 crossref missing$
9268 { "author and editor" editor either.or.check }
9269 'skip$
9270 if$
9271 }
9272 if$
9273 format.title "title" output.check
9274 format.edition output
9275 crossref missing$
9276 { format.bookvolume.series.number output
9277 publisher "publisher" output.check publisherfont
9278 address output
9279 }
9280 { format.book.crossref output.nonnull
9281 }
9282 if$
9283 format.date "year" output.check
9284 format.isbn output
9285 format.url output
9286 format.language *
9287 note output
9288 fin.entry
9289 write.annote
9290 }
9291
9292 FUNCTION {booklet}
9293 { output.bibitem
9294 format.authors output
9295 format.title "title" output.check
9296 howpublished output
9297 address output
9298 format.date output
9299 format.url output
9300 note output
9301 fin.entry
9302 write.annote
9303 }
9304
9305 FUNCTION {inbook}
9306 { output.bibitem
9307 author empty$
9308 { format.editors "author and editor" output.check }
9309 { format.authors output.nonnull
9310 crossref missing$
9311 { "author and editor" editor either.or.check }
9312 'skip$
9313 if$
9314 }
9315 if$
9316 format.title "title" output.check
9317 format.edition output
9318 crossref missing$
9319 { format.bookvolume.series.number output
9320 format.chapter.pages "chapter and pages" output.check
9321 publisher "publisher" output.check publisherfont
9322 address output
9323 }
9324 { format.chapter.pages "chapter and pages" output.check
9325 format.book.crossref output.nonnull
9326 }
9327 if$
9328 format.date "year" output.check
9329 format.isbn output
9330 format.url output
9331 format.language *
9332 note output
9333 fin.entry
9334 write.annote
9335 }
9336
9337 FUNCTION {incollection}
9338 { output.bibitem
9339 format.authors "author" output.check
9340 format.title "title" output.check
9341 crossref missing$
9342 { format.incoll.title.editors "booktitle" output.check
9343 format.bookvolume.series.number output
9344 publisher "publisher" output.check publisherfont
9345 address output
9346 format.edition output
9347 format.date "year" output.check
9348 }
9349 { format.incoll.inproc.crossref output.nonnull
9350 }
9351 if$
9352 note output
9353 format.book.pages output
9354 format.isbn output
9355 format.url output
9356 format.language *
9357 fin.entry
9358 write.annote
9359 }
9360
9361 FUNCTION {inproceedings}
9362 { output.bibitem
9363 format.authors "author" output.check
9364 format.title "title" output.check
9365 crossref missing$
9366 { format.inproc.title.address.editors "booktitle" output.check
9367 format.bookvolume.series.number output
9368 organization output
9369 publisher publisherfont output
9370 format.date "year" output.check
9371 }
9372 { format.incoll.inproc.crossref output.nonnull
9373 }
9374 if$
9375 note output
9376 format.book.pages output
9377 format.isbn output
9378 format.url output
9379 format.language *
9380 fin.entry
9381 write.annote
9382 }
9383
9384 FUNCTION {conference} { inproceedings }
9385
9386 FUNCTION {manual}
9387 { output.bibitem
9388 author empty$
9389 { organization empty$
9390 'skip$
9391 { organization output.nonnull
9392 address output
9393 }
9394 if$
9395 }
9396 { format.authors output.nonnull }
9397 if$
9398 format.title "title" output.check
9399 author empty$
9400 { organization empty$
9401 { address output }
9402 'skip$
9403 if$
9404 }
9405 { organization output
9406 address output
9407 }
9408 if$
9409 format.edition output
9410 format.date output
9411 format.isbn output
9412 format.url output
9413 note output
9414 fin.entry
9415 write.annote
9416 }
9417
9418 FUNCTION {mastersthesis}
9419 { output.bibitem
9420 format.authors "author" output.check
9421 format.title "title" output.check
9422 "\btxmastthesis {}" format.thesis.type output.nonnull
9423 school "school" output.check
9424 address output
9425 format.date "year" output.check
9426 format.url output
9427 note output
9428 format.book.pages output
9429 fin.entry
9430 write.annote
9431 }
9432
9433 FUNCTION {misc}
9434 { output.bibitem
9435 format.authors output
9436 format.title output
9437 howpublished output
9438 format.date output
9439 format.isbn output
9440 format.issn output
9441 format.url output
9442 note output
9443 format.book.pages output
9444 fin.entry
9445 write.annote
9446 empty.misc.check
9447 }
9448
9449 FUNCTION {phdthesis}
9450 { output.bibitem
9451 format.authors "author" output.check
9452 format.title "title" output.check
9453 "\btxphdthesis {}" format.thesis.type output.nonnull
9454 school "school" output.check
9455 address output
9456 format.date "year" output.check
9457 format.isbn output
9458 format.url output
9459 note output
9460 format.book.pages output
9461 fin.entry
9462 write.annote
9463 }
9464
9465 FUNCTION {proceedings}
9466 { output.bibitem
9467 editor empty$
9468 { organization output }
9469 { format.editors output.nonnull }
9470 if$
9471 format.title "title" output.check
9472 format.bookvolume.series.number output
9473 address empty$
9474 { editor empty$
9475 'skip$
9476 { organization output }
9477 if$
9478 publisher publisherfont output
9479 format.date "year" output.check
9480 }
9481 { address output.nonnull
9482 editor empty$
9483 'skip$
9484 { organization output }
9485 if$
9486 publisher publisherfont output
9487 format.date "year" output.check
9488 }
9489 if$
9490 format.isbn output
9491 format.url output
9492 note output
9493 fin.entry
9494 write.annote
9495 }
9496
9497 FUNCTION {techreport}
9498 { output.bibitem
9499 format.authors "author" output.check
9500 format.title "title" output.check
9501 format.tr.number output.nonnull
9502 institution "institution" output.check
9503 address output
9504 format.date "year" output.check
9505 format.isbn output
9506 format.url output
9507 note output
9508 fin.entry
9509 write.annote
9510 }
9511
9512 FUNCTION {unpublished}
9513 { output.bibitem
9514 format.authors "author" output.check
9515 format.title "title" output.check
9516 format.url output
9517 note "note" output.check
9518 format.date output
9519 fin.entry
9520 write.annote
9521 }
9522
9523 FUNCTION {default.type} { misc }
9524
9525 MACRO {jan} {"1"}
9526 MACRO {feb} {"2"}
9527 MACRO {mar} {"3"}
9528 MACRO {apr} {"4"}
9529 MACRO {may} {"5"}
9530 MACRO {jun} {"6"}
9531 MACRO {jul} {"7"}
9532 MACRO {aug} {"8"}
9533 MACRO {sep} {"9"}
9534 MACRO {oct} {"10"}
9535 MACRO {nov} {"11"}
9536 MACRO {dec} {"12"}
9537
9538 READ
9539
9540 FUNCTION {sortify}
9541 { purify$
9542 "l" language.change.case
9543 }
9544
9545 INTEGERS { len }
9546
9547 FUNCTION {chop.word}
9548 { 's :=
9549 'len :=
9550 s #1 len substring$ =
9551 { s len #1 + global.max$ substring$ }
9552 's
9553 if$
9554 }
9555
9556 FUNCTION {sort.format.names}
9557 { 's :=
9558 #1 'nameptr :=
9559 ""
9560 s num.names$ 'numnames :=
9561 numnames 'namesleft :=
9562 { namesleft #0 > }
9563 { nameptr #1 >
9564 { " " * }
9565 'skip$
9566 if$
9567 s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
9568 nameptr numnames = t "others" = and
9569 { "et al" * }
9570 { t sortify * }
9571 if$
9572 nameptr #1 + 'nameptr :=
9573 namesleft #1 - 'namesleft :=
9574 }
9575 while$
9576 }
9577
9578 FUNCTION {sort.format.title}
9579 { 't :=
9580 "A " #2
9581 "An " #3
9582 "The " #4 t chop.word
9583 chop.word
9584 chop.word
9585 sortify
9586 #1 global.max$ substring$
9587 }
9588
9589 FUNCTION {author.sort}
9590 { author empty$
9591 { key empty$
9592 { "to sort, need author or key in " cite$ * warning$
9593 ""
9594 }
9595 { key sortify }
9596 if$
9597 }
9598 { author sort.format.names }
9599 if$
9600 }
9601
9602 FUNCTION {author.editor.sort}
9603 { author empty$
9604 { editor empty$
9605 { key empty$
9606 { "to sort, need author, editor, or key in " cite$ * warning$
9607 ""
9608 }
9609 { key sortify }
9610 if$
9611 }
9612 { editor sort.format.names }
9613 if$
9614 }
9615 { author sort.format.names }
9616 if$
9617 }
9618
9619 FUNCTION {author.organization.sort}
9620 { author empty$
9621 { organization empty$
9622 { key empty$
9623 { "to sort, need author, organization, or key in " cite$ * warning$
9624 ""
9625 }
9626 { key sortify }
9627 if$
9628 }
9629 { "The " #4 organization chop.word sortify }
9630 if$
9631 }
9632 { author sort.format.names }
9633 if$
9634 }
9635
9636 FUNCTION {editor.organization.sort}
9637 { editor empty$
9638 { organization empty$
9639 { key empty$
9640 { "to sort, need editor, organization, or key in " cite$ * warning$
9641 ""
9642 }
9643 { key sortify }
9644 if$
9645 }
9646 { "The " #4 organization chop.word sortify }
9647 if$
9648 }
9649 { editor sort.format.names }
9650 if$
9651 }
9652
9653 FUNCTION {presort}
9654 { type$ "book" =
9655 type$ "inbook" =
9656 or
9657 'author.editor.sort
9658 { type$ "proceedings" =
9659 'editor.organization.sort
9660 { type$ "manual" =
9661 'author.organization.sort
9662 'author.sort
9663 if$
9664 }
9665 if$
9666 }
9667 if$
9668 " "
9669 *
9670 year field.or.null sortify
9671 *
9672 " "
9673 *
9674 title field.or.null
9675 sort.format.title
9676 *
9677 #1 entry.max$ substring$
9678 'sort.key$ :=
9679 }
9680
9681 ITERATE {presort}
9682
9683 SORT
9684
9685 STRINGS { longest.label prev.author this.author }
9686
9687 INTEGERS { number.label longest.label.width }
9688
9689 FUNCTION {initialize.longest.label}
9690 { "" 'longest.label :=
9691 #1 'number.label :=
9692 #0 'longest.label.width :=
9693 "abcxyz" 'prev.author :=
9694 "" 'this.author :=
9695 }
9696
9697 FUNCTION {longest.label.pass}
9698 { number.label int.to.str$ 'label :=
9699 number.label #1 + 'number.label :=
9700 label width$ longest.label.width >
9701 { label 'longest.label :=
9702 label width$ 'longest.label.width :=
9703 }
9704 'skip$
9705 if$
9706 author empty$
9707 { editor empty$
9708 { "" }
9709 'editor
9710 if$
9711 }
9712 'author
9713 if$
9714 'this.author :=
9715 this.author prev.author =
9716 { "\bysame" 'bysame := }
9717 { "" 'bysame :=
9718 this.author "" =
9719 { "abcxyz" }
9720 'this.author
9721 if$
9722 'prev.author :=
9723 }
9724 if$
9725 }
9726
9727 EXECUTE {initialize.longest.label}
9728
9729 ITERATE {longest.label.pass}
9730
9731 FUNCTION {write.lines}
9732 { { duplicate$ "." = NOT }
9733 { write$ newline$ }
9734 while$
9735 pop$
9736 }
9737
9738 FUNCTION {begin.bib}
9739 { preamble$ empty$
9740 'skip$
9741 { preamble$ write$ newline$ }
9742 if$
9743 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
9744 " \providecommand{\bysame}{\leavevmode\hbox to3em{\hrulefill}\thinspace}"
9745 write$ newline$
9746 " \providecommand{\MR}{\relax\ifhmode\unskip\space\fi MR }"
9747 write$ newline$
9748 " % \MRhref is called by the amsart/book/proc definition of \MR."
9749 write$ newline$
9750 " \providecommand{\MRhref}[2]{%" write$ newline$
9751 " \href{http://www.ams.org/mathscinet-getitem?mr=#1}{#2}"
9752 write$ newline$
9753 " }" write$ newline$
9754 " \providecommand{\href}[2]{#2}" write$ newline$
9755 " \providebibliographyfont{name}{}%" write$ newline$
9756 " \providebibliographyfont{lastname}{}%" write$ newline$
9757 " \providebibliographyfont{title}{\emph}%" write$ newline$
9758 " \providebibliographyfont{jtitle}{\btxtitlefont}%" write$ newline$
9759 " \providebibliographyfont{etal}{}%" write$ newline$
9760 " \providebibliographyfont{journal}{}%" write$ newline$
9761 " \providebibliographyfont{volume}{\textbf}%" write$ newline$
9762 " \providebibliographyfont{ISBN}{\MakeUppercase}%" write$ newline$
9763 " \providebibliographyfont{ISSN}{\MakeUppercase}%" write$ newline$
9764 " \providebibliographyfont{url}{\url}%" write$ newline$
9765 " \providebibliographyfont{numeral}{}%" write$ newline$
9766 " \providecommand\btxprintamslanguage[1]{\ (#1)}" write$ newline$
9767 " \expandafter\btxselectlanguage\expandafter {\btxfallbacklanguage}"
9768 write$ newline$
9769 }
9770
9771 EXECUTE {begin.bib}
9772
9773 EXECUTE {init.state.consts}
9774
9775 ITERATE {call.type$}
9776
9777 FUNCTION {end.bib}
9778 { newline$
9779 "\end{thebibliography}" write$ newline$
9780 }
9781
9782 EXECUTE {end.bib}
9783 %</bstams>
9784 % \end{macrocode}
9785 %
9786 % \Finale
9787