summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/harpoon
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/harpoon
Initial commit
Diffstat (limited to 'macros/latex/contrib/harpoon')
-rw-r--r--macros/latex/contrib/harpoon/harpoon.pdfbin0 -> 26505 bytes
-rw-r--r--macros/latex/contrib/harpoon/harpoon.sty42
-rw-r--r--macros/latex/contrib/harpoon/harpoon.tex40
3 files changed, 82 insertions, 0 deletions
diff --git a/macros/latex/contrib/harpoon/harpoon.pdf b/macros/latex/contrib/harpoon/harpoon.pdf
new file mode 100644
index 0000000000..9bf9a0fc52
--- /dev/null
+++ b/macros/latex/contrib/harpoon/harpoon.pdf
Binary files differ
diff --git a/macros/latex/contrib/harpoon/harpoon.sty b/macros/latex/contrib/harpoon/harpoon.sty
new file mode 100644
index 0000000000..2f87d14036
--- /dev/null
+++ b/macros/latex/contrib/harpoon/harpoon.sty
@@ -0,0 +1,42 @@
+% harpoon.sty
+% by Tobias Kuipers {kuipers@fwi.uva.nl}
+% v1.0 of 1994/11/02
+% See harpoon.tex for documentation
+% If you modify this file, please redistribute it under another name
+% and send me a copy
+%
+% Permission is hereby granted to do anything with this file. No fitness
+% for any purpose is guaranteed or implied. We deny everything
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{harpoon}[1994/11/02 Harpoon drawing package by Tobias Kuipers]
+
+\DeclareOption*{%
+ \PassOptionsToPackage{\CurrentOption}{graphics}
+}
+\ProcessOptions
+\RequirePackage{graphics}[1994/05/30]
+
+
+
+\newcommand{\overleftharp}[1]{\overharp{\leftharpoonup}{#1}{.7}}
+\newcommand{\overrightharp}[1]{\overharp{\rightharpoonup}{#1}{.7}}
+\newcommand{\overleftharpdown}[1]{\overharp{\leftharpoondown}{#1}{.9}}
+\newcommand{\overrightharpdown}[1]{\overharp{\rightharpoondown}{#1}{.9}}
+\newcommand{\underleftharp}[1]{\overharp{\leftharpoonup}{#1}{-1}}
+\newcommand{\underrightharp}[1]{\overharp{\rightharpoonup}{#1}{-1}}
+\newcommand{\underleftharpdown}[1]{\overharp{\leftharpoondown}{#1}{-.8}}
+\newcommand{\underrightharpdown}[1]{\overharp{\rightharpoondown}{#1}{-.8}}
+
+\newlength{\argwd} \newlength{\arght}%-Two variables
+\newcommand{\overharp}[3]{% -The command name
+ \settowidth{\argwd}{#2}\settoheight{\arght}{#2}%
+ % -Set the variables
+ \raisebox{#3\arght}{% -Put the harp 6/10 of a line higher
+ \makebox[0pt][l]{% -Put everything in a box
+ \resizebox{\argwd}{.8\arght}{$#1$}%
+ % -Set harp to right length
+ }%
+ }%
+#2}% -Print the argument
+
diff --git a/macros/latex/contrib/harpoon/harpoon.tex b/macros/latex/contrib/harpoon/harpoon.tex
new file mode 100644
index 0000000000..9ede485032
--- /dev/null
+++ b/macros/latex/contrib/harpoon/harpoon.tex
@@ -0,0 +1,40 @@
+\documentclass[a4paper]{article}
+
+\usepackage[dvips]{harpoon}
+
+\title{A First Look at {\tt harpoon.sty}}
+\author{Tobias Kuipers\\ {\tt kuipers@fwi.uva.nl}}
+\date{November 2, 1994}
+
+\begin{document}
+
+\maketitle
+
+\section{Introduction}
+
+This packages provides a number of harpoons to be set over or under
+arbitrary text. The commands are invoked as \verb+\someharp{text}+,
+which will put some harpoon over {\tt text}. {\tt text} is typeset in LR
+mode. If you want text to be typeset in math mode you should type
+\verb+\someharp{$text$}+.
+
+\section{The Commands}
+
+The package is invoked with 1 option: \verb+\usepackage[xxx]{harpoon}+,
+where {\tt xxx} is your favourite graphics device driver. On most Unix
+machines, this will be {\tt dvips} and on a Macintosh this could be {\tt
+oztex}. Refer to the graphics package for more information.
+
+The commands are
+\begin{itemize}
+ \item \verb+\overleftharp+, which looks like \overleftharp{this}
+ \item \verb+\overrightharp+, which looks like \overrightharp{this}
+ \item \verb+\overleftharpdown+, which looks like \overleftharpdown{this}
+ \item \verb+\overrightharpdown+, which looks like \overrightharpdown{this}
+ \item \verb+\underleftharp+, which looks like \underleftharp{this}
+ \item \verb+\underrightharp+, which looks like \underrightharp{this}
+ \item \verb+\underleftharpdown+, which looks like \underleftharpdown{this}
+ \item \verb+\underrightharpdown+, which looks like \underrightharpdown{this}
+\end{itemize}
+
+\end{document}