summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi.sty32
1 files changed, 22 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
index 8ed103aea06..6c7a501de39 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
+++ b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
@@ -1,5 +1,10 @@
%%
-%% This is file `bidi.sty'.
+%% This is file `bidi.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% bidi.dtx (with options: `bidi.sty')
%%
%% ______________________________________
%% Copyright © 2009–2013 Vafa Khalighi
@@ -8,28 +13,28 @@
%%
%%
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2013/09/17}
-\def\bidiversion{v13.7}
+\def\bididate{2013/09/22}
+\def\bidiversion{v13.8}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\bidiinfo{%
-bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
+bidi package (Bidirectional typesetting in plain TeX and LaTeX, using XeTeX engine)^^J
Description: A convenient interface for typesetting bidirectional^^J
texts in plain TeX and LaTeX. The package includes adaptations for use^^J
with many other commonly-used packages.^^J
Copyright © 2009–2013 Vafa Khalighi^^J
\bidiversion, \bididate^^J
License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
-Location on CTAN: /macros/latex/contrib/bidi}
+Location on CTAN: /macros/xetex/latex/bidi}
\typeout{\bidiinfo}
\edef\bidi@everyjob{\the\everyjob}
\everyjob{\bidi@everyjob\typeout{\bidiinfo}}
\RequirePackage{iftex}
+\RequireXeTeX
\RequirePackage{biditools}
\RequirePackage{zref-abspage}
\RequirePackage{auxhook}
\RequirePackage{ltxcmds}
-\RequireXeTeX
\eqnewif{\if@RTLmain}{\if@rlmain}
\eqnewif{\if@RTL}{\if@rl}
\newif\if@RTLmaths
@@ -39,7 +44,7 @@ Location on CTAN: /macros/latex/contrib/bidi}
\newif\if@LTRmarginpar
\newif\if@LTRbibitems
\newif\if@RTLbibitems
-\newif\if@sentdir
+\newif\if@extrafootnotefeatures
\newif\if@parafootRTL
\newif\if@RTLcolumnfootnotes
\eqnewif{\if@RTL@footnote}{\if@rl@footnote}
@@ -60,11 +65,18 @@ Location on CTAN: /macros/latex/contrib/bidi}
\def\pRLE{\protect\afterassignment\moreRLE \let\n@xt= }
\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
\errmessage{Missing left brace has been substituted}\fi \bgroup}
-\input{xetex-bidi.def}
-\input{loadingorder-bidi.def}
+\input{latex-xetex-bidi.def}
+\input{loadingorder-xetex-bidi.def}
+\DeclareOption{RTLdocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
+\DeclareOption{rldocument}{\@RTLtrue\@RTL@footnotetrue\autofootnoterule}
+\DeclareOption{extrafootnotefeatures}{\@extrafootnotefeaturestrue}
\ProcessOptions
+
+\if@extrafootnotefeatures
+ \input{extrafootnotefeatures-xetex-bidi.def}
+\fi
%%
-%% Copyright © 2009–2013 Vafa Khalighi <vafakh@me.com>
+%% Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
%%
%% It may be distributed and/or modified under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of