summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stellenbosch/usbib.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-08-18 23:28:12 +0000
committerKarl Berry <karl@freefriends.org>2006-08-18 23:28:12 +0000
commite90bad0d494ecd43a4f81c50efbabf7bc04887d7 (patch)
tree99193d645e93c751704322cebe43f8dd1079fa6f /Master/texmf-dist/tex/latex/stellenbosch/usbib.sty
parent69f35cb3992ee53e4815cd06f5aae55af102e60f (diff)
stellenbosch 4.0 (17aug06)
git-svn-id: svn://tug.org/texlive/trunk@1976 c570f23f-e606-0410-a88d-b1316a301751
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