summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/scalerel
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/scalerel')
-rw-r--r--Master/texmf-dist/tex/latex/scalerel/scalerel.sty14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/scalerel/scalerel.sty b/Master/texmf-dist/tex/latex/scalerel/scalerel.sty
index d7cb4baa52c..998095a2a45 100644
--- a/Master/texmf-dist/tex/latex/scalerel/scalerel.sty
+++ b/Master/texmf-dist/tex/latex/scalerel/scalerel.sty
@@ -18,6 +18,7 @@
% V1.01 Correct typos in documentation
% V1.1 Corrected usepackage dependencies; Significant doc rewrite.
+% V1.2 Added \scaleleftright and \stretchleftright; revised docs.
\usepackage{calc}
\usepackage{graphicx}
\global\newlength\thesrwidth
@@ -90,4 +91,17 @@
{\resizebox{\thesrwidth}{\thesrheight}{\usebox{\prebox}}}%
}
+\def\bl@nk{\rule{-.01ex}{1ex}}
+
+\newcommand\scaleleftright[4][99in]{%
+ \if.#2\def\leftarg{\bl@nk}\else\def\leftarg{#2}\fi%
+ \if.#4\def\rightarg{\bl@nk}\else\def\rightarg{#4}\fi%
+ \scalerel[#1]{\leftarg}{#3}\scalerel*[#1]{\rightarg}{#3}%
+}
+\newcommand\stretchleftright[4][10000]{%
+ \if.#2\def\leftarg{\bl@nk}\else\def\leftarg{#2}\fi%
+ \if.#4\def\rightarg{\bl@nk}\else\def\rightarg{#4}\fi%
+ \stretchrel[#1]{\leftarg}{#3}\stretchrel*[#1]{\rightarg}{#3}%
+}
+
\endinput