summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/bidi/bidi.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/bidi/bidi.dtx')
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.dtx289
1 files changed, 165 insertions, 124 deletions
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.dtx b/Master/texmf-dist/source/latex/bidi/bidi.dtx
index 52fac4720ac..17954754e9e 100644
--- a/Master/texmf-dist/source/latex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/latex/bidi/bidi.dtx
@@ -5,7 +5,7 @@
%<*readme>
___________________
The bidi package
-v12.4
+v12.5
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX.
@@ -24,7 +24,7 @@ a minimal working examples showing the issue, and always choose the appropriate
label for your query (i.e. if you are reporting any bugs, choose `bug' label).
-Current version release date: 2013/04/16
+Current version release date: 2013/04/10
___________________
Persian TeX Group
@@ -39,6 +39,14 @@ This work is “maintained” (as per LPPL maintenance status)
by Persian TeX Group.
%</readme>
%<*changelog>
+2013/04/10 version 12.5 Persian TeX Group
+ * Version 12.5 released.
+ * Redefinition of `\endpicture' removed from `xetex-bidi.def'.
+ * Updated `crop-xetex-bidi.def'.
+ * Fixed the issue of `showframe' package when the main direction is RTL.
+ * `ftnright' package no longer loaded by `bidi' package; instead in two-columns
+ documents, only `\textwidthfootnoterule' works.
+
2013/04/16 version 12.4 Persian TeX Group
* Version 12.4 released.
* `midfloat' package supported.
@@ -159,6 +167,7 @@ by Persian TeX Group.
\generate{\file{cvthemebidiclassic.sty}{\from{\jobname.dtx}{cvthemebidiclassic.sty}}}
\generate{\file{dblfnote-xetex-bidi.def}{\from{\jobname.dtx}{dblfnote-xetex-bidi.def}}}
\generate{\file{draftwatermark-xetex-bidi.def}{\from{\jobname.dtx}{draftwatermark-xetex-bidi.def}}}
+\generate{\file{eso-pic-xetex-bidi.def}{\from{\jobname.dtx}{eso-pic-xetex-bidi.def}}}
\generate{\file{empheq-xetex-bidi.def}{\from{\jobname.dtx}{empheq-xetex-bidi.def}}}
\generate{\file{extarticle-xetex-bidi.def}{\from{\jobname.dtx}{extarticle-xetex-bidi.def}}}
\generate{\file{extbook-xetex-bidi.def}{\from{\jobname.dtx}{extbook-xetex-bidi.def}}}
@@ -311,7 +320,7 @@ by Persian TeX Group.
% Support for bidirectional typesetting in plain \TeX{} and \LaTeXe}
% \author{Persian TeX Group\\
% \url{persian-tex@tug.org}}
-% \date{\today\qquad Version 12.4}
+% \date{\today\qquad Version 12.5}
%\maketitle
% \tableofcontents
%\section*{Introduction}
@@ -326,7 +335,7 @@ by Persian TeX Group.
%in plain TeX and LaTeX. The package includes adaptations for use
%with many other commonly-used packages.
%Copyright (c) 2009-2013 Persian TeX Group
-%v12.4, 2013/04/16
+%v12.5, 2013/04/10
%License: LaTeX Project Public License, version 1.3c or higher (your choice)
%Location on CTAN: /macros/latex/contrib/bidi
%\end{lstlisting}
@@ -543,6 +552,8 @@ by Persian TeX Group.
%\Lcs{RTLdblcol}\quad\Lcs{LTRdblcol}
%\end{BDef}
%If you pass the \texttt{twocolumn} option to the class file and if the main direction of the document is RTL, then you get RTL two column and if the main direction of the document is LTR, then you get LTR two column. In addition, \Lcs{RTLdblcol} allows you to have RTL two column typesetting and \Lcs{LTRdblcol} allows you to have LTR two column typesetting as the options of the class file.
+
+%Also please note that in \texttt{twocolumn} documents, the width of the \Lcs{footnoterule} will be equal to \Lcs{columnwidth} no matter which footnote-rule commands you use; indeed, in \texttt{twocolumn} documents only \Lcs{textwidthfootnoterule} is active and other footnote-rule commands will not be effective.
%\subsection{RTL cases}
%\marginpar{\Lcs{RTLcases} command was previously known as \Lcs{rcases} command but since there was a clash with \textsf{mathtools} package (mathtools defines \textsf{rcases} environment), we had to rename \Lcs{rcases} command to \Lcs{RTLcases} command.}
%\begin{BDef}
@@ -2649,8 +2660,8 @@ by Persian TeX Group.
% \subsection{\textsf{bidi.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2013/04/16}
-\def\bidiversion{v12.4}
+\def\bididate{2013/04/10}
+\def\bidiversion{v12.5}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\bidiinfo{%
@@ -2670,9 +2681,6 @@ Location on CTAN: /macros/latex/contrib/bidi}
\RequirePackage{zref-abspage}
\RequirePackage{auxhook}
\RequirePackage{ltxcmds}
-\if@twocolumn
- \RequirePackage{ftnright}
-\fi
\eqnewif{\if@RTLmain}{\if@rlmain}
\eqnewif{\if@RTL}{\if@rl}
\newif\if@RTLmaths
@@ -2721,7 +2729,7 @@ Location on CTAN: /macros/latex/contrib/bidi}
%\fi
% \subsection{\textsf{bidi.tex}}
% \begin{macrocode}
-\def\bididate{2013/04/16}
+\def\bididate{2013/04/10}
\def\bidiversion{v0.2}
\catcode`@=11
\let \protect \relax
@@ -6890,45 +6898,19 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{crop-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{crop-xetex-bidi.def}[2011/11/05 v0.1 bidi adaptations for crop package for XeTeX engine]
-\renewcommand*\CROP@@laxis{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(2,0){\line(1,0){11}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(-2,0){\line(-1,0){11}}
- \end{picture}%
- \fi%
-}
-\renewcommand*\CROP@@raxis{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(-2,0){\line(-1,0){11}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(2,0){\line(1,0){11}}
- \end{picture}%
- \fi%
-}
+\ProvidesFile{crop-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for crop package for XeTeX engine]
\renewcommand*\CROP@@ulc{%
- \if@RTLmain%
- \begin{picture}(0,0)
+ \if@RTLmain%
+ \begin{picture}(0,0)
\unitlength\p@\thinlines
- \put(30,0){\circle{10}}
- \put(30,-5){\line(0,1){10}}
- \put(35,0){\line(-1,0){30}}
- \put(0,30){\circle{10}}
- \put(5,30){\line(-1,0){10}}
+ \put(-40,0){\circle{10}}
+ \put(-30,-5){\line(0,1){10}}
+ \put(-35,0){\line(1,0){30}}
+ \put(-10,30){\circle{10}}
+ \put(-5,30){\line(1,0){10}}
\put(0,35){\line(0,-1){30}}
\end{picture}%
- \else%
+ \else%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(-30,0){\circle{10}}
@@ -6941,17 +6923,17 @@ bidi implementation of tufte title]
\fi%
}
\renewcommand*\CROP@@urc{%
- \if@RTLmain%
- \begin{picture}(0,0)
+ \if@RTLmain%
+ \begin{picture}(0,0)
\unitlength\p@\thinlines
- \put(-30,0){\circle{10}}
- \put(-30,-5){\line(0,1){10}}
- \put(-35,0){\line(1,0){30}}
- \put(0,30){\circle{10}}
- \put(5,30){\line(-1,0){10}}
+ \put(20,0){\circle{10}}
+ \put(30,-5){\line(0,1){10}}
+ \put(35,0){\line(-1,0){30}}
+ \put(-10,30){\circle{10}}
+ \put(-5,30){\line(1,0){10}}
\put(0,35){\line(0,-1){30}}
\end{picture}%
- \else%
+ \else%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(30,0){\circle{10}}
@@ -6964,17 +6946,17 @@ bidi implementation of tufte title]
\fi%
}
\renewcommand*\CROP@@llc{%
- \if@RTLmain%
- \begin{picture}(0,0)
+ \if@RTLmain%
+ \begin{picture}(0,0)
\unitlength\p@\thinlines
- \put(30,0){\circle{10}}
- \put(30,-5){\line(0,1){10}}
- \put(35,0){\line(-1,0){30}}
- \put(0,-30){\circle{10}}
- \put(5,-30){\line(-1,0){10}}
+ \put(-40,0){\circle{10}}
+ \put(-30,-5){\line(0,1){10}}
+ \put(-35,0){\line(1,0){30}}
+ \put(-10,-30){\circle{10}}
+ \put(-5,-30){\line(1,0){10}}
\put(0,-35){\line(0,1){30}}
\end{picture}%
- \else%
+ \else%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(-30,0){\circle{10}}
@@ -6988,13 +6970,13 @@ bidi implementation of tufte title]
}
\renewcommand*\CROP@@lrc{%
\if@RTLmain%
- \begin{picture}(0,0)
+ \begin{picture}(0,0)
\unitlength\p@\thinlines
- \put(-30,0){\circle{10}}
- \put(-30,-5){\line(0,1){10}}
- \put(-35,0){\line(1,0){30}}
- \put(0,-30){\circle{10}}
- \put(5,-30){\line(-1,0){10}}
+ \put(20,0){\circle{10}}
+ \put(30,-5){\line(0,1){10}}
+ \put(35,0){\line(-1,0){30}}
+ \put(-10,-30){\circle{10}}
+ \put(-5,-30){\line(1,0){10}}
\put(0,-35){\line(0,1){30}}
\end{picture}%
\else%
@@ -7009,34 +6991,9 @@ bidi implementation of tufte title]
\end{picture}%
\fi%
}
-\renewcommand*\CROP@@frame{%
- \if@RTLmain%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(0,0){\line(-1,0){\strip@pt\paperwidth}}
- \put(0,0){\line(0,-1){\strip@pt\paperheight}}
- \put(-\strip@pt\paperwidth,0){\line(0,-1){\strip@pt\paperheight}}
- \put(0,-\strip@pt\paperheight){\line(-1,0){\strip@pt\paperwidth}}
- \end{picture}%
- \else%
- \begin{picture}(0,0)
- \unitlength\p@\thinlines
- \put(0,0){\line(1,0){\strip@pt\paperwidth}}
- \put(0,0){\line(0,-1){\strip@pt\paperheight}}
- \put(\strip@pt\paperwidth,0){\line(0,-1){\strip@pt\paperheight}}
- \put(0,-\strip@pt\paperheight){\line(1,0){\strip@pt\paperwidth}}
- \end{picture}%
- \fi%
-}
-\@ifpackagewith{crop}{axes}{%
-\CROP@execopt{axes}%
-}{}
\@ifpackagewith{crop}{cam}{%
\CROP@execopt{cam}%
}{}
-\@ifpackagewith{crop}{frame}{%
-\CROP@execopt{frame}%
-}{}
% \end{macrocode}
% \iffalse
%</crop-xetex-bidi.def>
@@ -7089,13 +7046,11 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{cuted-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{cuted-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for cuted package for XeTeX engine]
+\ProvidesFile{cuted-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for cuted package for XeTeX engine]
\def\RTL@outputdblcol{%
\if@firstcolumn \global\@firstcolumnfalse
\global\setbox\@leftcolumn \box\@outputbox
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
+ \else
\global\@firstcolumntrue
\setbox\@outputbox \vbox {\hbox to\textwidth {%
\hskip \columnwidth
@@ -7131,9 +7086,7 @@ bidi implementation of tufte title]
\if@firstcolumn
\global \@firstcolumnfalse
\global \setbox\@leftcolumn \box\@outputbox
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
+ \else
\global\@firstcolumntrue
\setbox\@outputbox \vbox {%
\hb@xt@\textwidth {%
@@ -7865,6 +7818,52 @@ bidi implementation of tufte title]
% \end{macrocode}
% \iffalse
%</draftwatermark-xetex-bidi.def>
+%<*eso-pic-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{eso-pic-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{eso-pic-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for eso-pic package for XeTeX engine]
+\renewcommand\AtPageLowerLeft[1]{\AtPageUpperLeft{%
+ \put(\LenToUnit{\if@RTLmain\paperwidth\else0pt\fi},\LenToUnit{-\paperheight}){#1}}}
+
+\ESO@isMEMOIR{%
+ \renewcommand\AtTextUpperLeft[1]{%
+ \begingroup
+ \ifodd\c@page
+ \@tempdima=\spinemargin
+ \else
+ \@tempdima=\paperwidth
+ \advance\@tempdima-\textwidth
+ \advance\@tempdima-\spinemargin
+ \fi
+ \@tempdimb=-\uppermargin
+ \AtPageUpperLeft{%
+ \put(\LenToUnit{\if@RTLmain-\fi\@tempdima},\LenToUnit{\@tempdimb}){#1}%
+ }%
+ \endgroup
+ }
+}{%
+ \renewcommand\AtTextUpperLeft[1]{%
+ \begingroup
+ \@tempdima=1in\relax
+ \ifodd\c@page
+ \advance\@tempdima\oddsidemargin
+ \else
+ \advance\@tempdima\evensidemargin
+ \fi
+ \@tempdimb=-1in\relax
+ \advance\@tempdimb-\topmargin
+ \advance\@tempdimb-\headheight
+ \advance\@tempdimb-\headsep
+ \AtPageUpperLeft{%
+ \put(\LenToUnit{\if@RTLmain-\fi\@tempdima},\LenToUnit{\@tempdimb}){#1}%
+ }%
+ \endgroup
+ }
+}
+% \end{macrocode}
+% \iffalse
+%</eso-pic-xetex-bidi.def>
%<*empheq-xetex-bidi.def>
%\fi
% \subsection{\textsf{empheq-xetex-bidi.def}}
@@ -10451,7 +10450,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{fix2col-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{fix2col-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for fix2col package for XeTeX engine]
+\ProvidesFile{fix2col-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for fix2col package for XeTeX engine]
\def\RTL@outputdblcol{%
\if@firstcolumn
\global\@firstcolumnfalse
@@ -10470,9 +10469,7 @@ bidi implementation of tufte title]
\let\firstmark\@firstcolfirstmark
\let\topmark\@firstcoltopmark}%
\fi
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
-\else \preparefootins \global\@firstcolumntrue
+\else \global\@firstcolumntrue
\setbox\@outputbox \vbox {\hbox to\textwidth {%
\hskip \columnwidth
\hfil \vrule width\columnseprule \hfil
@@ -10504,9 +10501,7 @@ bidi implementation of tufte title]
\let\firstmark\@firstcolfirstmark
\let\topmark\@firstcoltopmark}%
\fi
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
+ \else
\global\@firstcolumntrue
\setbox\@outputbox\vbox{%
\hb@xt@\textwidth{%
@@ -11245,7 +11240,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{ftnright-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{ftnright-xetex-bidi.def}[2013/04/08 v0.2 bidi adaptations for ftnright package for XeTeX engine]
+\ProvidesFile{ftnright-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for ftnright package for XeTeX engine]
\def\LTR@outputdblcol{\if@firstcolumn
\global\@firstcolumnfalse
\global\setbox\@leftcolumn\box\@outputbox
@@ -11290,9 +11285,11 @@ bidi implementation of tufte title]
{\@outputpage\@startdblcolumn}%
\endgroup
\fi}
-\let\left@footnoterule\@empty
-\let\right@footnoterule\@empty
-\let\textwidth@footnoterule\@empty
+\let\leftfootnoterule\@empty
+\let\rightfootnoterule\@empty
+\let\textwidthfootnoterule\@empty
+\let\autofootnoterule\@empty
+\let\footnoterule\@empty
\long\def\@makefntext#1{\parindent 1em
\noindent\hbox to 2em{}%
\llap{\@thefnmark\hbox{.}\,\,}#1}
@@ -12760,7 +12757,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{midfloat-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{midfloat-xetex-bidi.def}[2013/04/16 v0.1 bidi adaptations for midfloat package for XeTeX engine]
+\ProvidesFile{midfloat-xetex-bidi.def}[2013/04/10 v0.2 bidi adaptations for midfloat package for XeTeX engine]
\def\RTL@outputdblcol{%
\if@firstcolumn
\global \@firstcolumnfalse
@@ -12806,9 +12803,7 @@ bidi implementation of tufte title]
\global\advance\c@colht by-\ht\@rightcolumn
\global\@colht\c@colht
\fi
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
+ \else
\global\@firstcolumntrue
\global\setbox\@outputbox\vbox to\ht\@leftcolumn{%
\unvbox\@rightcolumn
@@ -12890,9 +12885,7 @@ bidi implementation of tufte title]
\global\advance\c@colht by-\ht\@rightcolumn
\global\@colht\c@colht
\fi
- \global\count\footins\@m
- \global\skip\footins\rcol@footinsskip
- \else \preparefootins
+ \else
\global\@firstcolumntrue
\global\setbox\@outputbox\vbox to\ht\@leftcolumn{%
\unvbox\@rightcolumn
@@ -17362,7 +17355,7 @@ to\rtside{\box\bslice\hfil}}
%\fi
% \subsection{\textsf{xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{xetex-bidi.def}[2013/04/16 v1.0.8 bidi adaptations for XeTeX engine]
+\ProvidesFile{xetex-bidi.def}[2013/04/10 v1.0.9 bidi adaptations for XeTeX engine]
\newcommand{\TeXXeTOn}{\TeXXeTstate=1 }
\newcommand{\TeXXeTOff}{\TeXXeTstate=0 }
\TeXXeTOn
@@ -17445,10 +17438,6 @@ to\rtside{\box\bslice\hfil}}
\let\setRL=\setRTL
\let\setLR=\setLTR
\let\unsetRL=\setLTR
-\gdef\endpicture{%
- \egroup\hss\egroup
- \ht\@picbox\@picht\dp\@picbox\z@
- \mbox{\beginL\box\@picbox\endL}}
\@ifpackageloaded{mathtools}{\RequirePackage{graphicx}}{}
\@ifpackageloaded{crop}{\RequirePackage{graphicx}}{}
\@ifpackageloaded{sidecap}{\RequirePackage{ragged2e}}{}
@@ -17738,6 +17727,51 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\hb@xt@\@pnumwidth{{\hfil\normalfont \normalcolor #5}}%
\par}%
\fi}
+\def\RTL@outputdblcol{%
+\if@firstcolumn \global\@firstcolumnfalse
+\global\setbox\@leftcolumn \box\@outputbox
+\else \global\@firstcolumntrue
+\setbox\@outputbox \vbox {\hbox to\textwidth {%
+\hskip \columnwidth
+\hfil \vrule width\columnseprule \hfil
+\hbox to\columnwidth {\box\@leftcolumn \hss}%
+\hskip -\textwidth
+\hbox to\columnwidth{\box\@outputbox \hss}%
+\hskip \columnsep
+\hskip \columnwidth }}%
+\@combinedblfloats \@outputpage
+\begingroup \@dblfloatplacement \@startdblcolumn
+\@whilesw\if@fcolmade \fi
+{\@outputpage \@startdblcolumn }\endgroup
+\fi}
+\def\LTR@outputdblcol{%
+ \if@firstcolumn
+ \global \@firstcolumnfalse
+ \global \setbox\@leftcolumn \box\@outputbox
+ \else
+ \global \@firstcolumntrue
+ \setbox\@outputbox \vbox {%
+ \hb@xt@\textwidth {%
+ \hb@xt@\columnwidth {%
+ \box\@leftcolumn \hss}%
+ \hfil
+ {\normalcolor\vrule \@width\columnseprule}%
+ \hfil
+ \hb@xt@\columnwidth {%
+ \box\@outputbox \hss}%
+ }%
+ }%
+ \@combinedblfloats
+ \@outputpage
+ \begingroup
+ \@dblfloatplacement
+ \@startdblcolumn
+ \@whilesw\if@fcolmade \fi
+ {\@outputpage
+ \@startdblcolumn}%
+ \endgroup
+ \fi
+}
\renewcommand{\@outputdblcol}{\if@RTLmain\RTL@outputdblcol\else\LTR@outputdblcol\fi}
\newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL@outputdblcol}}
\newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR@outputdblcol}}
@@ -17960,6 +17994,12 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\def\leqno{\ifnum\predisplaydirection<\z@ \bidi@saved@eqno \else \bidi@saved@leqno \fi}
\def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
\input{footnote-xetex-bidi.def}
+\if@twocolumn
+ \let\autofootnoterule\relax
+ \let\leftfootnoterule\relax
+ \let\rightfootnoterule\relax
+ \textwidthfootnoterule
+\fi
\if@bidi@csundef{@idxitem}{}{%
\renewcommand\@idxitem{\par\hangindent \if@RTL-\fi40\p@}%
}
@@ -17996,11 +18036,10 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@ifpackageloaded{breqn}{\input{breqn-xetex-bidi.def}}{}
\@ifpackageloaded{caption}{\input{caption-xetex-bidi.def}}{}
\@ifpackageloaded{caption3}{\input{caption3-xetex-bidi.def}}{}
-\@ifpackageloaded{crop}{\@ifclassloaded{memoir}{}{\input{crop-xetex-bidi.def}}}{}
\@ifpackageloaded{floatrow}{\input{floatrow-xetex-bidi.def}}{}
+\@ifpackageloaded{crop}{\@ifclassloaded{memoir}{}{\input{crop-xetex-bidi.def}}}{}
\@ifpackageloaded{color}{\input{color-xetex-bidi.def}}{}
\@ifpackageloaded{cutwin}{\input{cutwin-xetex-bidi.def}}{}
-\@ifpackageloaded{ftnright}{\input{ftnright-xetex-bidi.def}}{}
\@ifpackageloaded{cuted}{\input{cuted-xetex-bidi.def}}{}
\@ifpackageloaded{xcolor}{\input{xcolor-xetex-bidi.def}}{}
\@ifpackageloaded{colortbl}{\input{colortbl-xetex-bidi.def}}{}
@@ -18016,9 +18055,11 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@ifpackageloaded{ntheorem-hyper}{\input{ntheorem-hyper-xetex-bidi.def}}{}
\@ifpackageloaded{fancyhdr}{\input{fancyhdr-xetex-bidi.def}}{}
\@ifpackageloaded{fix2col}{\input{fix2col-xetex-bidi.def}}{}
+\@ifpackageloaded{ftnright}{\input{ftnright-xetex-bidi.def}}{}
\@ifpackageloaded{midfloat}{\input{midfloat-xetex-bidi.def}}{}
\@ifpackageloaded{draftwatermark}{\input{draftwatermark-xetex-bidi.def}}{}
\@ifpackageloaded{dblfnote}{\input{dblfnote-xetex-bidi.def}}{}
+\@ifpackageloaded{eso-pic}{\input{eso-pic-xetex-bidi.def}}{}
\@ifpackageloaded{empheq}{\input{empheq-xetex-bidi.def}}{}
\@ifpackageloaded{framed}{\input{framed-xetex-bidi.def}}{}
\@ifpackageloaded{pdfpages}{\input{pdfpages-xetex-bidi.def}}{}