summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/scalerel
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-03-19 22:11:12 +0000
committerKarl Berry <karl@freefriends.org>2013-03-19 22:11:12 +0000
commit0edafd76969b5b7fe4ffdc756947598312974038 (patch)
treec195102f29b6e47fac13fb2021d5f6925efe4ddb /Master/texmf-dist/tex/latex/scalerel
parentcf03be0bec33856ec8d7264260f5be52badb330a (diff)
scalerel (19mar13)
git-svn-id: svn://tug.org/texlive/trunk@29435 c570f23f-e606-0410-a88d-b1316a301751
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