diff options
Diffstat (limited to 'macros/latex/contrib/stellenbosch/tex/usbib.sty')
-rw-r--r-- | macros/latex/contrib/stellenbosch/tex/usbib.sty | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/macros/latex/contrib/stellenbosch/tex/usbib.sty b/macros/latex/contrib/stellenbosch/tex/usbib.sty new file mode 100644 index 0000000000..ab02f76ec4 --- /dev/null +++ b/macros/latex/contrib/stellenbosch/tex/usbib.sty @@ -0,0 +1,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 |