summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-06-17 22:42:31 +0000
committerKarl Berry <karl@freefriends.org>2015-06-17 22:42:31 +0000
commitaf6defe8bd9abe395e03c8469ae4245e027e36d0 (patch)
treec7d5b2ebc9691175e94499f6a073c8f606fc9908 /Master/texmf-dist/tex/xelatex/bidi/todonotes-xetex-bidi.def
parent3bbdd3af65aaba1e1e9b25e12eed598c032ac9b8 (diff)
bidi (17jun15)
git-svn-id: svn://tug.org/texlive/trunk@37590 c570f23f-e606-0410-a88d-b1316a301751
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.def26
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) {};%