diff options
author | Karl Berry <karl@freefriends.org> | 2017-08-09 22:16:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-08-09 22:16:16 +0000 |
commit | cc1830de760ee3ac86c6df5ca7407e9ecf1be41a (patch) | |
tree | e1a53f822c6ff6d4cca54c74d55e7a717865b101 /Master/texmf-dist/source | |
parent | 9c2a25cc4301f5c03818c5831c397c95cf3501c8 (diff) |
bidi (9aug17)
git-svn-id: svn://tug.org/texlive/trunk@45001 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 55 |
1 files changed, 35 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx index 6b2e6eac870..c6dffe15a20 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 -v30.8 +v30.9 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: 2017/06/17 +Current version release date: 2017/08/09 ___________________ Vafa Khalighi @@ -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 30.8}} +%\large Documentation for \textcolor{blue!65!black}{version 30.9}} % \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 30.8}} +%Documentation for \textcolor{blue!65!black}{version 30.9}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -384,7 +384,7 @@ by Vafa Khalighi. %* %* Copyright (c) 2009--2017 Vafa Khalighi %* -%* 2017/06/17, v30.8 +%* 2017/08/09, v30.9 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -1139,7 +1139,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{48381} +%% \CheckSum{48398} %% \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 @@ -1164,7 +1164,7 @@ by Vafa Khalighi. % % % \begin{macrocode} -\ProvidesFile{amsart-xetex-bidi.def}[2017/06/09 v1.0 bidi adaptations for amsart class for XeTeX engine] +\ProvidesFile{amsart-xetex-bidi.def}[2017/08/09 v1.1 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 @@ -1200,6 +1200,7 @@ by Vafa Khalighi. \long\def\@footnotetext#1{% \insert\footins{% \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \reset@font% \bidi@@footnotetext@font% \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox @@ -1213,6 +1214,7 @@ by Vafa Khalighi. \long\def\@RTLfootnotetext#1{% \insert\footins{% \@RTLtrue% + \reset@font% \bidi@@RTLfootnotetext@font% \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox @@ -1228,6 +1230,7 @@ by Vafa Khalighi. \long\def\@LTRfootnotetext#1{% \insert\footins{% \@RTLfalse% + \reset@font% \bidi@@LTRfootnotetext@font% \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox @@ -1390,7 +1393,7 @@ by Vafa Khalighi. %\fi % \subsection{\textsf{amsbook-xetex-bidi.def}} % \begin{macrocode} -\ProvidesFile{amsbook-xetex-bidi.def}[2017/06/09 v1.1 bidi adaptations for amsbook class for XeTeX engine] +\ProvidesFile{amsbook-xetex-bidi.def}[2017/08/09 v1.2 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 @@ -1434,6 +1437,7 @@ by Vafa Khalighi. \long\def\@footnotetext#1{% \insert\footins{% \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \reset@font% \bidi@@footnotetext@font% \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox @@ -1447,6 +1451,7 @@ by Vafa Khalighi. \long\def\@RTLfootnotetext#1{% \insert\footins{% \@RTLtrue% + \reset@font% \bidi@@RTLfootnotetext@font% \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox @@ -1461,6 +1466,7 @@ by Vafa Khalighi. \long\def\@LTRfootnotetext#1{% \insert\footins{% \@RTLfalse% + \reset@font% \bidi@@LTRfootnotetext@font% \normalfont\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox @@ -2988,8 +2994,8 @@ by Vafa Khalighi. % \subsection{\textsf{bidi.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\bididate{2017/06/17} -\def\bidiversion{v30.8} +\def\bididate{2017/08/09} +\def\bidiversion{v30.9} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -5734,7 +5740,7 @@ bidi implementation of tufte float] % \subsection{\textsf{bidituftesidenote.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bidituftesidenote}[2015/04/30 v0.3 +\ProvidesPackage{bidituftesidenote}[2017/08/09 v0.4 bidi implementation of tufte sidenote] \RequirePackage{xifthen} \RequirePackage{ragged2e} @@ -6095,6 +6101,7 @@ bidi implementation of tufte sidenote] \bidituftesidenotemarginpar{% \hbox{}\vspace*{#1}% \def\baselinestretch {\setspace@singlespace}% + \reset@font% \bidi@@footnotetext@font% \reset@font\footnotesize% \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text \vspace*{-1\baselineskip}\noindent% @@ -6112,6 +6119,7 @@ bidi implementation of tufte sidenote] \LTRbidituftesidenotemarginpar{% \hbox{}\vspace*{#1}% \def\baselinestretch {\setspace@singlespace}% + \reset@font% \bidi@@LTRfootnotetext@font% \reset@font\footnotesize% \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text \vspace*{-1\baselineskip}\noindent% @@ -6129,6 +6137,7 @@ bidi implementation of tufte sidenote] \RTLbidituftesidenotemarginpar{% \hbox{}\vspace*{#1}% \def\baselinestretch {\setspace@singlespace}% + \reset@font% \bidi@@RTLfootnotetext@font% \reset@font\footnotesize% \@bidituftesidenote@margin@par% use parindent and parskip settings for marginal text \vspace*{-1\baselineskip}\noindent% @@ -12171,7 +12180,7 @@ bidi implementation of tufte title] %\fi % \subsection{\textsf{footnote-xetex-bidi.def}} % \begin{macrocode} -\ProvidesFile{footnote-xetex-bidi.def}[2016/09/09 v1.0 bidi footnote macros for XeTeX engine] +\ProvidesFile{footnote-xetex-bidi.def}[2017/08/09 v1.1 bidi footnote macros for XeTeX engine] \if@RTLmain\@RTL@footnotetrue\else\@RTL@footnotefalse\fi \newif\ifbidi@autofootnoterule \def\bidi@mpfootnoterule{\footnoterule} @@ -12342,12 +12351,13 @@ bidi implementation of tufte title] \def\unsetfootnoteRL{\@RTL@footnotefalse} \def\setfootnoteLR{\unsetfootnoteRL} -\newcommand*{\bidi@@footnotetext@font}{\reset@font\footnotesize} -\newcommand*{\bidi@@LTRfootnotetext@font}{\reset@font\footnotesize} -\newcommand*{\bidi@@RTLfootnotetext@font}{\reset@font\footnotesize} +\newcommand*{\bidi@@footnotetext@font}{\footnotesize} +\newcommand*{\bidi@@LTRfootnotetext@font}{\footnotesize} +\newcommand*{\bidi@@RTLfootnotetext@font}{\footnotesize} \long\def\@footnotetext#1{\insert\footins{% \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% + \reset@font% \bidi@@footnotetext@font% \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep @@ -12364,6 +12374,7 @@ bidi implementation of tufte title] \long\def\@RTLfootnotetext#1{\insert\footins{% \@RTLtrue% + \reset@font% \bidi@@RTLfootnotetext@font% \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep @@ -12379,6 +12390,7 @@ bidi implementation of tufte title] \long\def\@LTRfootnotetext#1{\insert\footins{% \@RTLfalse% + \reset@font% \bidi@@LTRfootnotetext@font% \reset@font\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep @@ -12408,6 +12420,7 @@ bidi implementation of tufte title] \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\bidi@mpfootnoterule\right@footnoterule\fi\fi% \global\setbox\@mpfootins\vbox{\@RTLtrue% \unvbox\@mpfootins + \reset@font% \bidi@@RTLfootnotetext@font% \reset@font\footnotesize \hsize\columnwidth \@parboxrestore @@ -12421,6 +12434,7 @@ bidi implementation of tufte title] \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\global\let\bidi@mpfootnoterule\left@footnoterule\fi\fi% \global\setbox\@mpfootins\vbox{\@RTLfalse% \unvbox\@mpfootins + \reset@font% \bidi@@LTRfootnotetext@font% \reset@font\footnotesize \hsize\columnwidth \@parboxrestore @@ -12434,6 +12448,7 @@ bidi implementation of tufte title] \ifbidi@autofootnoterule\ifnum\c@mpfootnote=\@ne\if@RTL@footnote\global\let\bidi@mpfootnoterule\right@footnoterule\else\global\let\bidi@mpfootnoterule\left@footnoterule\fi\fi\fi% \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% \unvbox\@mpfootins + \reset@font% \bidi@@footnotetext@font% \reset@font\footnotesize \hsize\columnwidth \@parboxrestore @@ -13304,7 +13319,7 @@ bidi implementation of tufte title] %\fi % \subsection{\textsf{hyperref-xetex-bidi.def}} % \begin{macrocode} -\ProvidesFile{hyperref-xetex-bidi.def}[2015/11/26 v0.9 bidi adaptations for hyperref package for XeTeX engine] +\ProvidesFile{hyperref-xetex-bidi.def}[2017/08/09 v1.0 bidi adaptations for hyperref package for XeTeX engine] \AtBeginDocument{% \def\contentsline#1#2#3#4{% \ifx\\#4\\% @@ -13690,17 +13705,17 @@ bidi implementation of tufte title] \fi \def\Hy@BeginAnnot#1{% \ifmmode\else\beginL\fi% - \stepcounter{Hy@AnnotLevel}% - \ifnum\value{Hy@AnnotLevel}=\@ne + \global\advance\c@Hy@AnnotLevel\@ne + \ifnum\c@Hy@AnnotLevel=\@ne #1% \fi } \def\Hy@EndAnnot{% - \ifnum\value{Hy@AnnotLevel}=\@ne + \ifnum\c@Hy@AnnotLevel=\@ne \Hy@endcolorlink \@pdfm@mark{eann}% \fi - \addtocounter{Hy@AnnotLevel}\m@ne + \global\advance\c@Hy@AnnotLevel\m@ne \ifmmode\else\endL\fi% } \def\hyper@link#1#2#3{% |