diff options
author | Karl Berry <karl@freefriends.org> | 2011-09-18 22:42:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-09-18 22:42:47 +0000 |
commit | 11934869cc8f4c169418a680ba83ae93991d1c1b (patch) | |
tree | c8fb303d1d72abee0e3c17c62cb7d33a487f51bf /Master/texmf-dist/tex/latex/bidi/bidi.sty | |
parent | c3ed4e03e9ea716aafea65c70f9db17984fcf3a9 (diff) |
bidi (18sep11)
git-svn-id: svn://tug.org/texlive/trunk@24007 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/bidi.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/bidi.sty | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty index cd89cef7d85..3117bbaa361 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–2011 VAFA KHALIGHI %% %% License information appended. %% %% \NeedsTeXFormat{LaTeX2e} -\def\bididate{2011/09/16} -\def\bidiversion{v1.2.9} +\def\bididate{2011/10/01} +\def\bidiversion{v1.3.0} \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–2011 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} @@ -34,29 +34,34 @@ Location on CTAN: /macros/latex/contrib/bidi} \def\@definitionfileextension{def} \def\@iftagsloaded{\@ifl@aded\@tagsextension} \def\@ifdefinitionfileloaded{\@ifl@aded\@definitionfileextension} -\newif\if@RTLmain -\newif\if@RTL +\def\eqnewif#1#2{% + \count@\escapechar \escapechar\m@ne + \let#1\iffalse + \let#2\iffalse + \eq@if#1#2\iftrue + \eq@if#1#2\iffalse + \escapechar\count@} +\def\eq@if#1#2#3{% + \expandafter\def\csname\expandafter\@gobbletwo\string#1% + \expandafter\@gobbletwo\string#3\endcsname + {\let#1#3 + \let#2#3} + \expandafter\def\csname\expandafter\@gobbletwo\string#2% + \expandafter\@gobbletwo\string#3\endcsname + {\let#2#3 + \let#1#3} +} +\eqnewif{\if@RTLmain}{\if@rlmain} +\eqnewif{\if@RTL}{\if@rl} \newif\if@RTLmaths \newif\if@Latin -\newif\if@RTLtab +\eqnewif{\if@RTLtab}{\if@tab@rl} \newif\if@RTLmarginpar \newif\if@LTRmarginpar \newif\if@LTRbibitems \newif\if@RTLbibitems \newif\if@sentdir -\newif\if@RTL@footnote -\let\if@rlmain=\if@RTLmain -\let\@rlmaintrue=\@RTLmaintrue -\let\@rlmainfalse=\@RTLmainfalse -\let\if@rl=\if@RTL -\let\@rltrue=\@RTLtrue -\let\@rlfalse=\@RTLfalse -\let\if@rl@footnote=\if@RTL@footnote -\let\@rl@footnotetrue=\@RTL@footnotetrue -\let\@rl@footnotefalse=\@RTL@footnotefalse -\let\if@tab@rl=\if@RTLtab -\let\@tab@rltrue=\@RTLtabtrue -\let\@tab@rlfalse=\@RTLtabfalse +\eqnewif{\if@RTL@footnote}{\if@rl@footnote} \@RTLmainfalse \AtBeginDocument{% \if@RTLmain\else @@ -84,14 +89,14 @@ Location on CTAN: /macros/latex/contrib/bidi} \input{loadingorder-bidi.def} \ProcessOptions %% -%% Copyright © 2009–2011 Vafa Khalighi <vafaklg@gmail.com> +%% Copyright © 2009–2011 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. %% %% %% |