diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def index fcb11943e77..e6d5185a660 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{44326} +%% \CheckSum{44377} %% \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 @@ -34,7 +34,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% -\ProvidesFile{todonotes-xetex-bidi.def}[2014/11/23 v0.2 bidi adaptations for todonotes package for XeTeX engine] +\ProvidesFile{todonotes-xetex-bidi.def}[2015/06/17 v0.3 bidi adaptations for todonotes package for XeTeX engine] \newif\if@bidi@todonotes@textdirection@RTL \newif\if@bidi@todonotes@figposition@right \newcommand{\@bidi@todonotes@align}{}% @@ -56,6 +56,28 @@ \fi} \if@todonotes@disabled% \else % \if@todonotes@disabled +\renewcommand{\@todonotes@drawInlineNote}{% + \if@todonotes@dviStyle% + {\par\noindent\begin{tikzpicture}[remember picture]% + \draw node[inlinenotestyle] {};\end{tikzpicture}\par}% + \if@todonotes@authorgiven% + {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}% + \else% + {\noindent \@todonotes@sizecommand \@todonotes@text}% + \fi + {\par\noindent\begin{tikzpicture}[remember picture]% + \draw node[inlinenotestyle] {};\end{tikzpicture}\par}% + \else% + {\par\noindent\begin{bidi@tikzpicture}[remember picture]% + \if@bidi@todonotes@textdirection@RTL\else\setLTR\fi% + \draw node[inlinenotestyle,font=\@todonotes@sizecommand,align=\@bidi@todonotes@align]{% + \if@todonotes@authorgiven% + {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}% + \else% + {\noindent \@todonotes@sizecommand \@todonotes@text}% + \fi};% + \end{bidi@tikzpicture}\par}% + \fi}% \renewcommand{\@todonotes@drawMarginNoteWithLine}{% \begin{bidi@tikzpicture}[remember picture, overlay, baseline=-0.75ex]% \node [coordinate] (inText) {};% |