summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-12 17:37:46 +0000
committerKarl Berry <karl@freefriends.org>2010-04-12 17:37:46 +0000
commitafcb03dcce6a30a995944f6b94adc8782ea9f3e2 (patch)
treeb65abfecc2ed525194f04eeec40a0e27d11ff588 /Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
parentd68dc2a80b6149839a67b6498294f1b774687157 (diff)
bidi update (11apr10)
git-svn-id: svn://tug.org/texlive/trunk@17822 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xetex-bidi.def68
1 files changed, 62 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
index ac88ad5f224..ef377a15db1 100644
--- a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for XeTeX engine]
+\ProvidesFile{xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for XeTeX engine]
\ifx\TeXXeTstate\undefined\else%
\TeXXeTstate=1
\fi
@@ -20,7 +20,42 @@
\let\everypar=\n@everypar
\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
-\def\lr#1{\begingroup\beginL\rmfamily#1\endL\endgroup}
+\def\hboxR#1#{%
+ \getarg@hboxR{#1}%
+ }
+\def\getarg@hboxR#1#2{%
+ \hbox#1{\beginR#2\endR}%
+ }
+\def\hboxL#1#{%
+ \getarg@hboxL{#1}%
+ }
+\def\getarg@hboxL#1#2{%
+ \hbox#1{\beginL#2\endL}%
+ }
+\def\vboxR#1#{%
+ \getarg@vboxR{#1}%
+ }
+\def\getarg@vboxR#1#2{%
+ \vbox#1{\beginR#2\endR}%
+ }
+\def\vboxL#1#{%
+ \getarg@vboxL{#1}%
+ }
+\def\getarg@vboxL#1#2{%
+ \vbox#1{\beginL#2\endL}%
+ }
+\def\halignR#1#{%
+ \getarg@halignR{#1}%
+ }
+\def\getarg@halignR#1#2{%
+ \hbox{\beginR\vbox{\halign#1{#2}}\endR}%
+ }
+\def\halignL#1#{%
+ \getarg@halignL{#1}%
+ }
+\def\getarg@halignL#1#2{%
+ \hbox{\beginL\vbox{\halign#1{#2}}\endL}%
+ }
\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
\def\endLTR{\par}
\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
@@ -58,8 +93,8 @@
\let\setRL=\setRTL
\let\setLR=\setLTR
\let\unsetRL=\setLTR
-\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
-\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
+\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\g@addto@macro\document{\autofootnoterule}}
+\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\g@addto@macro\document{\autofootnoterule}}
\def\rcases#1{\left.\vcenter{\normalbaselines\m@th
\ialign{$##\hfil$&\quad{##}\hfil\crcr#1\crcr}}\,\right\}}
\def\SepMark#1{\gdef\@SepMark{\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
@@ -253,6 +288,19 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@minipagetrue
\everypar{\@minipagefalse\everypar{}\if@RTL\beginR\else\beginL\fi}%
}
+\def\endminipage{%
+ \par
+ \unskip
+ \ifvoid\@mpfootins\else
+ \vskip\skip\@mpfootins
+ \normalcolor
+ \footnoterule
+ \unvbox\@mpfootins
+ \fi
+ \@minipagefalse %% added 24 May 89
+ \color@endgroup
+ \egroup
+ \expandafter\@iiiparbox\@mpargs{\leavevmode\unvbox\@tempboxa}}
\def\@arrayparboxrestore{%
\let\if@nobreak\iffalse
\let\if@noskipsec\iffalse
@@ -428,23 +476,31 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@ifpackageloaded{tabulary}{\input{tabulary-xetex-bidi.def}}{}
\@ifpackageloaded{tocstyle}{\input{tocstyle-xetex-bidi.def}}{}
\@ifclassloaded{article}{\input{article-xetex-bidi.def}}{}
+\@ifclassloaded{extarticle}{\input{extarticle-xetex-bidi.def}}{}
+\@ifclassloaded{artikel1}{\input{artikel1-xetex-bidi.def}}{}
+\@ifclassloaded{artikel2}{\input{artikel2-xetex-bidi.def}}{}
+\@ifclassloaded{artikel3}{\input{artikel3-xetex-bidi.def}}{}
\@ifclassloaded{amsart}{\input{amsart-xetex-bidi.def}}{}
\@ifclassloaded{letter}{\input{letter-xetex-bidi.def}}{}
+\@ifclassloaded{scrlettr}{\input{scrlettr-xetex-bidi.def}}{}
+\@ifclassloaded{extletter}{\input{extletter-xetex-bidi.def}}{}
\@ifclassloaded{memoir}{\input{memoir-xetex-bidi.def}}{}
\@ifclassloaded{refrep}{\input{refrep-xetex-bidi.def}}{}
+\@ifclassloaded{extreport}{\input{extreport-xetex-bidi.def}}{}
\@ifclassloaded{report}{\@ifpackageloaded{flowfram}{}{\input{report-xetex-bidi.def}}}{}
+\@ifclassloaded{rapport1}{\input{rapport1-xetex-bidi.def}}{}
\@ifclassloaded{rapport3}{\input{rapport3-xetex-bidi.def}}{}
\@ifclassloaded{scrartcl}{\input{scrartcl-xetex-bidi.def}}{}
\@ifclassloaded{scrbook}{\input{scrbook-xetex-bidi.def}}{}
\@ifclassloaded{scrreprt}{\input{scrreprt-xetex-bidi.def}}{}
\@ifclassloaded{amsbook}{\input{amsbook-xetex-bidi.def}}{}
\@ifclassloaded{extbook}{\input{extbook-xetex-bidi.def}}{}
+\@ifclassloaded{boek}{\input{boek-xetex-bidi.def}}{}
+\@ifclassloaded{boek3}{\input{boek3-xetex-bidi.def}}{}
\@ifclassloaded{book}{\@ifpackageloaded{flowfram}{}{\input{book-xetex-bidi.def}}}{}
\@ifclassloaded{bookest}{\input{bookest-xetex-bidi.def}}{}
\@ifpackageloaded{tocbibind}{\@ifclassloaded{memoir}{}{\input{tocbibind-xetex-bidi.def}}}{}
\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xetex-bidi.def}}}{}
-
-
%%
%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%