|
|
Welcome to the TeXnik web site xleftrightharpoon-Symbol |
![]() |
||||||||||
|
Some of the amsmath-symbols can be stretched in any length, like
(the code is: $\xrightarrow[some\ text]{a\ lot\ of\ text}$).
This is only possible for \xrightarrow[]{} and \xleftarrow[]{}. the following latex code defines several \xleft/rightharpoondown/up ...
the latex code: \usepackage{amssymb}
\usepackage{amsmath}
\def\rightharpoondownfill@{\arrowfill@\relbar\relbar\rightharpoondown}
\def\rightharpoonupfill@{\arrowfill@\relbar\relbar\rightharpoonup}
\def\leftharpoondownfill@{\arrowfill@\leftharpoondown\relbar\relbar}
\def\leftharpoonupfill@{\arrowfill@\leftharpoonup\relbar\relbar}
\newcommand{\xrightharpoondown}[2][]{\ext@arrow 0359\rightharpoondownfill@{#1}{#2}}
\newcommand{\xrightharpoonup}[2][]{\ext@arrow 0359\rightharpoonupfill@{#1}{#2}}
\newcommand{\xleftharpoondown}[2][]{\ext@arrow 3095\leftharpoondownfill@{#1}{#2}}
\newcommand{\xleftharpoonup}[2][]{\ext@arrow 3095\leftharpoonupfill@{#1}{#2}}
\newcommand{\xleftrightharpoons}[2][]{\mathrel{%
\raise.22ex\hbox{$\ext@arrow 3095\leftharpoonupfill@{\phantom{#1}}{#2}$}%
\setbox0=\hbox{$\ext@arrow 0359\rightharpoondownfill@{#1}{\phantom{#2}}$}%
\kern-\wd0 \lower.22ex\box0}}
\newcommand{\xrightleftharpoons}[2][]{\mathrel{%
\raise.22ex\hbox{$\ext@arrow 3095\rightharpoonupfill@{\phantom{#1}}{#2}$}%
\setbox0=\hbox{$\ext@arrow 0359\leftharpoondownfill@{#1}{\phantom{#2}}$}%
\kern-\wd0 \lower.22ex\box0}}
|
|||||||||||