From dc74601612e94f7d50d0970fc5a1b79b40a7b223 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 18 Aug 2006 23:44:31 +0000 Subject: extpfeil update (28jul06) git-svn-id: svn://tug.org/texlive/trunk@1985 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/extpfeil/extpfeil.sty | 31 ++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/latex') 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'. -- cgit v1.2.3