diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-22 21:22:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-22 21:22:17 +0000 |
commit | 67c75df0b955d998f000056bd61fbc95478add5a (patch) | |
tree | dc3a11cfbd28262dd64c9efa464eebd4c40352e6 /Master/texmf-dist/tex | |
parent | c1d460d553ac5b2a159cb5834069f58728ae96eb (diff) |
marginnote (22apr17)
git-svn-id: svn://tug.org/texlive/trunk@43979 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/marginnote/marginnote.sty | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/marginnote/marginnote.sty b/Master/texmf-dist/tex/latex/marginnote/marginnote.sty index e1ab2621581..e1cc622cdbc 100644 --- a/Master/texmf-dist/tex/latex/marginnote/marginnote.sty +++ b/Master/texmf-dist/tex/latex/marginnote/marginnote.sty @@ -20,10 +20,10 @@ %% original source files, as listed above, are part of the %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) -%%% From File: $Id: marginnote.dtx 9 2016-10-21 06:45:27Z mjk $ +%%% From File: $Id: marginnote.dtx 13 2017-04-22 09:25:22Z mjk $ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{marginnote}[% - 2016/10/21 v1.2a + 2017/04/22 v1.2b non floating margin notes for LaTeX] \begingroup \def\@tempb{}% @@ -232,6 +232,17 @@ \fi \fi \fi + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname \@mn@mode@prefix pagewidth\endcsname\relax\else + \@mn@if@RTL{% + \PackageInfo{marginnote}{Margin note + \@mn@thispage.\@mn@atthispage\space in RTL mode}% + \edef\@mn@currxpos{% + \the\dimexpr\@nameuse{\@mn@mode@prefix pagewidth} + -\@mn@currxpos\relax + }% + }{}% + \fi \fi \edef\@mn@currpage{\expandafter\@firstoftwo\@mn@currpage}% \if@mn@verbose @@ -252,6 +263,14 @@ \fi \fi } +\newcommand*{\@mn@if@RTL}{% + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname if@RTL\endcsname\iftrue + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi +} \newcommand*{\marginnote}{% \@dblarg\@mn@marginnote } |