summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/bidi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-13 22:20:31 +0000
committerKarl Berry <karl@freefriends.org>2011-08-13 22:20:31 +0000
commit878253a4b3b9dc4e9da23f4aaffb88d5d3cf6dff (patch)
treef4e789c6ededae6b17abfd6fe380078b2304cfaa /Master/texmf-dist/source/latex/bidi
parentea057cd7f2919f3cf5652e61cbb7d58abbf59ef5 (diff)
bidi (13aug11)
git-svn-id: svn://tug.org/texlive/trunk@23543 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/bidi')
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.dtx304
-rw-r--r--Master/texmf-dist/source/latex/bidi/bidi.ins1
2 files changed, 243 insertions, 62 deletions
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.dtx b/Master/texmf-dist/source/latex/bidi/bidi.dtx
index 50d3b5c4fd3..04462df6698 100644
--- a/Master/texmf-dist/source/latex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/latex/bidi/bidi.dtx
@@ -5,12 +5,12 @@
%<*readme>
___________________
The bidi package
-v1.2.4
+v1.2.5
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX.
-This version fixes all the bugs that were present in v1.2.3.
+This version fixes all the bugs that were present in v1.2.4.
___________________
Vafa Khalighi
@@ -93,7 +93,6 @@ by Vafa Khalighi.
\generate{\file{cvthemebidiclassic.sty}{\from{\jobname.dtx}{cvthemebidiclassic.sty}}}
\generate{\file{dblfnote-xetex-bidi.def}{\from{\jobname.dtx}{dblfnote-xetex-bidi.def}}}
\generate{\file{draftwatermark-xetex-bidi.def}{\from{\jobname.dtx}{draftwatermark-xetex-bidi.def}}}
-\generate{\file{empheq-xetex-bidi.def}{\from{\jobname.dtx}{empheq-xetex-bidi.def}}}
\generate{\file{extarticle-xetex-bidi.def}{\from{\jobname.dtx}{extarticle-xetex-bidi.def}}}
\generate{\file{extbook-xetex-bidi.def}{\from{\jobname.dtx}{extbook-xetex-bidi.def}}}
\generate{\file{extletter-xetex-bidi.def}{\from{\jobname.dtx}{extletter-xetex-bidi.def}}}
@@ -229,7 +228,7 @@ by Vafa Khalighi.
% Support for bidirectional typesetting in plain \TeX{} and \LaTeXe}
% \author{Vafa Khalighi\\
% \url{vafa018@gmail.com}}
-% \date{\today\qquad Version 1.2.4}
+% \date{\today\qquad Version 1.2.5}
% \maketitle
% \tableofcontents
%\section{Introduction}
@@ -244,7 +243,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.2.4, 2011/08/01
+%v1.2.5, 2011/08/13
%License: LaTeX Project Public License, version 1.3c or higher (your choice)
%Home: https://bitbucket.org/vafa/bidi
%Location on CTAN: /macros/latex/contrib/bidi
@@ -2232,8 +2231,8 @@ by Vafa Khalighi.
% \subsection{\textsf{bidi.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2011/08/01}
-\def\bidiversion{v1.2.4}
+\def\bididate{2011/08/13}
+\def\bidiversion{v1.2.5}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\bidiinfo{%
@@ -6062,52 +6061,6 @@ bidi implementation of tufte title]
% \end{macrocode}
% \iffalse
%</draftwatermark-xetex-bidi.def>
-%<*empheq-xetex-bidi.def>
-%\fi
-% \subsection{\textsf{empheq-xetex-bidi.def}}
-% \begin{macrocode}
-\ProvidesFile{empheq-xetex-bidi.def}[2011/03/01 v0.1 bidi adaptations for empheq package for XeTeX engine]
-\MHInternalSyntaxOn
-\AtBeginDocument{%
- \@ifpackageloaded{fancybox}{%
- \@ifpackageloaded{color}{\definecolor{shadowcolor}{rgb}{0,0,0}}%
- {\renewcommand*\textcolor[2]{\normalcolor{#2}}}%
- \renewcommand*\shadowbox{%
- \@ifstar{\MH_set_boolean_T:n {shadowbox_star}
- \VerbBox\EQ_shadowbox:n}
- {\MH_set_boolean_F:n {shadowbox_star}
- \VerbBox\EQ_shadowbox:n}}
- \def\EQ_shadowbox:n #1{%
- \sbox{\z@}{\fbox{#1}}%
- \MH_if_boolean:nTF {shadowbox_star}{
- \MH_setlength:dn \@tempdima{\z@}%
- }{
- \MH_setlength:dn \@tempdima{\dp\z@+\shadowsize}%
- }
- \raisebox{\@tempdima}{%
- \if@RTL\makebox[\z@][r]{%
- \kern\shadowsize \textcolor{shadowcolor}{%
- \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
- }\else%
- \makebox[\z@][l]{%
- \kern\shadowsize \textcolor{shadowcolor}{%
- \rule[-\dp\z@-\shadowsize]{\wd\z@}{\shadowsize}}%
- }\fi%
- \usebox\z@\textcolor{shadowcolor}{%
- \rule[-\dp\z@-\shadowsize]{\shadowsize}{\ht\z@+\dp\z@}}}}%
- }{}%
-}
-\renewenvironment{EmphEqMainEnv}{\@RTLfalse\collect@body\EQ_getbody:n}{%
- \if_num:w \l_EQ_equationtype_int=\z@ %ZeroCheckpoint
- \EQ_upgrade_error:
- \else:
- \EQ_post_process:
- \ignorespacesafterend
- \fi:}
-\MHInternalSyntaxOff
-% \end{macrocode}
-% \iffalse
-%</empheq-xetex-bidi.def>
%<*extarticle-xetex-bidi.def>
%\fi
% \subsection{\textsf{extarticle-xetex-bidi.def}}
@@ -11693,7 +11646,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{scrartcl-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{scrartcl-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrartcl class for XeTeX engine]
+\ProvidesFile{scrartcl-xetex-bidi.def}[2011/08/13 v0.4 bidi adaptations for scrartcl class for XeTeX engine]
\renewcommand*\maketitle[1][1]{%
\if@titlepage
\begin{titlepage}
@@ -12016,6 +11969,84 @@ bidi implementation of tufte title]
\renewcommand\marginline[1]{%
\marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
}
+\renewcommand{\@@makecaption}[3]{%
+ \cap@margin
+ \ifonelinecaptions
+ \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
+ \let\scr@tmp@footnotetext=\@footnotetext
+ \let\@footnotetext=\@gobble
+ \sbox\@tempboxa{%
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}%
+ #3\unskip\strut}}%
+ }%
+ \let\@footnotetext=\scr@tmp@footnotetext
+ \let\scr@tmp@footnotetext=\undefined
+ \setcounter{footnote}{\@tempcntb}%
+ \setcounter{mpfootnote}{\@tempcnta}%
+ \else
+ \sbox\@tempboxa{\hspace*{2\cap@width}}%
+ \fi
+ \begingroup%
+ \setlength{\@tempdima}{\cap@width}%
+ \ifdim \wd\@tempboxa >\@tempdima
+ \hb@xt@\hsize{%
+ \setbox\@tempboxa\vbox{\hsize=\cap@width
+ \ifdofullc@p
+ {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}}%
+ {#3\unskip\strut\par}}}%
+ \else%
+ \ifdim\cap@indent<\z@
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
+ \else%
+ \if@capbreak
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
+ \else
+ {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
+ {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
+ {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \setlength{\@tempdima}{\ht\@tempboxa}%
+ \addtolength{\@tempdima}{\dp\@tempboxa}%
+ \addtolength{\@tempdima}{-\ht\strutbox}%
+ \ht\@tempboxa\ht\strutbox
+ \dp\@tempboxa\@tempdima
+ \strut\cap@left
+ \box\@tempboxa
+ \cap@right\strut
+ }%
+ \else
+ \global \@minipagefalse
+ \sbox\@tempboxa{%
+ {\capfont{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}%
+ #3}}%
+ }%
+ {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\cap@right\strut}}}%
+ \fi
+ \endgroup
+}
+\renewcommand{\@makecaption}[2]{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ \@@makecaption\@firstofone{#1}{#2}%
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+}
% \end{macrocode}
% \iffalse
%</scrartcl-xetex-bidi.def>
@@ -12023,7 +12054,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{scrbook-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{scrbook-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrbook class for XeTeX engine]
+\ProvidesFile{scrbook-xetex-bidi.def}[2010/08/13 v0.4 bidi adaptations for scrbook class for XeTeX engine]
\renewcommand*\maketitle[1][1]{%
\if@titlepage
\begin{titlepage}
@@ -12402,6 +12433,84 @@ bidi implementation of tufte title]
\renewcommand\marginline[1]{%
\marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
}
+\renewcommand{\@@makecaption}[3]{%
+ \cap@margin
+ \ifonelinecaptions
+ \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
+ \let\scr@tmp@footnotetext=\@footnotetext
+ \let\@footnotetext=\@gobble
+ \sbox\@tempboxa{%
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}%
+ #3\unskip\strut}}%
+ }%
+ \let\@footnotetext=\scr@tmp@footnotetext
+ \let\scr@tmp@footnotetext=\undefined
+ \setcounter{footnote}{\@tempcntb}%
+ \setcounter{mpfootnote}{\@tempcnta}%
+ \else
+ \sbox\@tempboxa{\hspace*{2\cap@width}}%
+ \fi
+ \begingroup%
+ \setlength{\@tempdima}{\cap@width}%
+ \ifdim \wd\@tempboxa >\@tempdima
+ \hb@xt@\hsize{%
+ \setbox\@tempboxa\vbox{\hsize=\cap@width
+ \ifdofullc@p
+ {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}}%
+ {#3\unskip\strut\par}}}%
+ \else%
+ \ifdim\cap@indent<\z@
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
+ \else%
+ \if@capbreak
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
+ \else
+ {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
+ {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
+ {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \setlength{\@tempdima}{\ht\@tempboxa}%
+ \addtolength{\@tempdima}{\dp\@tempboxa}%
+ \addtolength{\@tempdima}{-\ht\strutbox}%
+ \ht\@tempboxa\ht\strutbox
+ \dp\@tempboxa\@tempdima
+ \strut\cap@left
+ \box\@tempboxa
+ \cap@right\strut
+ }%
+ \else
+ \global \@minipagefalse
+ \sbox\@tempboxa{%
+ {\capfont{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}%
+ #3}}%
+ }%
+ {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\cap@right\strut}}}%
+ \fi
+ \endgroup
+}
+\renewcommand{\@makecaption}[2]{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ \@@makecaption\@firstofone{#1}{#2}%
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+}
% \end{macrocode}
% \iffalse
%</scrbook-xetex-bidi.def>
@@ -12495,7 +12604,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{scrreprt-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{scrreprt-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrreprt class for XeTeX engine]
+\ProvidesFile{scrreprt-xetex-bidi.def}[2011/08/13 v0.4 bidi adaptations for scrreprt class for XeTeX engine]
\renewcommand*\maketitle[1][1]{%
\if@titlepage
\begin{titlepage}
@@ -12831,6 +12940,84 @@ bidi implementation of tufte title]
\renewcommand\marginline[1]{%
\marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}%
}
+\renewcommand{\@@makecaption}[3]{%
+ \cap@margin
+ \ifonelinecaptions
+ \@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
+ \let\scr@tmp@footnotetext=\@footnotetext
+ \let\@footnotetext=\@gobble
+ \sbox\@tempboxa{%
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}%
+ #3\unskip\strut}}%
+ }%
+ \let\@footnotetext=\scr@tmp@footnotetext
+ \let\scr@tmp@footnotetext=\undefined
+ \setcounter{footnote}{\@tempcntb}%
+ \setcounter{mpfootnote}{\@tempcnta}%
+ \else
+ \sbox\@tempboxa{\hspace*{2\cap@width}}%
+ \fi
+ \begingroup%
+ \setlength{\@tempdima}{\cap@width}%
+ \ifdim \wd\@tempboxa >\@tempdima
+ \hb@xt@\hsize{%
+ \setbox\@tempboxa\vbox{\hsize=\cap@width
+ \ifdofullc@p
+ {\capfont{\@hangfrom{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}}%
+ {#3\unskip\strut\par}}}%
+ \else%
+ \ifdim\cap@indent<\z@
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\hspace*{-\cap@indent}#3\unskip\strut\par}}%
+ \else%
+ \if@capbreak
+ {\capfont{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat\par}}}%
+ \noindent\@hangfrom{\hspace*{\cap@indent}}{#3\par}}}%
+ \else
+ {\capfont{\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
+ {\hspace{-\cap@indent}\scr@smashdp{\ignorespaces#1%
+ {{\caplabelfont{#2\captionformat}}}}#3\unskip\strut\par}}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \setlength{\@tempdima}{\ht\@tempboxa}%
+ \addtolength{\@tempdima}{\dp\@tempboxa}%
+ \addtolength{\@tempdima}{-\ht\strutbox}%
+ \ht\@tempboxa\ht\strutbox
+ \dp\@tempboxa\@tempdima
+ \strut\cap@left
+ \box\@tempboxa
+ \cap@right\strut
+ }%
+ \else
+ \global \@minipagefalse
+ \sbox\@tempboxa{%
+ {\capfont{\scr@smashdp{\strut\ignorespaces
+ #1{{\caplabelfont{#2\captionformat}}}}%
+ #3}}%
+ }%
+ {\capfont{\hb@xt@\hsize{\strut\cap@left\if@RTL\beginR\fi\box\@tempboxa\if@RTL\endR\fi\cap@right\strut}}}%
+ \fi
+ \endgroup
+}
+\renewcommand{\@makecaption}[2]{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ \@@makecaption\@firstofone{#1}{#2}%
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+}
% \end{macrocode}
% \iffalse
%</scrreprt-xetex-bidi.def>
@@ -14181,10 +14368,6 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\setlength\@tempdima{#1}% support calc
\hb@xt@\@tempdima{\csname bm@#2\endcsname}%
\@end@tempboxa}
-\def\bm@l{\if@RTL\hss\else\fi\unhbox\@tempboxa\if@RTL\else\hss\fi}
-\def\bm@r{\if@RTL\else\hss\fi\unhbox\@tempboxa\if@RTL\hss\else\fi}
-\def\bm@b{\hss\unhbox\@tempboxa}
-\def\bm@t{\unhbox\@tempboxa\hss}
\def\LTRmarginpar{%
\ifhmode
\@bsphack
@@ -14434,7 +14617,6 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@ifpackageloaded{color}{\input{color-xetex-bidi.def}}{}
\@ifpackageloaded{xcolor}{\input{xcolor-xetex-bidi.def}}{}
\@ifpackageloaded{colortbl}{\input{colortbl-xetex-bidi.def}}{}
-\@ifpackageloaded{empheq}{\input{empheq-xetex-bidi.def}}{}
\@ifpackageloaded{float}{\input{float-xetex-bidi.def}}{}
\@ifpackageloaded{flowfram}{\input{flowfram-xetex-bidi.def}}{}
\@ifpackageloaded{xltxtra}{\input{xltxtra-xetex-bidi.def}}{}
diff --git a/Master/texmf-dist/source/latex/bidi/bidi.ins b/Master/texmf-dist/source/latex/bidi/bidi.ins
index 4cebaa84257..301b5256d2d 100644
--- a/Master/texmf-dist/source/latex/bidi/bidi.ins
+++ b/Master/texmf-dist/source/latex/bidi/bidi.ins
@@ -73,7 +73,6 @@ by Vafa Khalighi.
\generate{\file{cvthemebidiclassic.sty}{\from{\jobname.dtx}{cvthemebidiclassic.sty}}}
\generate{\file{dblfnote-xetex-bidi.def}{\from{\jobname.dtx}{dblfnote-xetex-bidi.def}}}
\generate{\file{draftwatermark-xetex-bidi.def}{\from{\jobname.dtx}{draftwatermark-xetex-bidi.def}}}
-\generate{\file{empheq-xetex-bidi.def}{\from{\jobname.dtx}{empheq-xetex-bidi.def}}}
\generate{\file{extarticle-xetex-bidi.def}{\from{\jobname.dtx}{extarticle-xetex-bidi.def}}}
\generate{\file{extbook-xetex-bidi.def}{\from{\jobname.dtx}{extbook-xetex-bidi.def}}}
\generate{\file{extletter-xetex-bidi.def}{\from{\jobname.dtx}{extletter-xetex-bidi.def}}}