diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/hyper/scontrib |
Initial commit
Diffstat (limited to 'macros/latex/contrib/hyper/scontrib')
-rw-r--r-- | macros/latex/contrib/hyper/scontrib/README | 6 | ||||
-rw-r--r-- | macros/latex/contrib/hyper/scontrib/harvard.hyp | 21 |
2 files changed, 27 insertions, 0 deletions
diff --git a/macros/latex/contrib/hyper/scontrib/README b/macros/latex/contrib/hyper/scontrib/README new file mode 100644 index 0000000000..68eb8e64eb --- /dev/null +++ b/macros/latex/contrib/hyper/scontrib/README @@ -0,0 +1,6 @@ +This area contains some stuff that authors have written for +adding hypertex capability to other packages that are not +supported by the hyper package. +Some files from the contrib directory may be moved into this +directory when the hyper package has been prepared for +automatically loading them. diff --git a/macros/latex/contrib/hyper/scontrib/harvard.hyp b/macros/latex/contrib/hyper/scontrib/harvard.hyp new file mode 100644 index 0000000000..53fd4fc98c --- /dev/null +++ b/macros/latex/contrib/hyper/scontrib/harvard.hyp @@ -0,0 +1,21 @@ +%% harvardfull.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.hyp}[95/05/15] + +%% The following defines anchors not just for the year but also for the +%% abbr-citation, the full-citation and the name. +\renewcommand{\harvarditem}[4][\null]{% + \hyper@setcurrent% + \item[\blindhyperanchor{\@currenthyper}]% + \if@filesw{ \def\protect##1{\string ##1\space}% + \ifthenelse{\equal{#1}{\null}} + {\def\next{{#4}{\hyperreference{\@currenthyper}{#2}}{\hyperreference{\@currenthyper}{#2}}{\hyperreference{\@currenthyper}{#3}}}} + {\def\next{{#4}{\hyperreference{\@currenthyper}{#2}}{\hyperreference{\@currenthyper}{#1}}{\hyperreference{\@currenthyper}{#3}}}} + \immediate\write\@auxout{\string\harvardcite\next}% + }\fi% + \protect\hspace*{-\labelwidth}\protect\hspace*{-\labelsep}\ignorespaces% + } + |