diff options
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/bidi/bidi.dtx | 77 |
1 files changed, 50 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/xelatex/bidi/bidi.dtx b/Master/texmf-dist/source/xelatex/bidi/bidi.dtx index 1d76092e8b6..4f0b317a253 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 -v16 +v16.1 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: 2014/11/20 +Current version release date: 2014/11/21 ___________________ Vafa Khalighi @@ -317,7 +317,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 16}} +%\large Documentation for \textcolor{blue!65!black}{version 16.1}} % \author{Vafa Khalighi\\ % \url{persian-tex@tug.org}} %\setcounter{page}{0} @@ -328,7 +328,7 @@ by Vafa Khalighi. %\textcolor{blue!65!black}{\Huge The \textsf{bidi} \textit{Package}} % %\Large -%Documentation for \textcolor{blue!65!black}{version 16}} +%Documentation for \textcolor{blue!65!black}{version 16.1}} % %\vskip 0pt plus 3fill %\textit{\large to my Master, \textbf{Ferdowsi The Great}} @@ -379,7 +379,7 @@ by Vafa Khalighi. %* %* Copyright © 2009–2014 Vafa Khalighi %* -%* 2014/11/20, v16 +%* 2014/11/21, v16.1 %* %* License: LaTeX Project Public License, version %* 1.3c or higher (your choice) @@ -1136,7 +1136,7 @@ by Vafa Khalighi. %\iffalse %<*table> %\fi -%% \CheckSum{42863} +%% \CheckSum{42904} %% \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 @@ -2667,8 +2667,8 @@ by Vafa Khalighi. % \subsection{\textsf{bidi.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\bididate{2014/11/20} -\def\bidiversion{v16} +\def\bididate{2014/11/21} +\def\bidiversion{v16.1} \ProvidesPackage{bidi}[\bididate\space \bidiversion\space Bidirectional typesetting in plain TeX and LaTeX] \edef\@bidi@info{****************************************************^^J% @@ -2790,7 +2790,7 @@ Bidirectional typesetting in plain TeX and LaTeX] %\fi % \subsection{\textsf{bidi.tex}} % \begin{macrocode} -\def\bididate{2014/11/20} +\def\bididate{2014/11/21} \def\bidiversion{v0.2} \catcode`@=11 \let \protect \relax @@ -13794,12 +13794,12 @@ bidi implementation of tufte title] %\fi % \subsection{\textsf{pgf-xetex-bidi.def}} % \begin{macrocode} -\ProvidesFile{pgf-xetex-bidi.def}[2014/11/20 v0.5 bidi adaptations for pgf package for XeTeX engine] +\ProvidesFile{pgf-xetex-bidi.def}[2014/11/21 v0.6 bidi adaptations for pgf package for XeTeX engine] \let\origin@pgfpicture=\pgfpicture \let\origin@endpgfpicture=\endpgfpicture \def\bidi@pgfpicture{\ifmmode\else\beginL\fi\origin@pgfpicture} \def\endbidi@pgfpicture{\origin@endpgfpicture\ifmmode\else\endL\fi} -\def\pgfpicture{\ifmmode\else\LTR\beginL\fi\origin@pgfpicture} +\def\pgfpicture{\ifmmode\else\LTR\noindent\beginL\fi\origin@pgfpicture} \def\endpgfpicture{\origin@endpgfpicture\ifmmode\else\endL\endLTR\fi} % \end{macrocode} % \iffalse @@ -17895,7 +17895,18 @@ to\rtside{\box\bslice\hfil}} %\fi % \subsection{\textsf{todonotes-xetex-bidi.def}} % \begin{macrocode} -\ProvidesFile{todonotes-xetex-bidi.def}[2014/11/20 v0.1 bidi adaptations for todonotes package for XeTeX engine] +\ProvidesFile{todonotes-xetex-bidi.def}[2014/11/21 v0.1 bidi adaptations for todonotes package for XeTeX engine] +\newcommand{\@bidi@todonotes@align}{}% +\define@key{todonotes}{align}{\renewcommand{\@bidi@todonotes@align}{#1}}% +\newcommand{\@bidi@todonotes@textdirection}{}% +\define@choicekey{todonotes}{textdirection}[\bidi@todonotes@tempa\bidi@todonotes@tempb]{righttoleft,lefttoright}{% + \ifcase\bidi@todonotes@tempb\relax + \let\@bidi@todonotes@textdirection\RLE + \or + \let\@bidi@todonotes@textdirection\LRE + \fi} +\if@todonotes@disabled% +\else % \if@todonotes@disabled \renewcommand{\@todonotes@drawMarginNoteWithLine}{% \begin{bidi@tikzpicture}[remember picture, overlay, baseline=-0.75ex]% \node [coordinate] (inText) {};% @@ -17908,15 +17919,6 @@ to\rtside{\box\bslice\hfil}} \if@RTL\@todonotes@drawLineToLeftMargin\else\@todonotes@drawLineToRightMargin\fi% }% }% -\newcommand{\@bidi@todonotes@align}{left}% -\define@key{todonotes}{align}{\renewcommand{\@bidi@todonotes@align}{#1}}% -\newcommand{\@bidi@todonotes@textdirection}{}% -\define@choicekey{todonotes}{textdirection}[\bidi@todonotes@tempa\bidi@todonotes@tempb]{righttoleft,lefttoright}{% - \ifcase\bidi@todonotes@tempb\relax - \let\@bidi@todonotes@textdirection\RLE - \or - \let\@bidi@todonotes@textdirection\LRE - \fi} \renewcommand{\@todonotes@drawMarginNote}{% \if@todonotes@dviStyle% \begin{tikzpicture}[remember picture]% @@ -17937,14 +17939,14 @@ to\rtside{\box\bslice\hfil}} \hbadness 100000% \begin{tikzpicture}[remember picture,baseline=(X.base)]% \node(X){\vphantom{X}};% - \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.north)% - {\@todonotes@text};% + \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.north)% + {\@bidi@todonotes@textdirection{\@todonotes@text}};% \if@todonotes@authorgiven% - \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.north)% - {\@todonotes@sizecommand\@todonotes@author};% + \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.north)% + {\@bidi@todonotes@textdirection{\@todonotes@sizecommand\@todonotes@author}};% \node(Y)[below=of X]{};% - \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.south)% - {\@todonotes@text};% + \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.south)% + {\@bidi@todonotes@textdirection{\@todonotes@text}};% \else% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north,align=\@bidi@todonotes@align] (inNote) at (X.north)% {\@bidi@todonotes@textdirection{\@todonotes@text}};% @@ -17952,6 +17954,27 @@ to\rtside{\box\bslice\hfil}} \end{tikzpicture}% \hbadness \originalHbadness% \fi}% +\renewcommand{\missingfigure}[2][]{% +\setkeys{todonotes}{#1}% +\addcontentsline{tdo}{todo}{\@todonotes@MissingFigureText: #2}% +\par +\noindent +\begin{tikzpicture} +\draw[fill=\@todonotes@currentfigcolor, draw = black!40, line width=2pt] + (-2, -2.5) rectangle +(\@todonotes@currentfigwidth, \@todonotes@currentfigheight); +\draw (2, -0.3) node[right, text + width=\@todonotes@currentfigwidth-4.5cm,align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{#2}}; +\draw[red, fill=white, rounded corners = 5pt, line width=10pt] + (30:2cm) -- (150:2cm) -- (270:2cm) -- cycle; +\draw (0, 0.3) node[align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{\@todonotes@MissingFigureUp}}; +\draw (0, -0.3) node[align=\@bidi@todonotes@align] {\@bidi@todonotes@textdirection{\@todonotes@MissingFigureDown}}; +\end{tikzpicture}\hfill +}% Ending \missingfigure command +\fi % Ending \@todonotes@ifdisabled +\presetkeys% + {todonotes}% + {align=left,% + textdirection=lefttoright}{}% % \end{macrocode} % \iffalse %</todonotes-xetex-bidi.def> |