| 1 |
% Purpose : Provide some extensible arrows in math mode. |
| 2 |
% (Sample source file) |
| 3 |
% Author : Ky-Anh Huynh |
| 4 |
% License : LGPL |
| 5 |
|
| 6 |
\documentclass[10pt, a4paper, oneside]{article} |
| 7 |
|
| 8 |
\usepackage{extarrows} |
| 9 |
|
| 10 |
% Define a simple macro for testing |
| 11 |
\def\test#1/{% |
| 12 |
\texttt{\textbackslash #1:}\qquad& A\csname #1\endcsname[\text{sub-script}]{\text{super-script}}Z} |
| 13 |
|
| 14 |
% Test command without sub/super-scripts |
| 15 |
\def\tfst #1/{% |
| 16 |
\texttt{\textbackslash #1:}\qquad& A\csname #1\endcsname[]{}Z} |
| 17 |
|
| 18 |
\begin{document} |
| 19 |
\section{Syntax} |
| 20 |
|
| 21 |
\begin{verbatim} |
| 22 |
\arrowname{super-script} |
| 23 |
\arrowname[sub-script]{super-script} |
| 24 |
\end{verbatim} |
| 25 |
|
| 26 |
\noindent |
| 27 |
\texttt{arrowname} is one of known arrow command, for example, \texttt{xlongequal}, \texttt{xLongleftarrow},\ldots |
| 28 |
|
| 29 |
\section{Examples} |
| 30 |
\begin{align} |
| 31 |
\test xlongequal/\\[5mm] |
| 32 |
\test xLongleftarrow/\\ |
| 33 |
\test xLongrightarrow/\\ |
| 34 |
\test xLongleftrightarrow/\\ |
| 35 |
\test xLeftrightarrow/\\[3mm] |
| 36 |
\test xlongleftrightarrow/\\ |
| 37 |
\test xlongrightarrow/\\[5mm] |
| 38 |
\test xleftrightarrow/\\ |
| 39 |
\test xlongleftarrow/\\%[2mm] |
| 40 |
(amsmath)\; \test xleftarrow/\\ |
| 41 |
(amsmath)\; \test xrightarrow/\\[3mm] |
| 42 |
\tfst xlongleftarrow/\\ |
| 43 |
\tfst xlongrightarrow/\\ |
| 44 |
(amsmath)\; \tfst xleftarrow/\\ |
| 45 |
(amsmath)\; \tfst xrightarrow/ |
| 46 |
\end{align} |
| 47 |
\end{document} |