summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/stellenbosch/tex/usbib.sty
blob: ab02f76ec49e8c0482f6c232c35dc206fdf67c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{usbib}[2009/03/07 1.0 (DNJ Els)]
\RequirePackageWithOptions{natbib}

\@ifundefined{AorE}{%
    \edef\AFRstr{\string afrikaans}%
    \DeclareRobustCommand{\AorE}[2]{%
        \ifx\AFRstr\languagename #1\else #2\fi}}{}

\newcommand*\InBibliographyTemp{thebibliography}%
\newcommand*\InBibliography{%
    \ifx\InBibliographyTemp\@currenvir\relax
        \expandafter\@firstoftwo
    \else
        \expandafter\@secondoftwo
    \fi}

\newcommand\BIBand{\AorE{en}{and}}

\@namedef{bibstyle@usmeg-a}{%
    \bibpunct{(}{)}{;}{a}{,}{,}%
    \gdef\BIBand{\InBibliography%
        {\AorE{en}{and}}%
        {\AorE{en}{and}}}}

\@namedef{bibstyle@usmeg-n}{%
    \bibpunct{[}{]}{;}{n}{,}{,}%
    \gdef\BIBand{\InBibliography%
        {\AorE{en}{and}}%
        {\AorE{en}{and}}}}

\@namedef{bibstyle@ussagus}{%
    \bibpunct[:]{(}{)}{;}{a}{,}{,}%
    \gdef\BIBand{\textit{\&}}}

\newcommand{\citenamefont}[1]{#1}
\newcommand{\bibnamefont}[1]{#1}
\newcommand{\bibfnamefont}[1]{#1}

\endinput