summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/marginnote/marginnote.sty23
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
}