summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/extarrows
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/extarrows
Initial commit
Diffstat (limited to 'macros/latex/contrib/extarrows')
-rw-r--r--macros/latex/contrib/extarrows/README34
-rw-r--r--macros/latex/contrib/extarrows/extarrows-test.pdfbin0 -> 31995 bytes
-rw-r--r--macros/latex/contrib/extarrows/extarrows-test.tex41
-rw-r--r--macros/latex/contrib/extarrows/extarrows.sty46
4 files changed, 121 insertions, 0 deletions
diff --git a/macros/latex/contrib/extarrows/README b/macros/latex/contrib/extarrows/README
new file mode 100644
index 0000000000..e828202198
--- /dev/null
+++ b/macros/latex/contrib/extarrows/README
@@ -0,0 +1,34 @@
+Package: extarrows (extensible arrows)
+
+Version:
+ * 1.0b (2008/05/15)
+ Thanks to Herbert Voss <Herbert.Voss@FU-Berlin.DE>
+ * 1.0a (2004/11/05)
+
+Author: kyanh <xkyanh@gmail.com>
+
+License: LGPL
+
+This package provides some extensible arrows in maths. mode
+ (more than \xleftarrow, \xrightarrow, ...)
+
+ \xlongequal
+ \xLongleftarrow
+ \xLongrightarrow
+ \xLongleftrightarrow
+ \xLeftrightarrow
+
+ \xlongleftrightarrow
+ \xleftrightarrow
+ \xlongleftarrow
+ \xlongrightarrow
+
+Examples:
+ extarrows-test.tex (source)
+ extarrows-test.pdf (demonstration)
+
+--
+Huynh Ky Anh
+Vietnamese TeX Users Group
+http://kyanh.net/
+http://viettug.org/
diff --git a/macros/latex/contrib/extarrows/extarrows-test.pdf b/macros/latex/contrib/extarrows/extarrows-test.pdf
new file mode 100644
index 0000000000..930f579652
--- /dev/null
+++ b/macros/latex/contrib/extarrows/extarrows-test.pdf
Binary files differ
diff --git a/macros/latex/contrib/extarrows/extarrows-test.tex b/macros/latex/contrib/extarrows/extarrows-test.tex
new file mode 100644
index 0000000000..bca513d7cd
--- /dev/null
+++ b/macros/latex/contrib/extarrows/extarrows-test.tex
@@ -0,0 +1,41 @@
+\documentclass[10pt, a4paper, oneside]{article}
+
+\usepackage{extarrows}
+
+\def\test#1/{%
+ \texttt{\textbackslash #1:}\qquad& A\csname #1\endcsname[\text{to love}]{\text{we love}}Z}
+\def\tfst #1/{%
+ \texttt{\textbackslash #1:}\qquad& A\csname #1\endcsname[]{}Z}
+
+\begin{document}
+\section{Syntax}
+
+\begin{verbatim}
+\arrowname[sub-script]{super-script}
+\end{verbatim}
+
+\noindent
+\texttt{arrowname} is \texttt{xlongequal}, \texttt{xLongleftarrow}, etc.
+
+\noindent
+The parameter \verb"[sub-script]" is optional.
+
+\section{Examples}
+\begin{align}
+\test xlongequal/\\[5mm]
+\test xLongleftarrow/\\
+\test xLongrightarrow/\\
+\test xLongleftrightarrow/\\
+\test xLeftrightarrow/\\[3mm]
+\test xlongleftrightarrow/\\
+\test xlongrightarrow/\\[5mm]
+\test xleftrightarrow/\\
+\test xlongleftarrow/\\%[2mm]
+(amsmath)\; \test xleftarrow/\\
+(amsmath)\; \test xrightarrow/\\[3mm]
+\tfst xlongleftarrow/\\
+\tfst xlongrightarrow/\\
+(amsmath)\; \tfst xleftarrow/\\
+(amsmath)\; \tfst xrightarrow/
+\end{align}
+\end{document}
diff --git a/macros/latex/contrib/extarrows/extarrows.sty b/macros/latex/contrib/extarrows/extarrows.sty
new file mode 100644
index 0000000000..f89ba3c319
--- /dev/null
+++ b/macros/latex/contrib/extarrows/extarrows.sty
@@ -0,0 +1,46 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{extarrows}[2008/05/15 v1.0b Some extensible arrows]
+
+\RequirePackage{amsmath}
+
+\def\x@arrow{\DOTSB\Relbar}
+\def\xlongequalsignfill@{\arrowfill@\x@arrow\Relbar\x@arrow}
+
+\providecommand{\xlongequal}[2][]{%
+ \ext@arrow 0099\xlongequalsignfill@{#1}{#2}}
+
+\def\xLongleftrightarrowfill@{%
+ \arrowfill@\Longleftarrow\Relbar\Longrightarrow}
+\providecommand{\xLongleftrightarrow}[2][]{%
+ \ext@arrow 0099\xLongleftrightarrowfill@{#1}{#2}}
+
+\def\xlongleftrightarrowfill@{%
+ \arrowfill@\longleftarrow\relbar\longrightarrow}
+\providecommand{\xlongleftrightarrow}[2][]{%
+ \ext@arrow 0099\xlongleftrightarrowfill@{#1}{#2}}
+
+\def\xLeftrightarrowfill@{\arrowfill@\Leftarrow\Relbar\Rightarrow}
+\providecommand{\xLeftrightarrow}[2][]{%
+ \ext@arrow 0099\xLeftrightarrowfill@{#1}{#2}}
+
+\def\xleftrightarrowfill@{\arrowfill@\leftarrow\relbar\rightarrow}
+\providecommand{\xleftrightarrow}[2][]{%
+ \ext@arrow 0099\xleftrightarrowfill@{#1}{#2}}
+
+\def\xLongleftarrowfill@{\arrowfill@\Longleftarrow\Relbar\Relbar}
+\providecommand{\xLongleftarrow}[2][]{%
+ \ext@arrow 0099\xLongleftarrowfill@{#1}{#2}}
+
+\def\xLongrightarrowfill@{\arrowfill@\Relbar\Relbar\Longrightarrow}
+\providecommand{\xLongrightarrow}[2][]{%
+ \ext@arrow 0099\xLongrightarrowfill@{#1}{#2}}
+
+\def\xlongleftarrowfill@{\arrowfill@\longleftarrow\relbar\relbar}
+\providecommand{\xlongleftarrow}[2][]{%
+ \ext@arrow 0099\xlongleftarrowfill@{#1}{#2}}
+
+\def\xlongrightarrowfill@{\arrowfill@\relbar\relbar\longrightarrow}
+\providecommand{\xlongrightarrow}[2][]{%
+ \ext@arrow 0099\xlongrightarrowfill@{#1}{#2}}
+
+\endinput