From d7113db1ee00fff3757b7cff7ff4e74a3625402b Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 26 Jul 2018 21:45:01 +0000
Subject: marginfit (26jul18)

git-svn-id: svn://tug.org/texlive/trunk@48281 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/marginfit/marginfit.sty | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/marginfit/marginfit.sty')

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%
             }%
-- 
cgit v1.2.3

