summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-20 01:00:52 +0000
committerKarl Berry <karl@freefriends.org>2011-04-20 01:00:52 +0000
commitba0b4cfa3584b5939759b110d270d5180b01232c (patch)
treea6177c259f736f2fb5a4661bb998c526facbbb5c /Master/texmf-dist/source
parent712090dc284290d0ff2fa3221056a7663af9c871 (diff)
bidi (18apr11)
git-svn-id: svn://tug.org/texlive/trunk@22125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.dtx114
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.ins5
2 files changed, 104 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.dtx b/Master/texmf-dist/source/latex/bidi/bidi.dtx
index 789db2792ba..e5570e1fd26 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
-v1.1.6
+v1.1.7
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX.
@@ -18,7 +18,7 @@ http://iranpoliticsclub.net/culture-language/PIY/images/Cyrus%20The%20Great%20fa
___________________
Vafa Khalighi
-vafakhlgh@gmail.com
+vafa018@gmail.com
Copyright © 2007–2011
It may be distributed and/or modified under the LaTeX Project Public License,
@@ -46,7 +46,7 @@ by Vafa Khalighi.
\endpreamble
\postamble
-Copyright © 2009–2011 Vafa Khalighi <vafakhlgh@gmail.com>
+Copyright © 2009–2011 Vafa Khalighi <vafa018@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
@@ -113,6 +113,7 @@ by Vafa Khalighi.
\generate{\file{memoir-xetex-bidi.def}{\from{\jobname.dtx}{memoir-xetex-bidi.def}}}
\generate{\file{minitoc-xetex-bidi.def}{\from{\jobname.dtx}{minitoc-xetex-bidi.def}}}
\generate{\file{multicol-xetex-bidi.def}{\from{\jobname.dtx}{multicol-xetex-bidi.def}}}
+\generate{\file{multienum-xetex-bidi.def}{\from{\jobname.dtx}{multienum-xetex-bidi.def}}}
\generate{\file{pdfpages-xetex-bidi.def}{\from{\jobname.dtx}{pdfpages-xetex-bidi.def}}}
\generate{\file{pgf-xetex-bidi.def}{\from{\jobname.dtx}{pgf-xetex-bidi.def}}}
\generate{\file{plain-luatex-bidi.def}{\from{\jobname.dtx}{plain-luatex-bidi.def}}}
@@ -221,10 +222,10 @@ by Vafa Khalighi.
% \GetFileInfo{\jobname.sty}
% \CheckSum{0}
% \makeatletter
-% \changes{v1.1.6}{2011/03/21}{Update the documentation.}
+% \changes{v1.1.7}{2011/03/21}{Update the documentation.}
% \title{The \textsf{bidi} package\\ \href{http://bitbucket.org/vafa/bidi}{\texttt{http://bitbucket.org/vafa/bidi}}}
-% \author{\textsc{Vafa Khalighi}\\ \href{mailto:vafakhlgh@gmail.com}{\texttt{vafakhlgh@gmail.com}}}
-% \date{\today \qquad v1.1.6}
+% \author{\textsc{Vafa Khalighi}\\ \href{mailto:vafa018@gmail.com}{\texttt{vafa018@gmail.com}}}
+% \date{\today \qquad v1.1.7}
%
% \maketitle
%\section{Dedication}
@@ -255,7 +256,7 @@ by Vafa Khalighi.
%in plain TeX and LaTeX. The package includes adaptations for use
%with many other commonly-used packages.
%Copyright (c) 2009-2011 Vafa Khalighi
-%v1.1.6, <commit 145>, 2011/03/21
+%v1.1.7, <commit 150>, 2011/03/21
%License: LaTeX Project Public License, version 1.3c or higher (your choice)
%Home: http://bitbucket.org/vafa/bidi
%Location on CTAN: /macros/latex/contrib/bidi
@@ -636,7 +637,7 @@ by Vafa Khalighi.
%\subsection{Equation Numbers}
%For \texttt{reqno}, equation numbers are on the right hand side and for \texttt{leqno}, equation numbers are on the left hand side, independent on the current mode.
%\section{Support For Various Packages and Classes}
-%The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{dblfnote} \textsf{draftwatermark}, \textsf{empheq}, \textsf{fancyhdr}, \textsf{float}, \textsf{flowfram}, \textsf{framed}, \textsf{graphicx}, \textsf{hyperref}, \textsf{listings}, \textsf{minitoc}, \textsf{multicol}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{quotchap}, \textsf{ragged2e}, \textsf{stabular}, \textsf{subfig}, \textsf{subfigure}, \textsf{supertabular}, \textsf{xtab}, \textsf{tabls}, \textsf{tabulary}, \textsf{PGF \&\ TIKZ}, \textsf{tocbibind}, \textsf{tocloft}, \textsf{tocstyle}, \textsf{wrapfig}, \textsf{xcolor}, \textsf{xltxtra} packages, \textsf{amsart}, \textsf{amsbook}, \textsf{artikel1}, \textsf{artikel2}, \textsf{artikel3}, \textsf{extarticle}, \textsf{standrad article}, \textsf{boek}, \textsf{boek3}, \textsf{standard book}, \textsf{bookest}, \textsf{extbook}, \textsf{extletter}, \textsf{scrlettr},\textsf{standard letter}, \textsf{memoir}, \textsf{extreport}, \textsf{rapport1}, \textsf{rapport3}, \textsf{refrep}, \textsf{standard report}, \textsf{scartcl}, \textsf{scrbook}, \textsf{scrreprt} classes and any other packages and classes that relies on these packages and classes. This means, you can use all these packages and classes in addition to other packages and classes that rely on these packages and classes and use their functionality fully for your bidirectional documents.
+%The \textsf{bidi} package supports \textsf{amsmath}, \textsf{amsthm}, \textsf{array}, \textsf{arydshln}, \textsf{breqn}, \textsf{caption}, \textsf{color}, \textsf{colortbl}, \textsf{dblfnote} \textsf{draftwatermark}, \textsf{empheq}, \textsf{fancyhdr}, \textsf{float}, \textsf{flowfram}, \textsf{framed}, \textsf{graphicx}, \textsf{hyperref}, \textsf{listings}, \textsf{minitoc}, \textsf{multicol}, \textsf{multienum}, \textsf{pdfpages}, \textsf{pstricks}, \textsf{quotchap}, \textsf{ragged2e}, \textsf{stabular}, \textsf{subfig}, \textsf{subfigure}, \textsf{supertabular}, \textsf{xtab}, \textsf{tabls}, \textsf{tabulary}, \textsf{PGF \&\ TIKZ}, \textsf{tocbibind}, \textsf{tocloft}, \textsf{tocstyle}, \textsf{wrapfig}, \textsf{xcolor}, \textsf{xltxtra} packages, \textsf{amsart}, \textsf{amsbook}, \textsf{artikel1}, \textsf{artikel2}, \textsf{artikel3}, \textsf{extarticle}, \textsf{standrad article}, \textsf{boek}, \textsf{boek3}, \textsf{standard book}, \textsf{bookest}, \textsf{extbook}, \textsf{extletter}, \textsf{scrlettr},\textsf{standard letter}, \textsf{memoir}, \textsf{extreport}, \textsf{rapport1}, \textsf{rapport3}, \textsf{refrep}, \textsf{standard report}, \textsf{scartcl}, \textsf{scrbook}, \textsf{scrreprt} classes and any other packages and classes that relies on these packages and classes. This means, you can use all these packages and classes in addition to other packages and classes that rely on these packages and classes and use their functionality fully for your bidirectional documents.
%
%We now give some details that you should know about the supported packages or classes.
%\subsection{Color}
@@ -1060,7 +1061,7 @@ by Vafa Khalighi.
\def\tagform@#1{\maketag@@@{\if@RTL\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if@RTL\endR\fi}}
\renewcommand{\eqref}[1]{\beginL\textup{\tagform@{\ref{#1}}}\endL}
\let\@@text=\text
-\def\text#1{\@@text{\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
+\def\text#1{\@@text{\if@Latin\else\beginR\fi#1\if@Latin\else\endR\fi}}
\DeclareRobustCommand{\[}{\begin{equation*}}
\DeclareRobustCommand{\]}{\end{equation*}}
% \end{macrocode}
@@ -1135,6 +1136,9 @@ by Vafa Khalighi.
\let\\\@arraycr \let\tabularnewline\\\let\par\@empty \if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi\@preamble}
\def\@tabarray{\@ifnextchar[{\@array}{\@array[c]}}
\def\endarray{\crcr \egroup\if@RTLtab\egroup\endR\egroup\fi \egroup \@arrayright \gdef\@preamble{}}
+\def\array{\col@sep\arraycolsep
+ \def\d@llarbegin{$}\let\d@llarend\d@llarbegin\gdef\@halignto{}%
+ \@RTLtabfalse\@tabarray}
% \end{macrocode}
% \iffalse
%</array-xetex-bidi.def>
@@ -2217,8 +2221,8 @@ by Vafa Khalighi.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\def\bididate{2011/03/21}
-\def\bidiversion{v1.1.6}
-\def\bidicommit{commit 145}
+\def\bidiversion{v1.1.7}
+\def\bidicommit{commit 150}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space <\bidicommit>
Bidirectional typesetting in plain TeX and LaTeX]
\edef\bidiinfo{%
@@ -2302,7 +2306,7 @@ Location on CTAN: /macros/latex/contrib/bidi}
% \begin{macrocode}
\def\bididate{2011/03/21}
\def\bidiversion{v0.1}
-\def\bidicommit{commit 145}
+\def\bidicommit{commit 150}
\catcode`@=11
\edef\bidiinfo{%
bidi package (Support for bidirectional typesetting in plain TeX and LaTeX)^^J
@@ -7653,7 +7657,7 @@ Location on CTAN: /macros/latex/contrib/bidi}
%\fi
% \subsection{\textsf{loadingorder-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{loadingorder-bidi.def}[2010/07/25 v0.5 making sure that bidi is the last package loaded]
+\ProvidesFile{loadingorder-bidi.def}[2011/04/16 v0.6 making sure that bidi is the last package loaded]
\newcommand\bidi@isloaded[2][]{
\expandafter\ifx\csname if@bidi@#2loaded@\endcsname\relax
\expandafter\newif\csname if@bidi@#2loaded@\endcsname
@@ -7697,6 +7701,7 @@ Location on CTAN: /macros/latex/contrib/bidi}
\bidi@isloaded{longtable}
\bidi@isloaded{arydshln}
\bidi@isloaded{multicol}
+\bidi@isloaded{multienum}
\bidi@isloaded{minitoc}
\bidi@isloaded{ragged2e}
\bidi@isloaded{tabls}
@@ -7816,6 +7821,9 @@ Location on CTAN: /macros/latex/contrib/bidi}
\if@bidi@multicolloaded@\else
\bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multicol after bidi package. Please load package multicol before bidi package, and then try to run xelatex on your document again}{}]{multicol}
\fi%
+ \if@bidi@multienumloaded@\else
+ \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package multienum after bidi package. Please load package multienum before bidi package, and then try to run xelatex on your document again}{}]{multienum}
+ \fi%
\if@bidi@minitocloaded@\else
\bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package minitoc after bidi package. Please load package minitoc before bidi package, and then try to run xelatex on your document again}{}]{minitoc}
\fi%
@@ -8236,6 +8244,80 @@ Location on CTAN: /macros/latex/contrib/bidi}
% \end{macrocode}
% \iffalse
%</multicol-xetex-bidi.def>
+%<*multienum-xetex-bidi.def>
+%\fi
+% \subsection{\textsf{multienum-xetex-bidi.def}}
+% \begin{macrocode}
+\ProvidesFile{multienum-xetex-bidi.def}[2011/04/16 v0.1 bidi adaptations for multienum package for XeTeX engine]
+\renewcommand{\itemx}[1]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
+\parbox[t]{\remainx}{\bidi@raggedright #1}\par}%\smallskip
+\renewcommand{\itemxx}[2]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.5\remainxx}{\bidi@raggedright #1}\hfill\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.5\remainxx}{\bidi@raggedright #2}\smallskip}
+\renewcommand{\itemxxx}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
+\parbox[t]{.3333\remainxxx}{\bidi@raggedright #1}\hfill\parbox[t]%
+{\labelwidth}{\hfill {\labelname}}\hskip\labelsep%
+\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #2}\hfill\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep%
+\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #3}\par}%\smallskip
+\renewcommand{\itemxxxx}[4]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #4}\smallskip}
+\renewcommand{\itemxxxxx}[5]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #3}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #4}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.2\remainxxxxx}{\bidi@raggedright #5}\smallskip}
+\renewcommand{\itemxox}[2]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxox}{\bidi@raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #2}\smallskip}
+\renewcommand{\itemxxo}[2]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.3333\remainxxx}{\bidi@raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxox}{\bidi@raggedright #2}\smallskip}
+\renewcommand{\itemxoxx}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxoxx}{\bidi@raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\smallskip}
+\renewcommand{\itemxxox}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxoxx}{\bidi@raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{0.25\remainxxxx}{\bidi@raggedright #3}\smallskip}
+\renewcommand{\itemxxxo}[3]{\parbox[t]%
+{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\bidi@raggedright #1}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{.25\remainxxxx}{\bidi@raggedright #2}\hfill%
+\parbox[t]{\labelwidth}{\hfill{\labelname}}\hskip\labelsep
+\parbox[t]{\remainxoxx}{\bidi@raggedright #3}\smallskip}
+% \end{macrocode}
+% \iffalse
+%</multienum-xetex-bidi.def>
%<*pdfpages-xetex-bidi.def>
%\fi
% \subsection{\textsf{pdfpages-xetex-bidi.def}}
@@ -11740,6 +11822,8 @@ Location on CTAN: /macros/latex/contrib/bidi}
\parindent\z@\parfillskip\z@skip}
\renewcommand\raggedleft{\@@raggedleft}
\renewcommand\raggedright{\@@raggedright}
+\newcommand{\bidi@raggedright}{\if@RTL\raggedleft\else\raggedright\fi}
+\newcommand{\bidi@raggedleft}{\if@RTL\raggedright\else\raggedleft\fi}
\def\centerline#1{%
\if@RTL\@@line{\hss\beginR#1\endR\hss}
\else\@@line{\hss#1\hss}\fi}
@@ -11796,6 +11880,9 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\ifhmode \@preamerr\z@ \@@par\fi
\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
\@preamble}
+\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
+ \let\@classiv\@arrayclassiv
+ \let\\\@arraycr\let\@halignto\@empty\@RTLtabfalse\@tabarray}
\def\@testpach#1{\@chclass \ifnum \@lastchclass=\tw@ 4 \else
\ifnum \@lastchclass=3 5 \else
\z@ \if #1c\@chnum \z@ \else
@@ -12098,6 +12185,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@ifpackageloaded{longtable}{\input{longtable-xetex-bidi.def}}{}
\@ifpackageloaded{arydshln}{\input{arydshln-xetex-bidi.def}}{}
\@ifpackageloaded{multicol}{\input{multicol-xetex-bidi.def}}{}
+\@ifpackageloaded{multienum}{\input{multienum-xetex-bidi.def}}{}
\@ifpackageloaded{minitoc}{\input{minitoc-xetex-bidi.def}}{}
\@ifpackageloaded{quotchap}{\input{quotchap-xetex-bidi.def}}{}
\@ifpackageloaded{ragged2e}{\input{ragged2e-xetex-bidi.def}}{}
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.ins b/Master/texmf-dist/source/latex/bidi/bidi.ins
index 41a4db6d3ff..2dbe58f9feb 100644
--- a/Master/texmf-dist/source/latex/bidi/bidi.ins
+++ b/Master/texmf-dist/source/latex/bidi/bidi.ins
@@ -24,7 +24,7 @@
\endpreamble
\postamble
-Copyright © 2009–2011 Vafa Khalighi <vafakhlgh@gmail.com>
+Copyright © 2009–2011 Vafa Khalighi <vafa018@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
@@ -89,6 +89,7 @@ by Vafa Khalighi.
\generate{\file{memoir-xetex-bidi.def}{\from{\jobname.dtx}{memoir-xetex-bidi.def}}}
\generate{\file{minitoc-xetex-bidi.def}{\from{\jobname.dtx}{minitoc-xetex-bidi.def}}}
\generate{\file{multicol-xetex-bidi.def}{\from{\jobname.dtx}{multicol-xetex-bidi.def}}}
+\generate{\file{multienum-xetex-bidi.def}{\from{\jobname.dtx}{multienum-xetex-bidi.def}}}
\generate{\file{pdfpages-xetex-bidi.def}{\from{\jobname.dtx}{pdfpages-xetex-bidi.def}}}
\generate{\file{pgf-xetex-bidi.def}{\from{\jobname.dtx}{pgf-xetex-bidi.def}}}
\generate{\file{plain-luatex-bidi.def}{\from{\jobname.dtx}{plain-luatex-bidi.def}}}
@@ -120,7 +121,7 @@ by Vafa Khalighi.
\generate{\file{xltxtra-xetex-bidi.def}{\from{\jobname.dtx}{xltxtra-xetex-bidi.def}}}
\endbatchfile
%%
-%% Copyright © 2009–2011 Vafa Khalighi <vafakhlgh@gmail.com>
+%% Copyright © 2009–2011 Vafa Khalighi <vafa018@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