summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/autobreak
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-07-11 21:03:41 +0000
committerKarl Berry <karl@freefriends.org>2016-07-11 21:03:41 +0000
commit78ac54ff7a82154a3acab828f106b2b37c55b644 (patch)
treeebe8482b6bd3fc2d107ea1437569af1983aca007 /Master/texmf-dist/tex/latex/autobreak
parent45eeaa0417c165730cdf4aa520f6241dce05fa10 (diff)
autobreak (11jul16)
git-svn-id: svn://tug.org/texlive/trunk@41679 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/autobreak')
-rw-r--r--Master/texmf-dist/tex/latex/autobreak/autobreak.sty8
1 files changed, 3 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/autobreak/autobreak.sty b/Master/texmf-dist/tex/latex/autobreak/autobreak.sty
index 7cbd61453f0..cbcae2874de 100644
--- a/Master/texmf-dist/tex/latex/autobreak/autobreak.sty
+++ b/Master/texmf-dist/tex/latex/autobreak/autobreak.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{autobreak}%
- [2016/06/03 v0.1 simple line breaking of long formulae]
+ [2016/07/03 v0.2 simple line breaking of long formulae]
\newtoks\everybeforeautobreak
\newtoks\everyafterautobreak
\newtoks\@autobreak@alltoks
@@ -32,7 +32,6 @@
\newdimen\@autobreak@maxlhswidth
\newdimen\@autobreak@realmaxlhswidth
\newdimen\@autobreak@maxrhswidth
-\def\@autobreak@sp{7\p@}
\begingroup
\catcode`\^^M=\active
\gdef\@autobreak@newlinechar{^^M}
@@ -227,7 +226,7 @@
}
\def\@autobreak@processline#1{%
\ifdim\@autobreak@lhswidth=\z@
- \@autobreak@settowidth\@autobreak@lhswidth{#1}%
+ \@autobreak@settowidth\@autobreak@lhswidth{#1{}}%
\ifdim\@autobreak@lhswidth>\z@
\ifdim\@autobreak@lhswidth>\@autobreak@maxlhswidth
\ifdim\@autobreak@maxlhswidth>\z@
@@ -240,12 +239,11 @@
\fi
\@autobreak@maxrhswidth=\linewidth
\advance\@autobreak@maxrhswidth by -\@autobreak@maxlhswidth
- \advance\@autobreak@maxrhswidth by -\@autobreak@sp
\@autobreak@alltoks={#1{}&}%
\fi
\else
\@autobreak@settowidth\@autobreak@rhswidth
- {\the\@autobreak@linetoks#1\the\everybeforeautobreak}%
+ {{}\the\@autobreak@linetoks#1\the\everybeforeautobreak}%
\ifdim\@autobreak@rhswidth>\@autobreak@maxrhswidth
\edef\@tempa{\the\@autobreak@linetoks\the\everybeforeautobreak}%
\expandafter\@autobreak@addtoks\expandafter\@autobreak@alltoks