diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/autobreak/README.md | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/autobreak/autobreak.pdf | bin | 538815 -> 538686 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/autobreak/autobreak.dtx | 23 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/autobreak/autobreak.sty | 8 |
4 files changed, 13 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/autobreak/README.md b/Master/texmf-dist/doc/latex/autobreak/README.md index 478af4210ce..27455114309 100644 --- a/Master/texmf-dist/doc/latex/autobreak/README.md +++ b/Master/texmf-dist/doc/latex/autobreak/README.md @@ -1,6 +1,7 @@ autobreak ========= +[](https://ctan.org/pkg/autobreak) [](https://travis-ci.org/tueda/autobreak) This package implements a simple mechanism of line/page breaking @@ -60,7 +61,7 @@ Example \end{document} ``` - + Licence diff --git a/Master/texmf-dist/doc/latex/autobreak/autobreak.pdf b/Master/texmf-dist/doc/latex/autobreak/autobreak.pdf Binary files differindex 97dabaeb6a7..c61b24d0176 100644 --- a/Master/texmf-dist/doc/latex/autobreak/autobreak.pdf +++ b/Master/texmf-dist/doc/latex/autobreak/autobreak.pdf diff --git a/Master/texmf-dist/source/latex/autobreak/autobreak.dtx b/Master/texmf-dist/source/latex/autobreak/autobreak.dtx index cb372c15e87..f2bc88e2354 100644 --- a/Master/texmf-dist/source/latex/autobreak/autobreak.dtx +++ b/Master/texmf-dist/source/latex/autobreak/autobreak.dtx @@ -193,7 +193,7 @@ version 2005/12/01 or later. %</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 @@ version 2005/12/01 or later. %<*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 @@ version 2005/12/01 or later. % \end{macrocode} % \end{macro} % -% \begin{macro}{\@autobreak@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@sp{7\p@} -% \end{macrocode} -% \end{macro} -% % \begin{macro}{\@autobreak@newlinechar} % The macro representing an active |^^M|. % \begin{macrocode} @@ -1050,11 +1041,14 @@ version 2005/12/01 or later. % \end{macro} % % \begin{macro}{\@autobreak@processline} +% \changes{v0.2}{2016/07/03}{Fix space calculation around alignment +% tabs} % Each line from \cs{autobreak@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@processline#1{% \ifdim\@autobreak@lhswidth=\z@ @@ -1062,7 +1056,7 @@ version 2005/12/01 or later. % For the first block. The rest of the width for the right-hand sides % is determined from \cs{linewidth} and \cs{@autobreak@maxlhswidth}. % \begin{macrocode} - \@autobreak@settowidth\@autobreak@lhswidth{#1}% + \@autobreak@settowidth\@autobreak@lhswidth{#1{}}% \ifdim\@autobreak@lhswidth>\z@ \ifdim\@autobreak@lhswidth>\@autobreak@maxlhswidth \ifdim\@autobreak@maxlhswidth>\z@ @@ -1079,7 +1073,6 @@ version 2005/12/01 or later. \fi \@autobreak@maxrhswidth=\linewidth \advance\@autobreak@maxrhswidth by -\@autobreak@maxlhswidth - \advance\@autobreak@maxrhswidth by -\@autobreak@sp \@autobreak@alltoks={#1{}&}% \fi \else @@ -1087,7 +1080,7 @@ version 2005/12/01 or later. % For the rest of the blocks. % \begin{macrocode} \@autobreak@settowidth\@autobreak@rhswidth - {\the\@autobreak@linetoks#1\the\everybeforeautobreak}% + {{}\the\@autobreak@linetoks#1\the\everybeforeautobreak}% \ifdim\@autobreak@rhswidth>\@autobreak@maxrhswidth % \end{macrocode} % Adding the next block gives an overfull line. Need a line break. 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 |