From 67c75df0b955d998f000056bd61fbc95478add5a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 22 Apr 2017 21:22:17 +0000 Subject: marginnote (22apr17) git-svn-id: svn://tug.org/texlive/trunk@43979 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/marginnote/marginnote.sty | 23 ++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/marginnote') 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 } -- cgit v1.2.3