diff options
author | Karl Berry <karl@freefriends.org> | 2018-07-26 21:45:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-07-26 21:45:01 +0000 |
commit | d7113db1ee00fff3757b7cff7ff4e74a3625402b (patch) | |
tree | 1b42dc88e02fbff9dae702c13cfd4354575e5542 /Master/texmf-dist | |
parent | 2b0769f9e04cd016fdc87710e6b7d6f3f1386b9b (diff) |
marginfit (26jul18)
git-svn-id: svn://tug.org/texlive/trunk@48281 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/marginfit/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/marginfit/marginfit.pdf | bin | 212636 -> 214483 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/marginfit/marginfit.dtx | 26 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/marginfit/marginfit.ins | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/marginfit/marginfit.sty | 15 |
5 files changed, 30 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/marginfit/README b/Master/texmf-dist/doc/latex/marginfit/README index d956e94b020..a7df3d4000a 100644 --- a/Master/texmf-dist/doc/latex/marginfit/README +++ b/Master/texmf-dist/doc/latex/marginfit/README @@ -7,7 +7,7 @@ implementation of LaTeX. Those bugs include margin notes that are attached to the wrong side as well as those that stick out of the bottom of the page. This package provides a drop-in replacement solution. -Copyright 2017 Maurice Leclaire <leclaire@in.tum.de> +Copyright 2017, 2018 Maurice Leclaire <leclaire@in.tum.de> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either diff --git a/Master/texmf-dist/doc/latex/marginfit/marginfit.pdf b/Master/texmf-dist/doc/latex/marginfit/marginfit.pdf Binary files differindex 04629877bec..82a5ba39608 100644 --- a/Master/texmf-dist/doc/latex/marginfit/marginfit.pdf +++ b/Master/texmf-dist/doc/latex/marginfit/marginfit.pdf diff --git a/Master/texmf-dist/source/latex/marginfit/marginfit.dtx b/Master/texmf-dist/source/latex/marginfit/marginfit.dtx index 1d5c1eafe15..9ed9e85798b 100644 --- a/Master/texmf-dist/source/latex/marginfit/marginfit.dtx +++ b/Master/texmf-dist/source/latex/marginfit/marginfit.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 2017 Maurice Leclaire <leclaire@in.tum.de> +% Copyright 2017, 2018 Maurice Leclaire <leclaire@in.tum.de> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -21,7 +21,7 @@ % % \iffalse %<package>\NeedsTeXFormat{LaTeX2e} -%<package>\ProvidesPackage{marginfit}[2017/07/07 v1.0 Fit Margin Paragraphs] +%<package>\ProvidesPackage{marginfit}[2018/06/08 v1.1 Fit Margin Paragraphs] % %<*driver> \documentclass{ltxdoc} @@ -516,13 +516,19 @@ % % \begin{macro}{\@makecol} % We redefine \verb|\@makecol| and add the procedure to append a margin to the -% current column. First, the original \verb|\@makecol| is executed. If we have -% margin material, we decide on which side the margin column will be and add it -% to that side. +% current column. First, the original \verb|\@makecol| is executed. Then, the +% width of \verb|\@outputbox| is set to \verb|\columnwidth| (added in v1.1). +% \changes{v1.1}{2018/06/07}{Fix width of \texttt{\symbol{`\\}@outputbox}} +% This is necessary as a \verb|\parshape| that overflows on the right will +% enlarge \verb|\@outputbox|. If we have margin material, we decide on which +% side the margin column will be and add it to that side. A check for onesided +% documents was added in v1.1. +% \changes{v1.1}{2018/06/08}{Margin placement in onesided documents} % \begin{macrocode} \let\marginfit@makecol\@makecol \def\@makecol{% \marginfit@makecol% + \wd\@outputbox\columnwidth% \ifvoid\marginfit@insert\else% \setbox\@outputbox\vbox to\@colht {% \hbox to\columnwidth {% @@ -533,10 +539,14 @@ \marginfit@rightmargin% \fi% \else% - \ifodd\c@page% - \marginfit@rightmargin% + \if@twoside% + \ifodd\c@page% + \marginfit@rightmargin% + \else% + \marginfit@leftmargin% + \fi% \else% - \marginfit@leftmargin% + \marginfit@rightmargin% \fi% \fi% }% diff --git a/Master/texmf-dist/source/latex/marginfit/marginfit.ins b/Master/texmf-dist/source/latex/marginfit/marginfit.ins index 1a6979fbf36..eb197ef989d 100644 --- a/Master/texmf-dist/source/latex/marginfit/marginfit.ins +++ b/Master/texmf-dist/source/latex/marginfit/marginfit.ins @@ -3,7 +3,7 @@ \usedir{tex/latex/marginfit} \preamble -Copyright 2017 Maurice Leclaire <leclaire@in.tum.de> +Copyright 2017, 2018 Maurice Leclaire <leclaire@in.tum.de> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either diff --git a/Master/texmf-dist/tex/latex/marginfit/marginfit.sty b/Master/texmf-dist/tex/latex/marginfit/marginfit.sty index fbd174526f5..62ced86e050 100644 --- a/Master/texmf-dist/tex/latex/marginfit/marginfit.sty +++ b/Master/texmf-dist/tex/latex/marginfit/marginfit.sty @@ -6,7 +6,7 @@ %% %% marginfit.dtx (with options: `package') %% -%% Copyright 2017 Maurice Leclaire <leclaire@in.tum.de> +%% Copyright 2017, 2018 Maurice Leclaire <leclaire@in.tum.de> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -24,7 +24,7 @@ %% and the derived file marginfit.sty. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{marginfit}[2017/07/07 v1.0 Fit Margin Paragraphs] +\ProvidesPackage{marginfit}[2018/06/08 v1.1 Fit Margin Paragraphs] \newinsert\marginfit@insert \count\marginfit@insert0 \skip\marginfit@insert\z@ @@ -120,6 +120,7 @@ \let\marginfit@makecol\@makecol \def\@makecol{% \marginfit@makecol% + \wd\@outputbox\columnwidth% \ifvoid\marginfit@insert\else% \setbox\@outputbox\vbox to\@colht {% \hbox to\columnwidth {% @@ -130,10 +131,14 @@ \marginfit@rightmargin% \fi% \else% - \ifodd\c@page% - \marginfit@rightmargin% + \if@twoside% + \ifodd\c@page% + \marginfit@rightmargin% + \else% + \marginfit@leftmargin% + \fi% \else% - \marginfit@leftmargin% + \marginfit@rightmargin% \fi% \fi% }% |