summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/biditools.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-20 23:23:42 +0000
committerKarl Berry <karl@freefriends.org>2012-04-20 23:23:42 +0000
commit009ac769b6be11474341188733262e8b22529610 (patch)
tree76ff02ab2d0dc109b43e3fbbd6c5764c415d2023 /Master/texmf-dist/tex/latex/bidi/biditools.sty
parentef035dc84f3184df9fe30b4566203da2b8eee254 (diff)
bidi (20apr12)
git-svn-id: svn://tug.org/texlive/trunk@26076 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/biditools.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/biditools.sty12
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/biditools.sty b/Master/texmf-dist/tex/latex/bidi/biditools.sty
index f02a25179ef..0831a5a1186 100644
--- a/Master/texmf-dist/tex/latex/bidi/biditools.sty
+++ b/Master/texmf-dist/tex/latex/bidi/biditools.sty
@@ -14,6 +14,18 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{biditools}[2012/05/01 v0.1 Programming tools for bidi package]
+\providecommand{\@bidi@saveprimitive}[2]{\begingroup\escapechar`\\\relax
+ \edef\@tempa{\string#1}\edef\@tempb{\meaning#1}%
+ \ifx\@tempa\@tempb \global\let#2#1%
+ \else
+ \edef\@tempb{\meaning#2}%
+ \ifx\@tempa\@tempb
+ \else
+ \@latex@error{Unable to properly define \string#2; primitive
+ \noexpand#1no longer primitive}\@eha
+ \fi
+ \fi
+ \endgroup}
\def\@tagsextension{clo}
\def\@definitionfileextension{def}
\def\@iftagsloaded{\@ifl@aded\@tagsextension}