diff options
author | Karl Berry <karl@freefriends.org> | 2018-07-21 20:19:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-07-21 20:19:53 +0000 |
commit | bdf3fec95c9a276976158d3f5edfb4f22c278105 (patch) | |
tree | eb9b4c0f55d390d166570b4a1c5f64c90c0aef10 /Master/texmf-dist/tex | |
parent | 1a1e93f3750fe1754389dcb837bb345276138bd5 (diff) |
marginnote (21jul18)
git-svn-id: svn://tug.org/texlive/trunk@48244 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-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}% |