From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/har2nat/README | 20 ++++++++++++ macros/latex/contrib/har2nat/har2nat.pdf | Bin 0 -> 222462 bytes macros/latex/contrib/har2nat/har2nat.sty | 36 +++++++++++++++++++++ macros/latex/contrib/har2nat/har2nat.tex | 54 +++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 macros/latex/contrib/har2nat/README create mode 100644 macros/latex/contrib/har2nat/har2nat.pdf create mode 100644 macros/latex/contrib/har2nat/har2nat.sty create mode 100644 macros/latex/contrib/har2nat/har2nat.tex (limited to 'macros/latex/contrib/har2nat') diff --git a/macros/latex/contrib/har2nat/README b/macros/latex/contrib/har2nat/README new file mode 100644 index 0000000000..85098efc96 --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/har2nat/har2nat.pdf b/macros/latex/contrib/har2nat/har2nat.pdf new file mode 100644 index 0000000000..af46e1f30b Binary files /dev/null and b/macros/latex/contrib/har2nat/har2nat.pdf differ diff --git a/macros/latex/contrib/har2nat/har2nat.sty b/macros/latex/contrib/har2nat/har2nat.sty new file mode 100644 index 0000000000..b99153b915 --- /dev/null +++ b/macros/latex/contrib/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} diff --git a/macros/latex/contrib/har2nat/har2nat.tex b/macros/latex/contrib/har2nat/har2nat.tex new file mode 100644 index 0000000000..aa6109f10a --- /dev/null +++ b/macros/latex/contrib/har2nat/har2nat.tex @@ -0,0 +1,54 @@ +\documentclass[DIV=8, pagesize=auto]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage[unicode=true]{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{har2nat} package\thanks{This manual corresponds to \pkg{har2nat}~v1.0, dated~2005/12/01.}} +\author{Bas Straathof\\Eindhoven University of Technology, The Netherlands\\\mail{bas.straathof@gmail.com}} +\date{2005/12/01} + + +\begin{document} + +\maketitle + +\noindent +This small package allows a \LaTeX\ document containing the citation commands +provided by the \pkg{Harvard} package (Peter Williams and Thorsten Schnier) +to be compiled using the \pkg{natbib} package (Patrick W. Daly). Migration from +\pkg{harvard} to \pkg{natbib} thus can be achieved simply by replacing +% +\begin{verbatim} +\usepackage{harvard} +\end{verbatim} +% +with +% +\begin{verbatim} +\usepackage{natbib} +\usepackage{har2nat} +\end{verbatim} + + +\minisec{Important:} + +\pkg{har2nat} must not be loaded before the \pkg{natbib} package as it redefines +the \pkg{natbib} commands \cmd{\cite} and \cmd{\citeyear}.\@ All other \pkg{natbib} commands remain +unchanged and can be used alongside the \pkg{Harvard} commands. + +\end{document} -- cgit v1.2.3