summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/extpfeil
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-08-18 23:44:31 +0000
committerKarl Berry <karl@freefriends.org>2006-08-18 23:44:31 +0000
commitdc74601612e94f7d50d0970fc5a1b79b40a7b223 (patch)
tree56a9a3d3d9a09c2a1828b720070fec743646b026 /Master/texmf-dist/tex/latex/extpfeil
parentc992af682eabb0979ed91293c8b7f72ca46eae2f (diff)
extpfeil update (28jul06)
git-svn-id: svn://tug.org/texlive/trunk@1985 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/extpfeil')
-rw-r--r--Master/texmf-dist/tex/latex/extpfeil/extpfeil.sty31
1 files changed, 30 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/extpfeil/extpfeil.sty b/Master/texmf-dist/tex/latex/extpfeil/extpfeil.sty
index 8a450d51403..109e3ec8bcc 100644
--- a/Master/texmf-dist/tex/latex/extpfeil/extpfeil.sty
+++ b/Master/texmf-dist/tex/latex/extpfeil/extpfeil.sty
@@ -34,12 +34,32 @@
%%
\NeedsTeXFormat{LaTeX2e}[2003/12/01]
\ProvidesPackage{extpfeil}
- [2006/03/23 v0.2a Extensible Pfeile (PE)]
+ [2006/07/27 v0.3 Extensible Pfeile (PE)]
\RequirePackage{amsmath}
\RequirePackage{amssymb}
+\RequirePackage{mathtools}
+\RequirePackage[only,shortleftarrow,shortrightarrow]{stmaryrd}
\newcommand*{\newextarrow}[3] {%
\newcommand*{#1}[2][]{\ext@arrow #2{\arrowfill@#3}{##1}{##2}}
}
+\newcommand*{\twoarrowsleft}[2]{%
+ \settoheight{\dimen@}{=}%
+ \advance\dimen@ by 1pt\relax
+ \mathrel{%
+ \mathrlap{\raisebox{0.22\dimen@}[0pt][0pt]{$#1$}}%
+ \mathrlap{\raisebox{-0.22\dimen@}[0pt][0pt]{$#2$}}%
+ \hphantom{\vbox{\hbox{$#1$}\hbox{$#2$}}}%
+ }%
+}%
+\newcommand*{\twoarrowsright}[2]{%
+ \settoheight{\dimen@}{=}%
+ \advance\dimen@ by 1pt\relax
+ \mathrel{%
+ \hphantom{\vbox{\hbox{$#1$}\hbox{$#2$}}}%
+ \mathllap{\raisebox{0.22\dimen@}[0pt][0pt]{$#1$}}%
+ \mathllap{\raisebox{-0.22\dimen@}[0pt][0pt]{$#2$}}%
+ }%
+}%
\newextarrow{\xtwoheadrightarrow}
{05{40}0}
{\relbar\relbar\twoheadrightarrow}
@@ -49,6 +69,15 @@
\let\xmapsto\undefined
\newextarrow{\xmapsto}{0599}{{\mapstochar\relbar}\relbar\rightarrow}
\newextarrow{\xlongequal}{5599}{\Relbar\Relbar\Relbar}
+\newextarrow
+ {\xtofrom}%
+ {55{40}0}%
+ {%
+ {\twoarrowsleft\relbar\shortleftarrow}%
+ \Relbar%
+ {\twoarrowsright\shortrightarrow\relbar}%
+ }%
+
\endinput
%%
%% End of file `extpfeil.sty'.