summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-15 22:59:21 +0000
committerKarl Berry <karl@freefriends.org>2016-10-15 22:59:21 +0000
commit2f5c92ff1f807c597f1948c3e2bbf173ebcc8700 (patch)
treee4e787cea9da506b7edfdde8fc6b9b94fdf56098 /Master/texmf-dist/source/xelatex
parentda81f5ddede1a2e77b696387d4e95932c71c9b2d (diff)
bidi (11oct16)
git-svn-id: svn://tug.org/texlive/trunk@42281 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.dtx27
1 files changed, 15 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index bd092c4f943..fe6ee29b823 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
@@ -5,7 +5,7 @@
%<*readme>
___________________
The bidi package
-v20.1
+v20.2
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
@@ -25,7 +25,7 @@ a minimal working example showing the issue, and always choose the appropriate
label for your query (i.e. if you are reporting any bugs, choose `Bug' label).
-Current version release date: 2016/10/09
+Current version release date: 2016/10/11
___________________
Vafa Khalighi
@@ -310,7 +310,7 @@ by Vafa Khalighi.
%\OnlyDescription
\begin{document}
\DocInput{\jobname.dtx}
-% \PrintIndex
+ \PrintIndex
\PrintChanges
\end{document}
%</driver>
@@ -322,7 +322,7 @@ by Vafa Khalighi.
%\changes{v13.9}{2013/09/23}{Added implementaion of the package.}
% \title{\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}\\
%\LARGE Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine\\[5pt]
-%\large Documentation for \textcolor{blue!65!black}{version 20.1}}
+%\large Documentation for \textcolor{blue!65!black}{version 20.2}}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
%\setcounter{page}{0}
@@ -333,7 +333,7 @@ by Vafa Khalighi.
%\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}}
%
%\Large
-%Documentation for \textcolor{blue!65!black}{version 20.1}}
+%Documentation for \textcolor{blue!65!black}{version 20.2}}
%
%\vskip 0pt plus 3fill
%\textit{\large to my Master, \textbf{Ferdowsi The Great}}
@@ -384,7 +384,7 @@ by Vafa Khalighi.
%*
%* Copyright (c) 2009--2016 Vafa Khalighi
%*
-%* 2016/10/09, v20.1
+%* 2016/10/11, v20.2
%*
%* License: LaTeX Project Public License, version
%* 1.3c or higher (your choice)
@@ -1141,7 +1141,7 @@ by Vafa Khalighi.
%\iffalse
%<*table>
%\fi
-%% \CheckSum{47521}
+%% \CheckSum{47525}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -2984,8 +2984,8 @@ by Vafa Khalighi.
% \subsection{\textsf{bidi.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2016/10/09}
-\def\bidiversion{v20.1}
+\def\bididate{2016/10/11}
+\def\bidiversion{v20.2}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\@bidi@info{****************************************************^^J%
@@ -13823,7 +13823,7 @@ bidi implementation of tufte title]
%\fi
% \subsection{\textsf{listings-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{listings-xetex-bidi.def}[2016/10/09 v1.1 bidi adaptations for listings package for XeTeX engine]
+\ProvidesFile{listings-xetex-bidi.def}[2016/10/11 v1.2 bidi adaptations for listings package for XeTeX engine]
\lst@Key{captiondirection}{textdirection}{%
\lstKV@SwitchCases{#1}%
{textdirection&\\%
@@ -13872,6 +13872,7 @@ bidi implementation of tufte title]
\vskip\belowcaptionskip}%
\def\lst@makecaption{\@bidi@lst@makecaption}
\def\lst@maketitle{\@bidi@lst@makecaption\lst@title@dropdelim}
+\bidi@AtEndPreamble{%
\bidi@patchcmd{\lst@MakeCaption}{%
\ifx #1t%
\ifx\lst@@caption\@empty\expandafter\lst@HRefStepCounter \else
@@ -13884,7 +13885,7 @@ bidi implementation of tufte title]
\expandafter\refstepcounter
\fi {lstlisting}%
\bidi@lst@ensure@caption@direction{\@RTLfalse}{\@RTLfalse}%
-}{}{}
+}{}{}%
\bidi@patchcmd{\lst@MakeCaption}{%
\addcontentsline{lol}{lstlisting}%
{\protect\numberline{\thelstlisting}\lst@@caption}%
@@ -13894,8 +13895,10 @@ bidi implementation of tufte title]
\addcontentsline{lol}{lstlisting}%
{\protect\numberline{\thelstlisting}\lst@@caption}%
\endgroup%
-}{}{}
+}{}{}%
+}
\@ifpackageloaded{caption}{%
+ \let\@bidi@lst@makecaption\caption@makecaption%
\def\lst@makecaption{\caption@starfalse\@bidi@lst@makecaption}%
\def\lst@maketitle{\caption@startrue\@bidi@lst@makecaption\@empty}%
}{%