summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/marginnote
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-07-04 21:27:48 +0000
committerKarl Berry <karl@freefriends.org>2018-07-04 21:27:48 +0000
commit6a4403583a132fbe30e4b0590a4aa1ea98150b85 (patch)
tree00e3b1e19262e17a18a798a9398b89c9cde844eb /Master/texmf-dist/tex/latex/marginnote
parentbaa1b33f09a2124bfd68ba5f26e347bc9e3f3170 (diff)
marginnote (4jul18)
git-svn-id: svn://tug.org/texlive/trunk@48137 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/marginnote')
-rw-r--r--Master/texmf-dist/tex/latex/marginnote/marginnote.sty13
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/marginnote/marginnote.sty b/Master/texmf-dist/tex/latex/marginnote/marginnote.sty
index ac2b5c3f1f5..cfba8345878 100644
--- a/Master/texmf-dist/tex/latex/marginnote/marginnote.sty
+++ b/Master/texmf-dist/tex/latex/marginnote/marginnote.sty
@@ -23,7 +23,7 @@
%%% From File: $Id: marginnote.dtx 21 2018-04-20 06:19:32Z mjk $
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{marginnote}[%
- 2018/04/13 v1.3
+ 2018/07/01 v1.4
non floating margin notes for LaTeX]
\begingroup
\@ifundefined{pdfsavepos}{%
@@ -131,7 +131,14 @@
\egroup
}%
}
-\ExecuteOptions{verbose,fulladjust}
+\newcommand*{\mn@parboxrestore}{}
+\DeclareOption{parboxrestore}{%
+ \renewcommand*{\mn@parboxrestore}{\@parboxrestore}%
+}
+\DeclareOption{noparboxrestore}{%
+ \renewcommand*{\mn@parboxrestore}{}%
+}
+\ExecuteOptions{verbose,fulladjust,parboxrestore}
\ProcessOptions\relax
\newcommand*{\newmarginnote}{\@newl@bel{mn}}
\newcommand*{\marginnotetextwidth}{}
@@ -325,6 +332,7 @@
\hsize\marginparwidth
\linewidth\hsize
\kern-\parskip
+ \mn@parboxrestore
\marginfont\raggedrightmarginnote\strut\hspace{\z@}%
\ignorespaces#2\endgraf
\vss}%
@@ -337,6 +345,7 @@
\hsize\marginparwidth
\linewidth\hsize
\kern-\parskip
+ \mn@parboxrestore
\marginfont\raggedleftmarginnote\strut\hspace{\z@}%
\ignorespaces#1\endgraf
\vss