summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stellenbosch/usbib.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stellenbosch/usbib.sty')
-rw-r--r--Master/texmf-dist/tex/latex/stellenbosch/usbib.sty86
1 files changed, 86 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/stellenbosch/usbib.sty b/Master/texmf-dist/tex/latex/stellenbosch/usbib.sty
new file mode 100644
index 00000000000..994875881ad
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/stellenbosch/usbib.sty
@@ -0,0 +1,86 @@
+\NeedsTeXFormat{LaTeX2e}[1995/06/01]
+\ProvidesPackage{usbib}[2003/02/29 0.1 (DNJ Els)]
+\RequirePackageWithOptions{natbib}
+
+\@ifundefined{AorE}{
+ \edef\AFRstr{\string afrikaans}
+ \DeclareRobustCommand{\AorE}[2]{%
+ \ifx\AFRstr\languagename #1\else #2\fi}
+ }{}
+
+
+\newcommand\BIBand{\textit{\&}}
+
+\@namedef{bibstyle@usmeg-a}{%
+ \bibpunct{(}{)}{;}{a}{,}{,}%
+ \gdef\BIBand{%
+ \ifinbibliography
+ \AorE{en}{and}%
+ \else
+ \ifNAT@swa
+ \AorE{en}{and}%
+ \else
+ \textit{\&}%
+ \fi
+ \fi}}
+
+\@namedef{bibstyle@usmeg-n}{%
+ \bibpunct{[}{]}{;}{n}{,}{,}%
+ \gdef\BIBand{%
+ \ifinbibliography
+ \AorE{en}{and}%
+ \else
+ \textit{\&}%
+ \fi}}
+
+\newcommand\bibstyle@ussagus{%
+ \bibpunct[:]{(}{)}{;}{a}{,}{,}%
+ \gdef\BIBand{\textit{\&}}}
+
+
+\setlength{\bibhang}{1em}
+
+{\@listi
+ \global\bibsep\itemsep
+ \global\advance\bibsep by\parsep}
+
+\newcommand{\citenamefont}[1]{#1}
+\newcommand{\bibnamefont}[1]{#1}
+\newcommand{\bibfnamefont}[1]{#1}
+
+
+\renewcommand\bibstyle[1]{%
+ \lowercase{\edef\tempa{#1}}%
+ \@ifundefined{bibstyle@\tempa}{\relax}
+ {\csname bibstyle@\tempa\endcsname}}
+\AtBeginDocument{\global\let\bibstyle=\@gobble}
+
+
+
+\newif\ifinbibliography
+\inbibliographyfalse
+
+\renewenvironment{thebibliography}[1]{%
+ \inbibliographytrue%
+ \bibsection%
+ \parindent\z@%
+ \bibpreamble\bibfont%
+ \list{\@biblabel{\arabic{NAT@ctr}}}{%
+ \@bibsetup{#1}%
+ \setcounter{NAT@ctr}{0}}%
+ \ifNAT@openbib
+ \renewcommand\newblock{\par}
+ \else
+ \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
+ \fi
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax
+ \let\citeN\cite \let\shortcite\cite
+ \let\citeasnoun\cite
+ }{%
+ \def\@noitemerr{%
+ \PackageWarning{natbib}
+ {Empty `thebibliography' environment}}%
+ \endlist\vskip-\lastskip}
+
+\endinput