diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/bidi.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/bidi.sty | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty index 028131bbd27..2444b8a391f 100644 --- a/Master/texmf-dist/tex/latex/bidi/bidi.sty +++ b/Master/texmf-dist/tex/latex/bidi/bidi.sty @@ -7,14 +7,14 @@ %% bidi.dtx (with options: `bidi.sty') %% %% ______________________________________ -%% Copyright © 2009–2011 VAFA KHALIGHI +%% Copyright © 2009–2012 Vafa Khalighi %% %% License information appended. %% %% \NeedsTeXFormat{LaTeX2e} -\def\bididate{2011/12/01} -\def\bidiversion{v1.3.4} +\def\bididate{2012/01/01} +\def\bidiversion{v1.3.5} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\bidiinfo{% @@ -22,7 +22,7 @@ bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^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–2011 VAFA KHALIGHI^^J +Copyright © 2009–2012 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} @@ -50,6 +50,28 @@ Location on CTAN: /macros/latex/contrib/bidi} \expandafter\@gobbletwo\string#3\endcsname {\let#2#3% \let#1#3}} +\newcommand*{\if@bidi@csdef}[1]{% + \ifcsname#1\endcsname + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi} +\newcommand{\if@bidi@def}[1]{% + \ifdefined#1% + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi} +\newcommand{\bidi@namelongdef}[1]{% + \long\expandafter\def\csname #1\endcsname} +\def\bidi@ensure@newcommand{\@star@or@long\bidi@ensure@new@command} +\def\bidi@ensure@new@command#1{% + \begingroup \escapechar\m@ne\xdef\@gtempa{{\string#1}}\endgroup + \expandafter\if@bidi@csdef\@gtempa + {\relax% + \let\@ifdefinable\@rc@ifdefinable% + \new@command#1}{\new@command#1}} +\def\bidi@ensure@newlength#1{\if@bidi@def#1{}{\newskip#1}} \eqnewif{\if@RTLmain}{\if@rlmain} \eqnewif{\if@RTL}{\if@rl} \newif\if@RTLmaths @@ -60,6 +82,8 @@ Location on CTAN: /macros/latex/contrib/bidi} \newif\if@LTRbibitems \newif\if@RTLbibitems \newif\if@sentdir +\newif\if@parafootRTL +\newif\if@RTLcolumnfootnotes \eqnewif{\if@RTL@footnote}{\if@rl@footnote} \@RTLmainfalse \AtBeginDocument{% @@ -88,14 +112,14 @@ Location on CTAN: /macros/latex/contrib/bidi} \input{loadingorder-bidi.def} \ProcessOptions %% -%% Copyright © 2009–2011 VAFA KHALIGHI <vafaklg@gmail.com> +%% Copyright © 2009–2012 Vafa Khalighi <vafaklg@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. +%% by Vafa Khalighi. %% %% %% |