summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-18 22:27:04 +0000
committerKarl Berry <karl@freefriends.org>2011-10-18 22:27:04 +0000
commit86a5f1787b71ce0d2d78ec9cc32fe01f4b97d3ee (patch)
tree06373cfb6df563df4195f8247ccb0cbaed8cd0d1 /Master/texmf-dist/tex/latex/bidi
parent9570de045eef234423490cbec0cf6b72cf808d4e (diff)
bidi (18oct11)
git-svn-id: svn://tug.org/texlive/trunk@24316 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi.sty2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi.tex1
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xetex-bidi.def8
3 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty
index e62202863ed..6e0790b63d3 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidi.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidi.sty
@@ -14,7 +14,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\def\bididate{2012/01/01}
-\def\bidiversion{v1.3.9}
+\def\bidiversion{v1.4.0}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\bidiinfo{%
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.tex b/Master/texmf-dist/tex/latex/bidi/bidi.tex
index 1a353fe43d4..b9b688f4782 100644
--- a/Master/texmf-dist/tex/latex/bidi/bidi.tex
+++ b/Master/texmf-dist/tex/latex/bidi/bidi.tex
@@ -15,6 +15,7 @@
\def\bididate{2012/01/01}
\def\bidiversion{v0.1}
\catcode`@=11
+\let \protect \relax
\newlinechar`\^^J
\edef\bidiinfo{%
bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
diff --git a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
index eaae1938649..e1b76cf708a 100644
--- a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
@@ -95,10 +95,14 @@
\let\setRL=\setRTL
\let\setLR=\setLTR
\let\unsetRL=\setLTR
+\gdef\endpicture{%
+ \egroup\hss\egroup
+ \ht\@picbox\@picht\dp\@picbox\z@
+ \ifmmode\else\LTR\beginL\fi%
+ \mbox{\box\@picbox}%
+ \ifmmode\else\endL\endLTR\fi}
\@ifpackageloaded{mathtools}{\RequirePackage{graphicx}}{}
\@ifpackageloaded{sidecap}{\RequirePackage{ragged2e}}{}
-\bidi@BeforeBeginEnvironment{picture}{\ifmmode\else\LTR\beginL\fi}
-\bidi@AfterEndEnvironment{picture}{\ifmmode\else\endL\endLTR\fi}
\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\g@addto@macro\document{\autofootnoterule}}
\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\g@addto@macro\document{\autofootnoterule}}
\def\RTLcases#1{\left.\vcenter{\normalbaselines\m@th