diff options
author | Karl Berry <karl@freefriends.org> | 2013-05-22 23:11:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-05-22 23:11:40 +0000 |
commit | dd62e466f5d1dbca765bf38bbaeb50611345fa6a (patch) | |
tree | 552a30dd2a841b952a3741eb58df44b35f745725 /Master/texmf-dist/tex/latex | |
parent | e7d5962cb25a83a847dcd4cbb693779486262433 (diff) |
bidi (22may13)
git-svn-id: svn://tug.org/texlive/trunk@30638 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/bidi.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/bidi.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def | 77 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/newfloat-xetex-bidi.def | 66 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/rotating-xetex-bidi.def | 12 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/xetex-bidi.def | 4 |
7 files changed, 169 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty index f4d53b04b97..dafcb7d00fb 100644 --- a/Master/texmf-dist/tex/latex/bidi/bidi.sty +++ b/Master/texmf-dist/tex/latex/bidi/bidi.sty @@ -13,8 +13,8 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\def\bididate{2013/05/01} -\def\bidiversion{v13.2} +\def\bididate{2013/05/22} +\def\bidiversion{v13.3} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\bidiinfo{% diff --git a/Master/texmf-dist/tex/latex/bidi/bidi.tex b/Master/texmf-dist/tex/latex/bidi/bidi.tex index dc42bc827ce..30ccfe54fbf 100644 --- a/Master/texmf-dist/tex/latex/bidi/bidi.tex +++ b/Master/texmf-dist/tex/latex/bidi/bidi.tex @@ -12,7 +12,7 @@ %% License information appended. %% %% -\def\bididate{2013/05/01} +\def\bididate{2013/05/22} \def\bidiversion{v0.2} \catcode`@=11 \let \protect \relax diff --git a/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def new file mode 100644 index 00000000000..cc173fdb385 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bidi/cals-xetex-bidi.def @@ -0,0 +1,77 @@ +%% +%% This is file `cals-xetex-bidi.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bidi.dtx (with options: `cals-xetex-bidi.def') +%% +%% ______________________________________ +%% Copyright © 2009–2013 Persian TeX Group +%% +%% License information appended. +%% +%% +\ProvidesFile{cals-xetex-bidi.def}[2013/05/22 v0.1 bidi adaptations for cals package for XeTeX engine] +\renewcommand\cals@issue@row{% +\nointerlineskip +\setbox0=\vtop{\if@RTLtab\hboxR\else\hbox\fi to \textwidth{\hskip\leftskip \box\cals@current@cs \hskip\rightskip}}% + \ht0=0pt \box0 +\nointerlineskip +\if@RTLtab\hboxR\else\hbox\fi to \textwidth{\hskip\leftskip\hbox{\cals@issue@rowsep}\hskip\rightskip}% +\nointerlineskip +\if@RTLtab\hboxR\else\hbox\fi to \textwidth{\hskip\leftskip \box\cals@current@row \hskip\rightskip}% +\let\cals@last@rs@below=\cals@current@rs@below +\let\cals@last@context=\cals@current@context} +\renewcommand\cals@issue@rowsep@alone{% +\setbox0=\if@RTLtab\hboxR\else\hbox\fi to \textwidth{% + \hskip\leftskip + \cals@rs@sofar@reset + \cals@rs@joinOne\cals@framers@width\cals@current@rs@above + \cals@rs@sofar@end + \hskip\rightskip}% +\ht0=0pt \dp0=0pt \box0 } +\renewenvironment{calstable}[1][c]{% +\if@RTL\@RTLtabtrue\fi + \if l#1% + \if@RTLtab\leftskip\fill \rightskip\z@\else\leftskip\z@ \rightskip\fill\fi + \else\if r#1% + \if@RTLtab\leftskip\z@ \rightskip\fill\else\leftskip\fill \rightskip\z@\fi + \else\if c#1% + \leftskip\fill \rightskip\fill + \fi\fi\fi +\let\cals@thead@tokens=\relax +\let\cals@tfoot@tokens=\relax +\let\cals@tbreak@tokens=\relax +\cals@tfoot@height=0pt \relax +\let\cals@last@context=n% +\let\cals@current@context=b% +\parindent=0pt % +\cals@setpadding{Ag}\cals@setcellprevdepth{Al}% +\let\cals@borderL=\relax +\let\cals@borderR=\relax +\let\cals@borderT=\relax +\let\cals@borderB=\relax +}{% End of the table +\cals@tfoot@tokens\lastrule\@RTLtabfalse} +\renewcommand\alignL{% +\dimen0=\cals@paddingL \if@RTLtab\cals@paddingL=\dimen0 plus 1fill\else\cals@paddingL=\dimen0\fi \relax +\dimen0=\cals@paddingR \cals@paddingR=\dimen0 \relax} + +\renewcommand\alignR{% +\dimen0=\cals@paddingL \if@RTLtab\cals@paddingL=\dimen0\else\cals@paddingL=\dimen0 plus 1fill\fi\relax +\dimen0=\cals@paddingR \cals@paddingR=\dimen0 \relax} +%% +%% Copyright © 2009–2013 Persian TeX Group <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 +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `cals-xetex-bidi.def'. diff --git a/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def b/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def index 997905ee294..3da8409a3e9 100644 --- a/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def @@ -12,11 +12,12 @@ %% License information appended. %% %% -\ProvidesFile{loadingorder-bidi.def}[2013/05/01 v0.94 making sure that bidi is the last package loaded] +\ProvidesFile{loadingorder-bidi.def}[2013/05/22 v0.95 making sure that bidi is the last package loaded] \bidi@isloaded{amsmath} \bidi@isloaded{amstext} \bidi@isloaded{amsthm} \bidi@isloaded{breqn} +\bidi@isloaded{cals} \bidi@isloaded{caption} \bidi@isloaded{crop} \bidi@isloaded{cuted} @@ -68,6 +69,7 @@ \bidi@isloaded{multienum} \bidi@isloaded{minitoc} \bidi@isloaded{natbib} +\bidi@isloaded{newfloat} \bidi@isloaded{ragged2e} \bidi@isloaded{rotating} \bidi@isloaded{tabls} @@ -91,6 +93,9 @@ \if@bidi@breqnloaded@\else \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package breqn after bidi package. Please load package breqn before bidi package, and then try to run xelatex on your document again}{}]{breqn} \fi% + \if@bidi@calsloaded@\else + \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package cals after bidi package. Please load package cals before bidi package, and then try to run xelatex on your document again}{}]{cals} + \fi% \if@bidi@captionloaded@\else \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package caption after bidi package. Please load package caption before bidi package, and then try to run xelatex on your document again}{}]{caption} \fi% @@ -239,6 +244,9 @@ \if@bidi@natbibloaded@\else \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package natbib after bidi package. Please load package natbib before bidi package, and then try to run xelatex on your document again}{}]{natbib} \fi% + \if@bidi@newfloatloaded@\else + \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package newfloat after bidi package. Please load package newfloat before bidi package, and then try to run xelatex on your document again}{}]{newfloat} + \fi% \csname if@bidi@ragged2eloaded@\endcsname\else \bidi@isloaded[\PackageError{bidi}{Oops! you have loaded package ragged2e after bidi package. Please load package ragged2e before bidi package, and then try to run xelatex on your document again}{}]{ragged2e} \fi% diff --git a/Master/texmf-dist/tex/latex/bidi/newfloat-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/newfloat-xetex-bidi.def new file mode 100644 index 00000000000..5758f4f99f0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bidi/newfloat-xetex-bidi.def @@ -0,0 +1,66 @@ +%% +%% This is file `newfloat-xetex-bidi.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bidi.dtx (with options: `newfloat-xetex-bidi.def') +%% +%% ______________________________________ +%% Copyright © 2009–2013 Persian TeX Group +%% +%% License information appended. +%% +%% +\ProvidesFile{newfloat-xetex-bidi.def}[2013/05/22 v0.1 bidi adaptations for newfloat package for XeTeX engine] +\renewcommand*\newfloat@setwithin[2]{% + \ifcsname c@chapter\endcsname + \@removefromreset{#1}{chapter}% + \fi + \@removefromreset{#1}{section}% + \edef\@tempa{#2}% + \ifx\@tempa\@empty + \def\@tempa{none}% + \fi + \def\@tempb{none}% + \ifx\@tempa\@tempb + \ifcsname c@chapter\endcsname + \@chapterlistsgap@off{#1}% + \fi + \newfloat@@setwithin{#1}{}{}% + \else + \def\@tempb{chapter}% + \ifx\@tempa\@tempb + \@addtoreset{#1}{chapter}% + \@chapterlistsgap@on{#1}% + \newfloat@@setwithin{#1}{\ifnum\c@chapter>\z@ \thechapter\@SepMark\fi}{\theHchapter.}% + \else + \def\@tempb{section}% + \ifx\@tempa\@tempb + \@addtoreset{#1}{section}% + \ifcsname c@chapter\endcsname + \@addtoreset{#1}{chapter}% + \@chapterlistsgap@on{#1}% + \newfloat@@setwithin{#1}{\thesection.}{\theHsection.}% + \else + \newfloat@@setwithin{#1}{\ifnum\c@section>\z@ \thesection\@SepMark\fi}{\theHsection.}% + \fi + \else + \newfloat@Error{Invalid value `#2' for option `within'}% + \fi + \fi + \fi} +%% +%% Copyright © 2009–2013 Persian TeX Group <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 +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is “maintained” (as per LPPL maintenance status) +%% by Persian TeX Group. +%% +%% +%% +%% +%% End of file `newfloat-xetex-bidi.def'. diff --git a/Master/texmf-dist/tex/latex/bidi/rotating-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/rotating-xetex-bidi.def index 0f18d36d7d5..95ad822af91 100644 --- a/Master/texmf-dist/tex/latex/bidi/rotating-xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/rotating-xetex-bidi.def @@ -12,7 +12,7 @@ %% License information appended. %% %% -\ProvidesFile{rotating-xetex-bidi.def}[2013/04/12 v0.1 bidi adaptations for rotating package for XeTeX engine] +\ProvidesFile{rotating-xetex-bidi.def}[2013/05/22 v0.2 bidi adaptations for rotating package for XeTeX engine] \def\end@rotfloat{% \end{minipage}\end{lrbox}% \stepcounter{r@tfl@t}% @@ -131,6 +131,16 @@ \wd0\z@\dp0\z@\ht0\z@ \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi } +\def\sideways{% + \Grot@setangle{90}% + \setbox\z@\color@hbox\ifmmode\if@RTL\beginR\fi\else\if@RTL\beginR\fi\fi\ignorespaces} +\def\endsideways{% + \ifmmode\if@RTL\endR\fi\else\if@RTL\endR\fi\fi + \unskip\color@endbox + \Grot@x\z@ + \Grot@y\z@ + \ifmmode\else\if@RTL\beginL\fi\fi\Grot@box\ifmmode\else\if@RTL\endL\fi\fi +} %% %% Copyright © 2009–2013 Persian TeX Group <persian-tex@tug.org> %% diff --git a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def index 009a8025274..aafe8f2ea6b 100644 --- a/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def @@ -12,7 +12,7 @@ %% License information appended. %% %% -\ProvidesFile{xetex-bidi.def}[2013/05/01 v1.1.2 bidi adaptations for XeTeX engine] +\ProvidesFile{xetex-bidi.def}[2013/05/22 v1.1.3 bidi adaptations for XeTeX engine] \newcommand{\TeXXeTOn}{\TeXXeTstate=1 } \newcommand{\TeXXeTOff}{\TeXXeTstate=0 } \TeXXeTOn @@ -685,6 +685,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi} \@ifpackageloaded{amstext}{\input{amstext-xetex-bidi.def}}{} \@ifpackageloaded{amsthm}{\input{amsthm-xetex-bidi.def}}{} \@ifpackageloaded{breqn}{\input{breqn-xetex-bidi.def}}{} +\@ifpackageloaded{cals}{\input{cals-xetex-bidi.def}}{} \@ifpackageloaded{caption}{\input{caption-xetex-bidi.def}}{} \@ifpackageloaded{caption3}{\input{caption3-xetex-bidi.def}}{} \@ifpackageloaded{floatrow}{\input{floatrow-xetex-bidi.def}}{} @@ -753,6 +754,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi} \@ifpackageloaded{multicol}{\input{multicol-xetex-bidi.def}}{} \@ifpackageloaded{multienum}{\input{multienum-xetex-bidi.def}}{} \@ifpackageloaded{natbib}{\input{natbib-xetex-bidi.def}}{} +\@ifpackageloaded{newfloat}{\input{newfloat-xetex-bidi.def}}{} \@ifpackageloaded{minitoc}{\input{minitoc-xetex-bidi.def}}{} \@ifpackageloaded{picinpar}{\input{picinpar-xetex-bidi.def}}{} \@ifpackageloaded{quotchap}{\input{quotchap-xetex-bidi.def}}{} |