summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-09-24 22:33:22 +0000
committerKarl Berry <karl@freefriends.org>2013-09-24 22:33:22 +0000
commitd26f74af584101e8d5944533abc7b968a770ac1a (patch)
treedc7d9b977b1c8e39ecbd98e11d5970edf5e28320 /Master/texmf-dist/source/xelatex
parent215ff41c3a53359bb44fe80bb5584619026bc802 (diff)
bidi (23sep13)
git-svn-id: svn://tug.org/texlive/trunk@31748 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.dtx260
-rw-r--r--Master/texmf-dist/source/xelatex/bidi/bidi.ins64
2 files changed, 124 insertions, 200 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
index 9d32b8973e5..c4a52b3cccb 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx
@@ -5,14 +5,14 @@
%<*readme>
___________________
The bidi package
-v13.8
+v13.9
This package provides a convenient interface for typesetting
bidirectional texts in Plain TeX and LaTeX, using XeTeX engine.
This version fixes bugs and adds new features; for more details please see
-the ChangeLog.
+the Change History section at the end of the documentation.
If you want to report any bugs or typos and corrections in the documentation,
or ask for any new features, or suggest any improvements, or ask any questions
@@ -24,7 +24,7 @@ a minimal working examples 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: 2013/09/22
+Current version release date: 2013/09/23
___________________
Vafa Khalighi
@@ -35,121 +35,9 @@ It may be distributed and/or modified under the LaTeX Project Public License,
version 1.3c or higher (your choice). The latest version of
this license is at: http://www.latex-project.org/lppl.txt
-This work is “maintained” (as per LPPL maintenance status)
+This work is “author-maintained” (as per LPPL maintenance status)
by Vafa Khalighi.
%</readme>
-%<*changelog>
-2013/09/22 version 13.8 Vafa Khalighi
- * Version 13.8 released.
- * LuaTeX-related files removed; bidi package now only works with XeTeX.
- * Moved all `\DeclareOption's to `bidi.sty'.
- * `RTLdocument' and `rldocument' option no longer insert `\autofootnoterule' at
- the beginning of the document.
- * All footnote rule related commands can now be used in the preamble of your
- LaTeX document and not necessarily at the beginning of the document.
- * New conditional for `extrafootnotefeatures' of the package.
- * bidi package macros for LaTeX `fleqn' and `leqno' options and `\@eqnum' command are not
- loaded if the `amsmath' package is loaded.
- * Redefinition of `\[ ... \]' display math of `amsmath' package removed from `amsmath-xetex-bidi.def'.
- * Synced `mdframed-xetex-bidi.def' with version 1.9b of `mdframed' package.
-
-2013/05/28 version 13.5 Vafa Khalighi
- * Version 13.5 released.
- * Added alignment option to `calstable' environment.
-
-2013/05/26 version 13.4 Vafa Khalighi
- * Version 13.4 released.
- * Synced `cals-xetex-bidi.def' with version 2.1 of `cals' package.
-
-2013/05/22 version 13.3 Vafa Khalighi
- * Version 13.3 released.
- * `cals' package partially supported.
- * Fixed `sideways' environment of `rotating' package in RTL mode.
- * `newfloat' package supported.
-
-2013/05/01 version 13.2 Vafa Khalighi
- * Version 13.2 released.
- * `fancybox' package is supported.
- * Removed redefinition of `\eqref' from `amsmath-xetex-bidi.def'.
-
-2013/04/27 version 13.1 Vafa Khalighi
- * Version 13.1 released.
- * Removed redefinition of `\@imakebox' from `xetex-bidi.def'.
-
-2013/04/26 version 13.0 Vafa Khalighi
- * Version 13.0 released.
- * Fixed wrong behaviour of `\autofootnoterule' with `\footnote'.
-
-2013/04/25 version 12.9 Vafa Khalighi
- * Version 12.9 released.
- * Fixed bad interaction of `\numberwithin' command of `amsmath' package
- with `\SepMark' command in `LTR' environment.
-
-2013/04/24 version 12.8 Vafa Khalighi
- * Version 12.8 released.
- * Fixed footnotes inside `minipage' environment.
- * Fixed footnote-rules inside `minipage' environment.
- * Fixed footnote-rules with `mdframed' package.
-
-2013/04/16 version 12.7 Vafa Khalighi
- * Version 12.7 released.
- * Fixed `frametitle' of `mdframed' package in RTL.
-
-2013/04/12 version 12.6 Vafa Khalighi
- * Version 12.6 released.
- * `rotating' package supported.
-
-2013/04/10 version 12.5 Vafa Khalighi
- * Version 12.5 released.
- * Redefinition of `\endpicture' removed from `xetex-bidi.def'.
- * Updated `crop-xetex-bidi.def'.
- * Fixed the issue of `showframe' package when the main direction is RTL.
- * `ftnright' package no longer loaded by `bidi' package; instead in two-columns
- documents, only `\textwidthfootnoterule' works.
-
-2013/04/09 version 12.4 Vafa Khalighi
- * Version 12.4 released.
- * `midfloat' package supported.
- * Fixed reported bug in `biditools' package.
- * Fixed redefinitions of `\l@part' and `\l@chapter' when `titletoc' package loaded.
- * Synced `lettrine-xetex-bidi.def' with version 1.64 of `lettrine' package.
-
-2013/04/08 version 12.3 Vafa Khalighi
- * Version 12.3 released.
- * Fixed `c' position of `window' environment of `picinpar' package in RTL.
- * Disabled some frequently-used commands of `bidi' package in pdfstring
- when `hyperref' package is used.
- * Disabled footnote-rules when `ftnright' package is used.
- * Fixed the issue of `\ref' not working in math-mode in RTL when `hyperref'
- package is used.
- * `biditufte' bundle and `bidi-longtable' package documented.
- * Fixed wrong spacing of `\color' in RTL.
- * `mdframed' package supported.
- * `floatrow' package supported.
- * Loaded `ftnright' package automatically in `bidi' package for two-columns documents.
-
-2013/04/04 version 12.2 Vafa Khalighi
- * Version 12.2 released.
- * Fixed the issue of `\ref' in math mode when `hyperref' loaded.
- * Removed `\text' redefinitions from `amsmath-xetex-bidi.def', created a
- new file `amstext-xetex-bidi.def', took the original definition of `\text' from
- `amstext' package and put the modified version in `amstext-xetex-bidi.def'.
- * Fixed the numbering issue of `float' package.
-
-2013/04/01 version 12.1 Vafa Khalighi
- * Version 12.1 released.
- * On page 17, line 2 of the documentation, `scartcl' changed to `scrartcl'.
- * Fixed `format=hang' option of `caption' package in RTL.
- * If any pages end inside `RTL/LTR' environment, then the direction of the
- headers and footers do not get confused.
- * Fixed `koma-script' and `caption' combination issue in RTL.
- * Version 0.2 of `bidi.tex' released.
- * Fixed `\setRTL' issue in plain xetex.
- * Fixed horizontal alignment of `longtable'.
- * `cuted' package supported.
- * `ftnright' package supported.
- * Fixed `showframe' option of geometry package.
-%</changelog>
%<*internal>
\fi
\begingroup
@@ -159,27 +47,18 @@ by Vafa Khalighi.
\keepsilent
\preamble
- ______________________________________
- Copyright © 2009–2013 Vafa Khalighi
+ __________________________________________________
+ Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
- License information appended.
+ It may be distributed and/or modified under the LaTeX Project Public License,
+ version 1.3c or higher (your choice). The latest version of
+ this license is at: http://www.latex-project.org/lppl.txt
+ This work is “author-maintained” (as per LPPL maintenance status)
+ by Vafa Khalighi.
-\endpreamble
-\postamble
-
-Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
-
-It may be distributed and/or modified under the LaTeX Project Public License,
-version 1.3c or higher (your choice). The latest version of
-this license is at: http://www.latex-project.org/lppl.txt
-This work is “maintained” (as per LPPL maintenance status)
-by Vafa Khalighi.
-
-
-
-\endpostamble
+\endpreamble
\askforoverwritefalse
\generate{\file{amsart-xetex-bidi.def}{\from{\jobname.dtx}{amsart-xetex-bidi.def}}}
\generate{\file{amsbook-xetex-bidi.def}{\from{\jobname.dtx}{amsbook-xetex-bidi.def}}}
@@ -301,7 +180,6 @@ by Vafa Khalighi.
\generate{\file{\jobname.ins}{\from{\jobname.dtx}{batchfile}}}
\nopreamble\nopostamble
\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}}
-\generate{\file{ChangeLog.txt}{\from{\jobname.dtx}{changelog}}}
\generate{\file{bidi-logo.tex}{\from{\jobname.dtx}{bidi-logo.tex}}}
\generate{\file{bidisample2e.tex}{\from{\jobname.dtx}{bidisample2e.tex}}}
\generate{\file{bidismall2e.tex}{\from{\jobname.dtx}{bidismall2e.tex}}}
@@ -323,13 +201,12 @@ by Vafa Khalighi.
\generate{\file{test-tabulary.tex}{\from{\jobname.dtx}{test-tabulary.tex}}}
\endgroup
\immediate\write18{mv README.txt README}
-\immediate\write18{mv ChangeLog.txt ChangeLog}
\immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx}
\immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo}
%</internal>
%
%<*driver>
-\documentclass{artikel3}
+\documentclass{ltxdoc}
\usepackage{calc}
\usepackage{pifont}
\usepackage{bbding}
@@ -363,7 +240,7 @@ by Vafa Khalighi.
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\OnlyDescription
+%\OnlyDescription
\begin{document}
\DocInput{\jobname.dtx}
\PrintIndex
@@ -374,15 +251,31 @@ by Vafa Khalighi.
%
% \fi
%
-% \GetFileInfo{\jobname.sty}
-% \CheckSum{0}
-% \makeatletter
+% \GetFileInfo{\jobname.dtx}
+%% \CheckSum{41928}
+%% \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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
+%\changes{v13.9}{2013/09/23}{Added implementaion of the package.}
% \title{The \textsf{bidi} Package\\[10pt]
% \includegraphics[width=0.5\textwidth]{bidi-logo}\\[10pt]
% Bidirectional typesetting in plain \TeX{} and \LaTeX, using \XeTeX{} engine}
% \author{Vafa Khalighi\\
% \url{persian-tex@tug.org}}
-% \date{\today\qquad Version 13.8}
+% \date{\today\qquad Version 13.9}
%\maketitle
%\vskip 0pt plus 3fill
%\fbox{%
@@ -414,9 +307,11 @@ by Vafa Khalighi.
%in plain TeX and LaTeX. The package includes adaptations for use
%with many other commonly-used packages.
%Copyright (c) 2009-2013 Vafa Khalighi
-%v13.8, 2013/09/22
+%2013/09/23, v13.9
%License: LaTeX Project Public License, version 1.3c or higher (your choice)
%Location on CTAN: /macros/xetex/latex/bidi
+%Issue tracker: https://github.com/vafa/bidi/issues
+%Support: persian-tex@tug.org
%\end{lstlisting}
%\part{\LaTeX\ Manual}
%\section{Basics}
@@ -1495,7 +1390,7 @@ by Vafa Khalighi.
%\fi
% \subsection{\textsf{amsmath-xetex-bidi.def}}
% \begin{macrocode}
-\ProvidesFile{amsmath-xetex-bidi.def}[2013/09/22 v0.7 bidi adaptations for amsmath package for XeTeX engine]
+\ProvidesFile{amsmath-xetex-bidi.def}[2013/09/23 v0.8 bidi adaptations for amsmath package for XeTeX engine]
\let\veqno=\eqno
\iftagsleft@ \let\veqno=\leqno \fi
\renewcommand{\numberwithin}[3][\arabic]{%
@@ -1505,7 +1400,7 @@ by Vafa Khalighi.
\@xp\xdef\csname the#2\endcsname{%
\@xp\@nx\csname the#3\endcsname \@nx\@SepMark\@nx#1{#2}}}}%
}
-\def\tagform@#1{\maketag@@@{\if@Latin\else\beginR\fi(\ignorespaces#1\unskip\@@italiccorr)\if@Latin\else\endR\fi}}
+\def\maketag@@@#1{\hbox{\m@th\normalfont\if@Latin\else\beginR\fi#1\if@Latin\else\endR\fi}}
% \end{macrocode}
% \iffalse
%</amsmath-xetex-bidi.def>
@@ -2734,22 +2629,35 @@ by Vafa Khalighi.
% \subsection{\textsf{bidi.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2013/09/22}
-\def\bidiversion{v13.8}
+\def\bididate{2013/09/23}
+\def\bidiversion{v13.9}
\ProvidesPackage{bidi}[\bididate\space \bidiversion\space
Bidirectional typesetting in plain TeX and LaTeX]
-\edef\bidiinfo{%
-bidi package (Bidirectional typesetting in plain TeX and LaTeX, using XeTeX engine)^^J
-Description: A convenient interface for typesetting bidirectional^^J
-texts in plain TeX and LaTeX. The package includes adaptations for use^^J
-with many other commonly-used packages.^^J
-Copyright © 2009–2013 Vafa Khalighi^^J
-\bidiversion, \bididate^^J
-License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
-Location on CTAN: /macros/xetex/latex/bidi}
-\typeout{\bidiinfo}
+\edef\@bidi@info{******************************************************************************^^J%
+* ^^J%
+* bidi package (Bidirectional typesetting in plain TeX and LaTeX, using^^J%
+* XeTeX engine)^^J%
+* ^^J%
+* Description: A convenient interface for typesetting bidirectional texts in^^J%
+* plain TeX and LaTeX. The package includes adaptations for use with^^J%
+* many other commonly-used packages.^^J%
+* ^^J%
+* Copyright © 2009–2013 Vafa Khalighi^^J%
+* ^^J%
+* \bididate, \bidiversion^^J%
+* ^^J%
+* License: LaTeX Project Public License, version 1.3c^^J%
+* or higher (your choice)^^J%
+* ^^J%
+* Location on CTAN: /macros/xetex/latex/bidi^^J%
+* ^^J%
+* Issue tracker: https://github.com/vafa/bidi/issues^^J%
+* ^^J%
+Support: persian-tex@tug.org^^J%
+******************************************************************************}
+\typeout{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
-\everyjob{\bidi@everyjob\typeout{\bidiinfo}}
+\everyjob{\bidi@everyjob\typeout{\@bidi@info}}
\RequirePackage{iftex}
\RequireXeTeX
\RequirePackage{biditools}
@@ -2758,7 +2666,6 @@ Location on CTAN: /macros/xetex/latex/bidi}
\RequirePackage{ltxcmds}
\eqnewif{\if@RTLmain}{\if@rlmain}
\eqnewif{\if@RTL}{\if@rl}
-\newif\if@RTLmaths
\newif\if@Latin
\eqnewif{\if@RTLtab}{\if@tab@rl}
\newif\if@RTLmarginpar
@@ -2803,23 +2710,36 @@ Location on CTAN: /macros/xetex/latex/bidi}
%\fi
% \subsection{\textsf{bidi.tex}}
% \begin{macrocode}
-\def\bididate{2013/09/22}
+\def\bididate{2013/09/23}
\def\bidiversion{v0.2}
\catcode`@=11
\let \protect \relax
\newlinechar`\^^J
-\edef\bidiinfo{%
-bidi package (Bidirectional typesetting in plain TeX and LaTeX, using XeTeX engine)^^J
-Description: A convenient interface for typesetting bidirectional^^J
-texts in plain TeX and LaTeX. The package includes adaptations for use^^J
-with many other commonly-used packages.^^J
-Copyright © 2009–2013 Vafa Khalighi^^J
-\bidiversion, \bididate^^J
-License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J
-Location on CTAN: /macros/xetex/latex/bidi}
-\message{\bidiinfo}
+\edef\@bidi@info{******************************************************************************^^J%
+* ^^J%
+* bidi package (Bidirectional typesetting in plain TeX and LaTeX, using^^J%
+* XeTeX engine)^^J%
+* ^^J%
+* Description: A convenient interface for typesetting bidirectional texts in^^J%
+* plain TeX and LaTeX. The package includes adaptations for use with^^J%
+* many other commonly-used packages.^^J%
+* ^^J%
+* Copyright © 2009–2013 Vafa Khalighi^^J%
+* ^^J%
+* \bididate, \bidiversion^^J%
+* ^^J%
+* License: LaTeX Project Public License, version 1.3c^^J%
+* or higher (your choice)^^J%
+* ^^J%
+* Location on CTAN: /macros/xetex/latex/bidi^^J%
+* ^^J%
+* Issue tracker: https://github.com/vafa/bidi/issues^^J%
+* ^^J%
+Support: persian-tex@tug.org^^J%
+******************************************************************************}
+\message{\@bidi@info}
\edef\bidi@everyjob{\the\everyjob}
-\everyjob{\bidi@everyjob\message{\bidiinfo}}
+\everyjob{\bidi@everyjob\message{\@bidi@info}}
\input iftex.sty
\RequireXeTeX
\newif\if@RTLmain
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.ins b/Master/texmf-dist/source/xelatex/bidi/bidi.ins
index 3a79c8d1a26..875108f884f 100644
--- a/Master/texmf-dist/source/xelatex/bidi/bidi.ins
+++ b/Master/texmf-dist/source/xelatex/bidi/bidi.ins
@@ -6,34 +6,32 @@
%%
%% bidi.dtx (with options: `batchfile')
%%
-%% ______________________________________
-%% Copyright © 2009–2013 Vafa Khalighi
+%% __________________________________________________
+%% Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
%%
-%% License information appended.
+%% It may be distributed and/or modified under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
%%
%%
\input docstrip.tex
\keepsilent
\preamble
- ______________________________________
- Copyright © 2009–2013 Vafa Khalighi
-
- License information appended.
-
-\endpreamble
-\postamble
+ __________________________________________________
+ Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
-Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
+ It may be distributed and/or modified under the LaTeX Project Public License,
+ version 1.3c or higher (your choice). The latest version of
+ this license is at: http://www.latex-project.org/lppl.txt
-It may be distributed and/or modified under the LaTeX Project Public License,
-version 1.3c or higher (your choice). The latest version of
-this license is at: http://www.latex-project.org/lppl.txt
+ This work is “author-maintained” (as per LPPL maintenance status)
+ by Vafa Khalighi.
-This work is “maintained” (as per LPPL maintenance status)
-by Vafa Khalighi.
-
-\endpostamble
+\endpreamble
\askforoverwritefalse
\generate{\file{amsart-xetex-bidi.def}{\from{\jobname.dtx}{amsart-xetex-bidi.def}}}
\generate{\file{amsbook-xetex-bidi.def}{\from{\jobname.dtx}{amsbook-xetex-bidi.def}}}
@@ -150,17 +148,23 @@ by Vafa Khalighi.
\generate{\file{latex-xetex-bidi.def}{\from{\jobname.dtx}{latex-xetex-bidi.def}}}
\generate{\file{xltxtra-xetex-bidi.def}{\from{\jobname.dtx}{xltxtra-xetex-bidi.def}}}
\endbatchfile
-%%
-%% Copyright © 2009–2013 Vafa Khalighi <persian-tex@tug.org>
-%%
-%% It may be distributed and/or modified under the LaTeX Project Public License,
-%% version 1.3c or higher (your choice). The latest version of
-%% this license is at: http://www.latex-project.org/lppl.txt
-%%
-%% This work is “maintained” (as per LPPL maintenance status)
-%% by Vafa Khalighi.
-%%
-%%
-%%
+%% \CheckSum{41928}
+%% \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
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+%%
+\endinput
%%
%% End of file `bidi.ins'.