summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyper/contrib/harvard-to.hyp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyper/contrib/harvard-to.hyp')
-rw-r--r--Master/texmf-dist/source/latex/hyper/contrib/harvard-to.hyp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/hyper/contrib/harvard-to.hyp b/Master/texmf-dist/source/latex/hyper/contrib/harvard-to.hyp
new file mode 100644
index 00000000000..c4cfce13771
--- /dev/null
+++ b/Master/texmf-dist/source/latex/hyper/contrib/harvard-to.hyp
@@ -0,0 +1,21 @@
+%% harvard.hyp - Amendments to harvard bibliography style Version 2.0.5
+%% to be used together with the hyper package
+%% Author: Renate Schmidt (schmidt@mpi-sb.mpg.de)
+%% Copyright: Renate Schmidt, May 1995
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+\ProvidesFile{harvard-to.hyp}[95/05/15]
+
+%% An apaptation of the original \harvarditem command that inserts a
+% \blindhyperanchor for each item in the biliography and \hyperreference
+% links around the citation-year.
+\renewcommand{\harvarditem}[4][\null]{%
+ \hyper@setcurrent%
+ \item[\blindhyperanchor{\@currenthyper}]%
+ \if@filesw{ \def\protect##1{\string ##1\space}%
+ \ifthenelse{\equal{#1}{\null}}
+ {\def\next{{#4}{#2}{#2}{\hyperreference{\@currenthyper}{#3}}}}
+ {\def\next{{#4}{#2}{#1}{\hyperreference{\@currenthyper}{#3}}}}
+ \immediate\write\@auxout{\string\harvardcite\next}%
+ }\fi%
+ \protect\hspace*{-\labelwidth}\protect\hspace*{-\labelsep}\ignorespaces%
+ }