texlive[41679] Master/texmf-dist: autobreak (11jul16)
commits+karl at tug.org
commits+karl at tug.org
Mon Jul 11 23:03:42 CEST 2016
Revision: 41679
http://tug.org/svn/texlive?view=revision&revision=41679
Author: karl
Date: 2016-07-11 23:03:41 +0200 (Mon, 11 Jul 2016)
Log Message:
-----------
autobreak (11jul16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/autobreak/README.md
trunk/Master/texmf-dist/doc/latex/autobreak/autobreak.pdf
trunk/Master/texmf-dist/source/latex/autobreak/autobreak.dtx
trunk/Master/texmf-dist/tex/latex/autobreak/autobreak.sty
Modified: trunk/Master/texmf-dist/doc/latex/autobreak/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/autobreak/README.md 2016-07-11 01:15:30 UTC (rev 41678)
+++ trunk/Master/texmf-dist/doc/latex/autobreak/README.md 2016-07-11 21:03:41 UTC (rev 41679)
@@ -1,6 +1,7 @@
autobreak
=========
+[![CTAN](https://img.shields.io/ctan/v/autobreak.svg)](https://ctan.org/pkg/autobreak)
[![Build Status](https://img.shields.io/travis/tueda/autobreak/master.svg)](https://travis-ci.org/tueda/autobreak)
This package implements a simple mechanism of line/page breaking
@@ -60,7 +61,7 @@
\end{document}
```
-![Example](https://github.com/tueda/autobreak/blob/images/example.png)
+![Example](https://raw.githubusercontent.com/tueda/autobreak/images/example.png)
Licence
Modified: trunk/Master/texmf-dist/doc/latex/autobreak/autobreak.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/autobreak/autobreak.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/autobreak/autobreak.dtx 2016-07-11 01:15:30 UTC (rev 41678)
+++ trunk/Master/texmf-dist/source/latex/autobreak/autobreak.dtx 2016-07-11 21:03:41 UTC (rev 41679)
@@ -193,7 +193,7 @@
%</driver>
% \fi
%
-% \CheckSum{336}
+% \CheckSum{330}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -598,7 +598,7 @@
%<*package>
\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]
% \end{macrocode}
%
% \subsection{Registers and constants}
@@ -670,15 +670,6 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\@autobreak at sep}
-% The additional space needed for putting the left-hand side and the
-% right-hand side in one line, in other words, the separation for |&|.
-% TODO: how can we know the exact extra space to be inserted?
-% \begin{macrocode}
-\def\@autobreak at sp{7\p@}
-% \end{macrocode}
-% \end{macro}
-%
% \begin{macro}{\@autobreak at newlinechar}
% The macro representing an active |^^M|.
% \begin{macrocode}
@@ -1050,11 +1041,14 @@
% \end{macro}
%
% \begin{macro}{\@autobreak at processline}
+% \changes{v0.2}{2016/07/03}{Fix space calculation around alignment
+% tabs}
% Each line from \cs{autobreak at scanline} should be regarded as a `block'
% in the equation. The first block (typically the left-hand side $+$
% `=') determines the indentation for the successive lines. From the
% second block, try to append the block to the end of the line and
-% insert a line break if it does not fit in a line.
+% insert a line break if it does not fit in a line. Note that we measure
+% the widths of the blocks with putting |{}| around alignment tabs.
% \begin{macrocode}
\def\@autobreak at processline#1{%
\ifdim\@autobreak at lhswidth=\z@
@@ -1062,7 +1056,7 @@
% For the first block. The rest of the width for the right-hand sides
% is determined from \cs{linewidth} and \cs{@autobreak at maxlhswidth}.
% \begin{macrocode}
- \@autobreak at settowidth\@autobreak at lhswidth{#1}%
+ \@autobreak at settowidth\@autobreak at lhswidth{#1{}}%
\ifdim\@autobreak at lhswidth>\z@
\ifdim\@autobreak at lhswidth>\@autobreak at maxlhswidth
\ifdim\@autobreak at maxlhswidth>\z@
@@ -1079,7 +1073,6 @@
\fi
\@autobreak at maxrhswidth=\linewidth
\advance\@autobreak at maxrhswidth by -\@autobreak at maxlhswidth
- \advance\@autobreak at maxrhswidth by -\@autobreak at sp
\@autobreak at alltoks={#1{}&}%
\fi
\else
@@ -1087,7 +1080,7 @@
% For the rest of the blocks.
% \begin{macrocode}
\@autobreak at settowidth\@autobreak at rhswidth
- {\the\@autobreak at linetoks#1\the\everybeforeautobreak}%
+ {{}\the\@autobreak at linetoks#1\the\everybeforeautobreak}%
\ifdim\@autobreak at rhswidth>\@autobreak at maxrhswidth
% \end{macrocode}
% Adding the next block gives an overfull line. Need a line break.
Modified: trunk/Master/texmf-dist/tex/latex/autobreak/autobreak.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/autobreak/autobreak.sty 2016-07-11 01:15:30 UTC (rev 41678)
+++ trunk/Master/texmf-dist/tex/latex/autobreak/autobreak.sty 2016-07-11 21:03:41 UTC (rev 41679)
@@ -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 at alltoks
@@ -32,7 +32,6 @@
\newdimen\@autobreak at maxlhswidth
\newdimen\@autobreak at realmaxlhswidth
\newdimen\@autobreak at maxrhswidth
-\def\@autobreak at sp{7\p@}
\begingroup
\catcode`\^^M=\active
\gdef\@autobreak at newlinechar{^^M}
@@ -227,7 +226,7 @@
}
\def\@autobreak at processline#1{%
\ifdim\@autobreak at lhswidth=\z@
- \@autobreak at settowidth\@autobreak at lhswidth{#1}%
+ \@autobreak at settowidth\@autobreak at lhswidth{#1{}}%
\ifdim\@autobreak at lhswidth>\z@
\ifdim\@autobreak at lhswidth>\@autobreak at maxlhswidth
\ifdim\@autobreak at maxlhswidth>\z@
@@ -240,12 +239,11 @@
\fi
\@autobreak at maxrhswidth=\linewidth
\advance\@autobreak at maxrhswidth by -\@autobreak at maxlhswidth
- \advance\@autobreak at maxrhswidth by -\@autobreak at sp
\@autobreak at alltoks={#1{}&}%
\fi
\else
\@autobreak at settowidth\@autobreak at rhswidth
- {\the\@autobreak at linetoks#1\the\everybeforeautobreak}%
+ {{}\the\@autobreak at linetoks#1\the\everybeforeautobreak}%
\ifdim\@autobreak at rhswidth>\@autobreak at maxrhswidth
\edef\@tempa{\the\@autobreak at linetoks\the\everybeforeautobreak}%
\expandafter\@autobreak at addtoks\expandafter\@autobreak at alltoks
More information about the tex-live-commits
mailing list