summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-13 23:34:56 +0000
committerKarl Berry <karl@freefriends.org>2011-02-13 23:34:56 +0000
commit0853d35f07a831485e3e4233dd3d24fd04b8faab (patch)
tree7d45a0b298defb9530fb1d54ea322930147ef219 /Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def
parentcbd629a491c12d069d35c0ebeb51f9c8e3a61dab (diff)
bidi (12feb11)
git-svn-id: svn://tug.org/texlive/trunk@21395 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def67
1 files changed, 67 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def
new file mode 100644
index 00000000000..3b833c44eb6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bidi/empheq-xetex-bidi.def
@@ -0,0 +1,67 @@
+%%
+%% This is file `empheq-xetex-bidi.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `empheq-xetex-bidi.def')
+%%
+%% ______________________________________
+%% Copyright © 2009–2011 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{empheq-xetex-bidi.def}[2011/03/01 v0.1 bidi adaptations for empheq package for XeTeX engine]
+\MHInternalSyntaxOn
+\AtBeginDocument{%
+ \@ifpackageloaded{fancybox}{%
+ \@ifpackageloaded{color}{\definecolor{shadowcolor}{rgb}{0,0,0}}%
+ {\renewcommand*\textcolor[2]{\normalcolor{#2}}}%
+ \renewcommand*\shadowbox{%
+ \@ifstar{\MH_set_boolean_T:n {shadowbox_star}
+ \VerbBox\EQ_shadowbox:n}
+ {\MH_set_boolean_F:n {shadowbox_star}
+ \VerbBox\EQ_shadowbox:n}}
+ \def\EQ_shadowbox:n #1{%
+ \sbox{\z@}{\fbox{#1}}%
+ \MH_if_boolean:nTF {shadowbox_star}{
+ \MH_setlength:dn \@tempdima{\z@}%
+ }{
+ \MH_setlength:dn \@tempdima{\dp\z@+\shadowsize}%
+ }
+ \raisebox{\@tempdima}{%
+ \if@RTL\makebox[\z@][r]{%
+ \kern\shadowsize \textcolor{shadowcolor}{%
+ \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
+ }\else%
+ \makebox[\z@][l]{%
+ \kern\shadowsize \textcolor{shadowcolor}{%
+ \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
+ }\fi%
+ \usebox\z@\textcolor{shadowcolor}{%
+ \rule[-\dp\z@-\shadowsize]{\shadowsize}{\ht\z@+\dp\z@}}}}%
+ }{}%
+}
+\renewenvironment{EmphEqMainEnv}{\@RTLfalse\collect@body\EQ_getbody:n}{%
+ \if_num:w \l_EQ_equationtype_int=\z@ %ZeroCheckpoint
+ \EQ_upgrade_error:
+ \else:
+ \EQ_post_process:
+ \ignorespacesafterend
+ \fi:}
+\MHInternalSyntaxOff
+%%
+%% Copyright © 2009–2011 Vafa Khalighi <vafakhlgh@gmail.com>
+%%
+%% It may be distributed and/or modified under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%% End of file `empheq-xetex-bidi.def'.