diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/marginnote/marginnote.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/marginnote/marginnote.sty | 57 |
1 files changed, 54 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/marginnote/marginnote.sty b/Master/texmf-dist/tex/latex/marginnote/marginnote.sty index cfba8345878..5f99dccbff4 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 21 2018-04-20 06:19:32Z mjk $ +%%% From File: $Id: marginnote.dtx 23 2018-07-21 11:35:52Z mjk $ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{marginnote}[% - 2018/07/01 v1.4 + 2018/07/01 v1.4a non floating margin notes for LaTeX] \begingroup \@ifundefined{pdfsavepos}{% @@ -149,7 +149,58 @@ \newcommand*{\@mn@currxpos}{} \newcounter{mn@abspage} \AtBeginDocument{\setcounter{mn@abspage}{1}% - \g@addto@macro\@outputpage{\stepcounter{mn@abspage}}} + \g@addto@macro\@outputpage{% + \stepcounter{mn@abspage}% + \ifodd\value{mn@abspage}% + \ifodd\value{page}% + \else + \if@twoside + \begingroup + \advance\c@page\m@ne + \PackageWarningNoLine{marginnote}{% + Consecutive odd pages found.\MessageBreak + Note, it is not recommended to use consecutive\MessageBreak + odd pages in a double-ended document.\MessageBreak + The pages of your document should always\MessageBreak + be a sequence: odd-even-odd-even-...\MessageBreak + Maybe you've forgotten a + \@ifundefined{KOMAClassName}% + {\string\cleardoublepage}% + {\string\cleardoubleoddpage} + before\MessageBreak + changing the page numbering on page \thepage + }% + \endgroup + \fi + \PackageInfo{marginnote}{Using workaround for absolute page number}% + \stepcounter{mn@abspage}% + \fi + \else + \ifodd\value{page}% + \if@twoside + \begingroup + \advance\c@page\m@ne + \PackageWarningNoLine{marginnote}{% + Consecutive even pages found.\MessageBreak + Note, it is not recommended to use consecutive\MessageBreak + even pages in a double-ended document.\MessageBreak + The pages of your document should always\MessageBreak + be a sequence: odd-even-odd-even-...\MessageBreak + Maybe you've forgotten a + \@ifundefined{KOMAClassName}% + {\string\cleardoublepage}% + {\string\cleardoubleevenpage} + before\MessageBreak + changing the page numbering on page \thepage + }% + \endgroup + \fi + \PackageInfo{marginnote}{Using workaround for absolute page number}% + \stepcounter{mn@abspage}% + \fi + \fi + }% +} \newcommand*{\@mn@margintest}{% \expandafter\ifx\csname @mn@thispage\endcsname\@empty \gdef\@mn@atthispage{1}% |