From 8df8568414bdd80fc1559023f365ae2b41dd5011 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 23 Nov 2007 20:11:37 +0000 Subject: new package har2nat git-svn-id: svn://tug.org/texlive/trunk@5572 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/har2nat/README | 20 ++++++++++++++ Master/texmf-dist/tex/latex/har2nat/har2nat.sty | 36 +++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/har2nat/README create mode 100644 Master/texmf-dist/tex/latex/har2nat/har2nat.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/har2nat/README b/Master/texmf-dist/doc/latex/har2nat/README new file mode 100644 index 00000000000..85098efc960 --- /dev/null +++ b/Master/texmf-dist/doc/latex/har2nat/README @@ -0,0 +1,20 @@ +har2nat package written by Bas Straathof, 2005/12/01 +Eindhoven University of Technology, The Netherlands +bas.straathof@gmail.com. + +This small package allows a LaTeX document containing the citation commands +provided by the Harvard package (Peter Williams and Thorsten Schnier) +to be compiled using the natbib package (Patrick W. Daly). Migration from +harvard to natbib thus can be achieved simply by replacing + +\usepackage{harvard} + +with + +\usepackage{natbib} +\usepackage{har2nat} + +---IMPORTANT--- +har2nat must not be loaded before the natbib package as it redefines +the natbib commands \cite and \citeyear. All other natbib commands remain +unchanged and can be used alongside the Harvard commands. diff --git a/Master/texmf-dist/tex/latex/har2nat/har2nat.sty b/Master/texmf-dist/tex/latex/har2nat/har2nat.sty new file mode 100644 index 00000000000..b99153b9153 --- /dev/null +++ b/Master/texmf-dist/tex/latex/har2nat/har2nat.sty @@ -0,0 +1,36 @@ +% har2nat package written by Bas Straathof, 2005/12/01 +% Eindhoven University of Technology, The Netherlands +% bas.straathof@gmail.com. +% +% This small package allows a LaTeX document containing the citation commands +% provided by the Harvard package (Peter Williams and Thorsten Schnier) +% to be compiled using the natbib package (Patrick W. Daly). Migration from +% harvard to natbib thus can be achieved simply by replacing +% +% \usepackage{harvard} +% +% with +% +% \usepackage{natbib} +% \usepackage{har2nat} +% +% ---IMPORTANT--- +% har2nat must not be loaded before the natbib package as it redefines +% the natbib commands \cite and \citeyear. All other natbib commands remain +% unchanged and can be used alongside the Harvard commands. + +\NeedsTeXFormat{LaTeX2e} % +\ProvidesPackage{har2nat}[2005/12/01 1.0 Harvard to natbib]% +\RequirePackage{suffix} % Requires eTeX version 2, needed for starred commands +\RequirePackage{natbib} % + +\renewcommand{\cite}{\citep} +\WithSuffix\newcommand{\cite}*{\citep*} +\newcommand{\citeaffixed}[2]{\citep[#2][]{#1}} +\newcommand{\citeasnoun}{\citet} +\WithSuffix\newcommand\citeasnoun*{\citet*} +\renewcommand{\citename}{\citeauthor} +\WithSuffix\newcommand\citename*{\citeauthor*} +\renewcommand\citeyear\citeyearpar +\WithSuffix\newcommand\citeyear* + {\begingroup\NAT@swafalse\def\NAT@ctype{2}\NAT@parfalse\NAT@citetp} -- cgit v1.2.3