summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-10 00:04:40 +0000
committerKarl Berry <karl@freefriends.org>2010-04-10 00:04:40 +0000
commit5fd15d101add3e08ff14e00c8a38998602e87959 (patch)
tree0ec09aea3b1a0bac1b45bd6635145cd5d2ab267c /Master/texmf-dist/tex
parent1a415339f97d6e886e15efee8e7be4c3ba4e38ec (diff)
bidi now lualatex, too (9apr10)
git-svn-id: svn://tug.org/texlive/trunk@17780 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def)18
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def)18
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def)14
-rw-r--r--Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def)22
-rw-r--r--Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/bidi.sty)25
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidi2in1.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidicode.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/bidicode.sty)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls (renamed from Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls)3
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidipoem.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bidipresentation.cls (renamed from Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def)24
-rw-r--r--Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty (renamed from Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def)24
-rw-r--r--Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def)4
-rw-r--r--Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/footnote-luatex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/loadingorder-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/luatex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/luatex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def)8
-rw-r--r--Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/pgf-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def)21
-rw-r--r--Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def)24
-rw-r--r--Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def)24
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def)68
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def)68
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def)68
-rw-r--r--Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/tikz-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def)2
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/xetex-bidi.def)39
-rw-r--r--Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def (renamed from Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def)2
62 files changed, 459 insertions, 103 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def
index eff5ffc15e6..636d32ee940 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/amsart-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{amsart-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for amsart class for XeTeX engine]
+\ProvidesFile{amsart-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for amsart class for XeTeX engine]
\def\@tocline#1#2#3#4#5#6#7{\relax
\ifnum #1>\c@tocdepth % then omit
\else
@@ -81,8 +81,22 @@
\bidi@footnotetext@after
\insert\footins{\unvbox\footins}%
\endgroup}
+\renewenvironment{thebibliography}[1]{%
+ \@bibtitlestyle
+ \normalfont\bibliofont\labelsep .5em\relax
+ \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep
+ \usecounter{enumiv}}%
+ \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
+ \sfcode`\.=\@m
+}{%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist
+}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def
index c0f19fc0727..fab17c90716 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/amsbook-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsbook-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{amsbook-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for amsbook class for XeTeX engine]
+\ProvidesFile{amsbook-xetex-bidi.def}[2010/07/25 v0.6 bidi adaptations for amsbook class for XeTeX engine]
\def\@tocline#1#2#3#4#5#6#7{\relax
\ifnum #1>\c@tocdepth % then omit
\else
@@ -87,8 +87,22 @@
\bidi@footnotetext@after
\insert\footins{\unvbox\footins}%
\endgroup}
+\renewenvironment{thebibliography}[1]{%
+ \@bibtitlestyle
+ \normalfont\bibliofont\labelsep .5em\relax
+ \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth \advance\leftmargin\labelsep
+ \usecounter{enumiv}}%
+ \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
+ \sfcode`\.=\@m
+}{%
+ \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist
+}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def
index 656b0c7999e..f871af62684 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsmath-xetex-bidi.def
@@ -9,17 +9,7 @@
%%
%%
\ProvidesFile{amsmath-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for amsmath package for XeTeX engine]
-\renewenvironment{equation}{%
- \incr@eqnum
- \mathdisplay@push
- \st@rredfalse \global\@eqnswtrue
- \beginL\mathdisplay{equation}%
-}{%
- \endmathdisplay{equation}\endL%
- \mathdisplay@pop
- \ignorespacesafterend
-}
-
+\everydisplay\@xp{\the\everydisplay \@displaytrue}
\renewcommand{\numberwithin}[3][\arabic]{%
\@ifundefined{c@#2}{\@nocounterr{#2}}{%
\@ifundefined{c@#3}{\@nocnterr{#3}}{%
@@ -34,7 +24,7 @@
\DeclareRobustCommand{\[}{\begin{equation*}}
\DeclareRobustCommand{\]}{\end{equation*}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def
index 8857b937aed..94cc9b210ed 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/amsthm-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/amsthm-xetex-bidi.def
@@ -11,7 +11,7 @@
\ProvidesFile{amsthm-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for amsthm package for XeTeX engine]
\def\@thmcountersep{\@SepMark}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
index b9e310e3107..795bb7f2abf 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/array-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/array-xetex-bidi.def
@@ -92,7 +92,7 @@
\let \par \@empty
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def
index 9248fdf0489..86b330397e7 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/article-xetex-bidi.def
@@ -143,8 +143,28 @@
\nobreak
\vskip 3ex
\@afterheading}
+\renewenvironment{thebibliography}[1]
+ {\section*{\refname}%
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def
index 66940c279c8..550f6e046e7 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/arydshln-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/arydshln-xetex-bidi.def
@@ -144,7 +144,7 @@
\let\adl@org@classz\@classz
}{}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/latex/bidi/bidi.sty
index e64ebb0c867..e0e790b0103 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidi.sty
@@ -10,9 +10,9 @@
%%
\NeedsTeXFormat{LaTeX2e}
\def\bididate{2010/07/25}
-\def\bidiversion{v1.0.5}
-\def\bidirevision{revision 253}
-\ProvidesPackage{bidi}[\bididate\space \bidiversion\space <\bidirevision>
+\def\bidiversion{v1.0.6}
+\def\bidicommit{commit 15}
+\ProvidesPackage{bidi}[\bididate\space \bidiversion\space <\bidicommit>
Bidirectional typesetting in XeLaTeX and LuaLaTeX]
\edef\bidiinfo{%
bidi package (Support for bidirectional typesetting with XeLaTeX and LuaLaTeX)^^J
@@ -20,15 +20,14 @@ Description: A convenient interface for typesetting bidirectional^^J
texts with XeLaTeX and LuaLaTeX. The package includes adaptations for use^^J
with many other commonly-used packages.^^J
Copyright © 2009-2010 Vafa Khalighi^^J
-\bidiversion, <\bidirevision>, \bididate^^J
+\bidiversion, <\bidicommit>, \bididate^^J
License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
-Home: http://bidi.berlios.de^^J
-Location on CTAN: /macros/xetex/latex/bidi}
+Home: http://bitbucket.org/vafa/bidi^^J
+Location on CTAN: /macros/latex/contrib/bidi}
\typeout{\bidiinfo}
\edef\bidi@everyjob{\the\everyjob}
\everyjob{\bidi@everyjob\typeout{\bidiinfo}}
-\RequirePackage{ifxetex}
-\RequirePackage{ifluatex}
+\RequirePackage{iftex}
\def\@tagsextension{clo}
\def\@definitionfileextension{def}
\def\@iftagsloaded{\@ifl@aded\@tagsextension}
@@ -38,6 +37,10 @@ Location on CTAN: /macros/xetex/latex/bidi}
\newif\if@RTLmaths
\newif\if@Latin
\newif\if@RTLtab
+\newif\if@RTLmarginpar
+\newif\if@LTRmarginpar
+\newif\if@LTRbibitems
+\newif\if@RTLbibitems
\newif\if@sentdir
\newif\if@RTL@footnote
\let\if@rlmain=\if@RTLmain
@@ -68,10 +71,10 @@ Location on CTAN: /macros/xetex/latex/bidi}
\def\bracetext{\ifcat\n@xt{\else\ifcat\n@xt}\fi
\errmessage{Missing left brace has been substituted}\fi \bgroup}
\input{loadingorder-bidi.def}
-\ifxetex
+\ifXeTeX
\input{xetex-bidi.def}
\else
- \ifluatex
+ \ifLuaTeX
\input{luatex-bidi.def}
\else
\PackageError{bidi}{TeX engines other than XeTeX and LuaTeX are not yet supported}
@@ -80,7 +83,7 @@ Location on CTAN: /macros/xetex/latex/bidi}
\ProcessOptions
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty b/Master/texmf-dist/tex/latex/bidi/bidi2in1.sty
index 3501e5d9480..838670ca3f9 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi2in1.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidi2in1.sty
@@ -66,7 +66,7 @@
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty b/Master/texmf-dist/tex/latex/bidi/bidicode.sty
index dcb383f932e..44f98eddbff 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidicode.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidicode.sty
@@ -145,7 +145,7 @@
\def\OptArg@i*#1{\colorbox{black!20}{\texttt{#1}}\kern1pt}
\def\OptArg@ii*#1{\colorbox{black!20}{\texttt{[#1]}}\kern1pt}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty b/Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty
index 8479487dc37..9030af705dd 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidiftnxtra.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidiftnxtra.sty
@@ -156,7 +156,7 @@
\color@endbox
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls b/Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls
index f6692b218c4..64297954c4a 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidimoderncv.cls
+++ b/Master/texmf-dist/tex/latex/bidi/bidimoderncv.cls
@@ -236,6 +236,7 @@
{%
\section{\refname}%
\small%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
\begin{list}{\bibliographyitemlabel}%
{%
\setlength{\topsep}{0pt}%
@@ -257,7 +258,7 @@
\let\@openbib@code\@empty
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty b/Master/texmf-dist/tex/latex/bidi/bidipoem.sty
index e4ff25a26cd..a5aad6e1206 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidipoem.sty
+++ b/Master/texmf-dist/tex/latex/bidi/bidipoem.sty
@@ -205,7 +205,7 @@
\expandafter\def\csname modernpoem*\endcsname{\let\poem@obeylines=\obeylines\modernpoem}
\expandafter\def\csname endmodernpoem*\endcsname{\endmodernpoem}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls b/Master/texmf-dist/tex/latex/bidi/bidipresentation.cls
index e412454de34..c2b43a5945e 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidipresentation.cls
+++ b/Master/texmf-dist/tex/latex/bidi/bidipresentation.cls
@@ -82,7 +82,7 @@
{\endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def
index 5113e120d38..8bf5d9aee43 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/book-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/book-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{book-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for standard book class for XeTeX engine]
+\ProvidesFile{book-xetex-bidi.def}[2010/07/25 v0.6 bidi adaptations for standard book class for XeTeX engine]
\@ifclassloaded{bookest}{}{%
\if@titlepage
\renewcommand\maketitle{\begin{titlepage}%
@@ -160,8 +160,28 @@
\clearpage
\fi
\@mainmatterfalse}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def
index 382d639cf0f..3231a9305fb 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bookest-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/bookest-xetex-bidi.def
@@ -42,7 +42,7 @@
\vskip 30\p@
}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def
index 6854f373be3..4c8b7a243ea 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/breqn-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/breqn-xetex-bidi.def
@@ -64,7 +64,7 @@
}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def
index 4c9c7ba410a..4fbc3a472db 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/caption-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/caption-xetex-bidi.def
@@ -11,7 +11,7 @@
\ProvidesFile{caption-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for caption package for XeTeX engine]
\let\@makecaption\caption@makecaption
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def
index 0f108ac0f87..eaf647aca4d 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/color-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/color-xetex-bidi.def
@@ -50,7 +50,7 @@
\def\color@fbox#1#2#3{%
\color@b@x{\fboxsep\z@\bidicolor#1{#2}\fbox}{\bidicolor#1{#3}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def
index 0b41e0c1520..e6d3c229808 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/colortbl-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/colortbl-xetex-bidi.def
@@ -47,7 +47,7 @@
\unhbox\z@\if@RTL\endL\fi}%
\prepnext@tok}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty b/Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty
index 7cf3de727d5..e120ec97174 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidicasual.sty
+++ b/Master/texmf-dist/tex/latex/bidi/cvthemebidicasual.sty
@@ -108,7 +108,7 @@
\AtBeginDocument{\makefooter}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty b/Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty
index d2ff4eed4d5..3021c30a342 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/cvthemebidiclassic.sty
+++ b/Master/texmf-dist/tex/latex/bidi/cvthemebidiclassic.sty
@@ -115,7 +115,7 @@
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def
index 4cd997a2ec4..db6756a57ed 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/draftwatermark-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/draftwatermark-xetex-bidi.def
@@ -12,7 +12,7 @@
\renewcommand\SetWatermarkText[1]{%
\def\sc@wm@text{\if@RTLmain\beginR\fi#1\if@RTLmain\endR\fi}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def
index c56e0893c8c..75a9d9e0994 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/extbook-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/extbook-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{extbook-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for extbook class for XeTeX engine]
+\ProvidesFile{extbook-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for extbook class for XeTeX engine]
\if@titlepage
\renewcommand\maketitle{\begin{titlepage}%
\let\footnotesize\small
@@ -159,8 +159,28 @@
\clearpage
\fi
\@mainmatterfalse}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def
index 24be58e219e..9a156aabb37 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/fancyhdr-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/fancyhdr-xetex-bidi.def
@@ -20,7 +20,7 @@
\parbox[t]{\headwidth}{\centering\if@RTLmain\beginR\fi#3\if@RTLmain\endR\fi}\hfill
\llap{\parbox[t]{\headwidth}{\if@RTLmain\raggedright\else\raggedleft\fi\if@RTLmain\beginR\fi#4\if@RTLmain\endR\fi}}}}}\if@RTLmain\beginR\fi#5\if@RTLmain\endR\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def
index 42988d14205..ac09ac70f17 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/fleqn-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/fleqn-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{fleqn-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for fleqn tag for XeTeX engine]
+\ProvidesFile{fleqn-xetex-bidi.def}[2010/03/01 v0.1 bidi adaptations for fleqn tag for XeTeX engine]
\renewcommand\[{\relax
\ifmmode\@badmath
\else
@@ -39,7 +39,7 @@
\endL\egroup
\endtrivlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def
index c466ca32872..e3b5b11aaa2 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/flowfram-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/flowfram-xetex-bidi.def
@@ -139,7 +139,7 @@
\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}}{}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/footnote-luatex-bidi.def b/Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def
index f07784e623d..d29e2e66056 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/footnote-luatex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/footnote-luatex-bidi.def
@@ -10,7 +10,7 @@
%%
\ProvidesFile{footnote-luatex-bidi.def}[2010/07/25 v0.1 bidi footnote macros for LuaTeX engine]
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def
index 855a34bf08e..c9d3cce14ba 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/footnote-xetex-bidi.def
@@ -240,7 +240,7 @@
\endgroup
\@RTLfootnotetext}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def
index 961aef11f4b..d6b51c90e4a 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/graphicx-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/graphicx-xetex-bidi.def
@@ -114,7 +114,7 @@
\Gscale@box\@tempa[\@tempb]{\box\@tempboxa}%
\@end@tempboxa}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def
index 9abd39f87bb..df60a1a0c9c 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/hyperref-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/hyperref-xetex-bidi.def
@@ -236,7 +236,7 @@
}%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def
index eb576128696..d5600cb9c8d 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/leqno-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/leqno-xetex-bidi.def
@@ -13,7 +13,7 @@
\rlap{\normalfont\normalcolor
\hskip -\displaywidth\if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def
index 0c0dce9fee8..97c06228ce1 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/letter-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/letter-xetex-bidi.def
@@ -23,7 +23,7 @@
\vspace{2\parskip}%
#1\par\nobreak}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def
index 9a2eee4a73a..4056084b29c 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/listings-xetex-bidi.def
@@ -28,7 +28,7 @@ to\hsize{\if@RTLmain\beginR\fi\hfil\box\@tempboxa\hfil%
\gdef\thelstlisting{\@arabic\c@lstlisting}
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/loadingorder-bidi.def b/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def
index 4ee1e07497a..acb20581ea0 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/loadingorder-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/loadingorder-bidi.def
@@ -168,7 +168,7 @@
\fi%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
index fbadba5032e..919b4845111 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
@@ -20,7 +20,7 @@
\endgraf\vskip\baselineskip}%
\hss}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/luatex-bidi.def b/Master/texmf-dist/tex/latex/bidi/luatex-bidi.def
index 933132ac794..e1e68fa16aa 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/luatex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/luatex-bidi.def
@@ -14,7 +14,7 @@
\input{footnote-luatex-bidi.def}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def
index 2286747db37..5ebe743c842 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/memoir-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/memoir-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{memoir-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for memoir class for XeTeX engine]
+\ProvidesFile{memoir-xetex-bidi.def}[2010/07/25 v0.5 bidi adaptations for memoir class for XeTeX engine]
\renewcommand{\keepthetitle}{%
\@bsmtitlempty
\global\let\thanks\relax
@@ -160,8 +160,12 @@
\@makecaption{\csname fnum@##1\endcsname}{\ignorespaces ##3}\par
\endgroup}
}}{}
+\renewenvironment{thebibliography}[1]{%
+ \bibsection
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
index 2940b4355f2..f7118b3e8ca 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/minitoc-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
@@ -47,7 +47,7 @@
\par}%
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def
index b8bd151746f..eb4ff77f5fb 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/multicol-xetex-bidi.def
@@ -155,7 +155,7 @@
\rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\rmfamily#1\fi\@finalstrut\strutbox}%
\color@endgroup}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def
index 14f2c086a1c..8e20d5f71ae 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/pdfpages-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/pdfpages-xetex-bidi.def
@@ -57,7 +57,7 @@
\AM@ClearShipoutPicture
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pgf-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def
index 1ec69559b88..7e2cc1c5009 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/pgf-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/pgf-xetex-bidi.def
@@ -14,7 +14,7 @@
\def\pgfpicture{\ifmmode\else\LTR\fi\origin@pgfpicture}
\def\endpgfpicture{\origin@endpgfpicture\ifmmode\else\endLTR\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def
index b32ba381de0..018c964f0fb 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/pstricks-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/pstricks-xetex-bidi.def
@@ -11,7 +11,7 @@
\ProvidesFile{pstricks-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for pstricks package for XeTeX engine]
\def\pspicture{\begingroup\ifmmode\else\@RTLfalse\fi\pst@ifstar\pst@picture}%
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def
index f24799afeb7..5087349d95b 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/ragged2e-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/ragged2e-xetex-bidi.def
@@ -95,7 +95,7 @@
\def\RaggedLeft{\if@RTL\origin@RaggedRight\else\origin@RaggedLeft\fi}
\def\RaggedRight{\if@RTL\origin@RaggedLeft\else\origin@RaggedRight\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def
index 8d921bfcb4b..a2070d72781 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/rapport3-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/rapport3-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{rapport3-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for rapport3 class for XeTeX engine]
+\ProvidesFile{rapport3-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for rapport3 class for XeTeX engine]
\if@titlepage
\renewcommand*\TitleFont{\rmfamily}
\renewcommand*\maketitle{%
@@ -236,8 +236,25 @@
\ifnum\c@chapter>\z@\thechapter\@SepMark\fi\@arabic\c@table}
\renewcommand*\theequation{%
\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi\@arabic\c@equation}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy\clubpenalty4000\widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def
index 4bc24e8486c..7fe59ec59ce 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/refrep-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/refrep-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{refrep-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for refrep class for XeTeX engine]
+\ProvidesFile{refrep-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for refrep class for XeTeX engine]
\if@titlepage
\renewcommand\maketitle{\begin{titlepage}%
\let\footnotesize\small
@@ -141,8 +141,28 @@
\renewcommand\thesubsubsection {\thesubsection \@SepMark\@arabic\c@subsubsection}
\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\bibname}{\bibname}}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.=\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def
index fd61108ff92..80469e27a86 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/report-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/report-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{report-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for standard report class for XeTeX engine]
+\ProvidesFile{report-xetex-bidi.def}[2010/07/25 v0.4 bidi adaptations for standard report class for XeTeX engine]
\if@titlepage
\renewcommand\maketitle{\begin{titlepage}%
\let\footnotesize\small
@@ -150,8 +150,28 @@
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname}%
+ \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
index 951f7541b56..a4e4aa6518b 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/scrartcl-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{scrartcl-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for scrartcl class for XeTeX engine]
+\ProvidesFile{scrartcl-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for scrartcl class for XeTeX engine]
\renewcommand*\maketitle[1][1]{%
\if@titlepage
\begin{titlepage}
@@ -247,8 +247,72 @@
\renewcommand*{\thesubparagraph}{%
\theparagraph\@SepMark\@arabic\c@subparagraph
}
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \bib@heading
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \noindent\bibpreamble\par\nobreak
+ \fi\fi
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def
index 8b5a7f83f4d..2958aa8872c 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/scrbook-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrbook-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{scrbook-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for scrbook class for XeTeX engine]
+\ProvidesFile{scrbook-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for scrbook class for XeTeX engine]
\renewcommand*\maketitle[1][1]{%
\if@titlepage
\begin{titlepage}
@@ -303,8 +303,72 @@
\fi
\@arabic\c@equation
}
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \setchapterpreamble{\bibpreamble}%
+ \fi\fi
+ \bib@heading
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def
index efe0fa29c24..448725d879d 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def
@@ -8,7 +8,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{scrreprt-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for scrreprt class for XeTeX engine]
+\ProvidesFile{scrreprt-xetex-bidi.def}[2010/07/25 v0.2 bidi adaptations for scrreprt class for XeTeX engine]
\renewcommand*\maketitle[1][1]{%
\if@titlepage
\begin{titlepage}
@@ -260,8 +260,72 @@
\thechapter\@SepMark%
\@arabic\c@equation
}
+\renewenvironment{thebibliography}[1]{%
+ \if@bib@break@
+ \bib@beginhook
+ \else
+ \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
+ \setchapterpreamble{\bibpreamble}%
+ \fi\fi
+ \bib@heading
+ \bib@beginhook
+ \bib@before@hook
+ \fi
+ \renewcommand{\BreakBibliography}[1]{%
+ \@bib@break
+ \end{thebibliography}%
+ \begingroup ##1\endgroup
+ \begin{thebibliography}{#1}
+ }%
+ \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi
+ \list{%
+ \@biblabel{\@arabic\c@enumiv}%
+ }{%
+ \settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \if@bib@break@
+ \edef\@tempa{%
+ \noexpand\usecounter{enumiv}%
+ \noexpand\setcounter{enumiv}{\the\c@enumiv}%
+ }\@tempa
+ \no@bib@break
+ \else
+ \usecounter{enumiv}%
+ \fi
+ \let\p@enumiv\@empty
+ \renewcommand*\theenumiv{\@arabic\c@enumiv}%
+ }%
+ \sloppy\clubpenalty4000 \widowpenalty4000
+ \sfcode`\.=\@m
+}{%
+ \if@bib@break@
+ \def\@noitemerr{%
+ \@latex@warning{%
+ \string\BreakBibliography\space at begin of `thebibliography'
+ environment\MessageBreak
+ or following \string\BreakBibliography}%
+ }%
+ \else
+ \def\@noitemerr{%
+ \@latex@warning{%
+ Empty `thebibliography' environment or
+ \string\BreakBibliography\MessageBreak
+ before end of `thebibliography' environment}%
+ }%
+ \fi
+ \endlist
+ \if@bib@break@
+ \else
+ \bib@after@hook
+ \let\bib@before@hook\@empty
+ \let\bib@after@hook\@empty
+ \fi
+ \bib@endhook
+}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def
index d64969296fe..7e4d06435de 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/stabular-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/stabular-xetex-bidi.def
@@ -36,7 +36,7 @@
\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
\@preamble}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def
index 24dda09a62a..99520624782 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/subfigure-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/subfigure-xetex-bidi.def
@@ -14,7 +14,7 @@
\let\p@subtable=\thetable%
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def
index c0913650d74..4cfdbca3f34 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/tabls-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tabls-xetex-bidi.def
@@ -44,7 +44,7 @@
\if@RTLtab\hbox\bgroup\beginR\vbox\bgroup\fi
\@preamble}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def
index 83a57ae8eb1..45b04a916f5 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/tabulary-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tabulary-xetex-bidi.def
@@ -39,7 +39,7 @@
\z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
\fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tikz-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def
index dce434239c2..88e5703bed6 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/tikz-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tikz-xetex-bidi.def
@@ -14,7 +14,7 @@
\def\tikzpicture{\ifmmode\else\LTR\fi\origin@tikzpicture}
\def\endtikzpicture{\origin@endtikzpicture\ifmmode\else\endLTR\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def
index 152dd4df373..f402763acc8 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/tocbibind-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tocbibind-xetex-bidi.def
@@ -39,7 +39,7 @@
\fi
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def
index 7e040da4025..3b51747c23e 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/tocloft-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tocloft-xetex-bidi.def
@@ -316,7 +316,7 @@
\if@RTL\leftskip\else\rightskip\fi \@tocrmarg\relax
\textit{#1}\protect\par}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def
index 9bb376df52c..75006caf275 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/tocstyle-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/tocstyle-xetex-bidi.def
@@ -255,7 +255,7 @@
\@tempa
}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def
index b35f7733e31..efda5dd6e15 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/wrapfig-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/wrapfig-xetex-bidi.def
@@ -85,7 +85,7 @@
\aftergroup\WF@startwrapping % after the \endgroup which immediately follows
\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def
index 3a33bbb25de..c37085811e5 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/xcolor-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xcolor-xetex-bidi.def
@@ -111,7 +111,7 @@
{\color@b@x{\fboxsep\z@\bidicolor#1{#2}\XC@fbox}%
{\@ifxempty{#3}{\bidicolor#1}{\bidicolor#3}{#4}}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
index 831687a69f2..ac88ad5f224 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xetex-bidi.def
@@ -21,10 +21,10 @@
\def\moreLRE{\bracetext \aftergroup\endL \beginL\@RTLfalse}
\def\moreRLE{\bracetext \aftergroup\endR \beginR\@RTLtrue}
\def\lr#1{\begingroup\beginL\rmfamily#1\endL\endgroup}
-\def\LTR{\bgroup\par\@RTLfalse\@RTL@footnotefalse}
-\def\endLTR{\par\egroup}
-\def\RTL{\bgroup\par\@RTLtrue\@RTL@footnotetrue}
-\def\endRTL{\par\egroup}
+\def\LTR{\par\@RTLfalse\@RTL@footnotefalse\hsize\linewidth\parshape\z@}
+\def\endLTR{\par}
+\def\RTL{\par\@RTLtrue\@RTL@footnotetrue\hsize\linewidth\parshape\z@}
+\def\endRTL{\par}
\def\ltr{\if@RTL\par\@RTLfalse\@RTL@footnotefalse\fi}
\def\rtl{\if@RTL\relax\else\par\@RTLtrue\@RTL@footnotetrue\fi}
\def\setRTL{\@RTLtrue\@RTL@footnotetrue}
@@ -65,6 +65,9 @@
\def\SepMark#1{\gdef\@SepMark{\if@RTL\beginR\fi#1\if@RTL\endR\fi}}
\SepMark{.}
\def\@thmcountersep{\@SepMark}
+\def\setRTLbibitems{\@RTLbibitemstrue\@LTRbibitemsfalse}
+\def\setLTRbibitems{\@LTRbibitemstrue\@RTLbibitemsfalse}
+\def\setdefaultbibitems{\@RTLbibitemsfalse\@LTRbibitemsfalse}
\def\list#1#2{%
\ifnum \@listdepth >5\relax
\@toodeep
@@ -91,6 +94,18 @@
\fi
\parshape \@ne \@totalleftmargin \linewidth
\ignorespaces}
+\newenvironment{LTRitems}[1][\labelsep]
+ {\par\@RTLfalse
+ \leftskip\labelwidth
+ \advance\leftskip #1
+ \advance\rightskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
+\newenvironment{RTLitems}[1][\labelsep]
+ {\par\@RTLtrue
+ \rightskip\labelwidth
+ \advance\rightskip #1
+ \advance\leftskip -\leftmargin
+ \ignorespaces}{\endtrivlist}
\def\raggedright{%
\let\\\@centercr
\leftskip\z@skip\rightskip\@flushglue
@@ -284,14 +299,21 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\kern -\@pagedp
\nointerlineskip
\hb@xt@\columnwidth
- {\if@RTL\beginR\fi\ifnum \@tempcnta >\z@
+ {\if@RTL\if@LTRmarginpar\beginL\else\beginR\fi\else\if@RTLmarginpar\beginR\else\beginL\fi\fi\ifnum \@tempcnta >\z@
\hskip\columnwidth \hskip\marginparsep
\else
\hskip -\marginparsep \hskip -\marginparwidth
\fi
- \box\@marbox \hss\if@RTL\endR\fi}%
+ \box\@marbox \hss\if@RTL\if@LTRmarginpar\endL\else\endR\fi\else\if@RTLmarginpar\endR\else\endL\fi\fi}%
\nointerlineskip
\hbox{\vrule \@height\z@ \@width\z@ \@depth\@pagedp}}
+\long\def\@ympar#1{%
+ \@savemarbox\@marbox{\if@RTL\if@LTRmarginpar\@RTLfalse\else\@RTLtrue\fi\else\if@RTLmarginpar\@RTLtrue\else\@RTLfalse\fi\fi#1}%
+ \global\setbox\@currbox\copy\@marbox
+ \@xympar}
+\def\setRTLmarginpar{\@RTLmarginpartrue\@LTRmarginparfalse}
+\def\setLTRmarginpar{\@LTRmarginpartrue\@RTLmarginparfalse}
+\def\setdefaultmarginpar{\@RTLmarginparfalse\@LTRmarginparfalse}
\def\@stopline{\unskip\@stopfield\if@rjfield \global\@rjfieldfalse
\@tempdima\@totalleftmargin \advance\@tempdima\linewidth
\hbox to\@tempdima{\if@RTL\beginR\fi\@itemfudge\hskip\dimen\@curtabmar
@@ -370,8 +392,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\hb@xt@\hsize{\if@RTL\beginR\fi\hfil\box\@tempboxa\hfil\if@RTL\endR\fi}%
\fi
\vskip\belowcaptionskip}
-\def\equation{\beginL$$\refstepcounter{equation}}
-\def\endequation{\eqno \hbox{\@eqnnum}$$\endL\@ignoretrue}
+\everydisplay{\predisplaydirection=0}
\def\@eqnnum{{\normalfont \normalcolor \if@RTL\beginR\fi(\theequation)\if@RTL\endR\fi}}
\input{footnote-xetex-bidi.def}
\@iftagsloaded{leqno}{\input{leqno-xetex-bidi.def}}{}
@@ -425,7 +446,7 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
diff --git a/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def
index fbef2973005..860b89b917a 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/xltxtra-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/xltxtra-xetex-bidi.def
@@ -14,7 +14,7 @@
\let\@@XeLaTeX\XeLaTeX
\def\XeLaTeX{\@ensure@LTR{\@@XeLaTeX}}
%%
-%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of