diff options
Diffstat (limited to 'macros/latex/contrib/fragments/overrightarrow.sty')
-rw-r--r-- | macros/latex/contrib/fragments/overrightarrow.sty | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/macros/latex/contrib/fragments/overrightarrow.sty b/macros/latex/contrib/fragments/overrightarrow.sty new file mode 100644 index 0000000000..59d89ad0e9 --- /dev/null +++ b/macros/latex/contrib/fragments/overrightarrow.sty @@ -0,0 +1,14 @@ +% This is overrightarrow.sty, It provides for a command: +% \Overrightarrow which is somewhat like \overrightarrow and somewhat +% like \Rightarrow. Also a couple of helper commands. +% This file is public domain. +% James Kilfiger mapdn@csv.warwick.ac.uk +% +\newcommand\reldoublebar{\mathrel{\smash=}} +\newcommand{\Rightarrowfill@}[1]{% +\m@th \setboxz@h {$#1\reldoublebar $}\ht \z@ \z@ +$#1\copy \z@ +\mkern -6mu\cleaders \hbox {$#1\mkern -2mu\box \z@ \mkern -2mu$}\hfill +\mkern -6mu +\mathord \Rightarrow $} +\newcommand{\Overrightarrow}{\mathpalette{\overarrow@\Rightarrowfill@}} |