diff options
author | Norbert Preining <norbert@preining.info> | 2022-03-13 03:00:47 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-03-13 03:00:47 +0000 |
commit | 830142c7beb66ea5baa91b009ecea1529eaa70b0 (patch) | |
tree | 6a591b445e6d4ed21b2aa759e18a97911c6a88c0 /macros/luatex | |
parent | 0c73359c915c22297090c6c23c5ac23a8ec9603e (diff) |
CTAN sync 202203130300
Diffstat (limited to 'macros/luatex')
-rw-r--r-- | macros/luatex/latex/linebreaker/README.md | 2 | ||||
-rw-r--r-- | macros/luatex/latex/linebreaker/linebreaker-doc.pdf | bin | 51388 -> 51966 bytes | |||
-rw-r--r-- | macros/luatex/latex/linebreaker/linebreaker-doc.tex | 9 | ||||
-rw-r--r-- | macros/luatex/latex/linebreaker/linebreaker.lua | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/macros/luatex/latex/linebreaker/README.md b/macros/luatex/latex/linebreaker/README.md index 5065054fcf..26b4cd59e5 100644 --- a/macros/luatex/latex/linebreaker/README.md +++ b/macros/luatex/latex/linebreaker/README.md @@ -1,4 +1,4 @@ -#The Linebreaker package, version v0.1 (2022-02-19) +#The Linebreaker package, version v0.1a (2022-03-12) This package tries to prevent overflow lines in paragraphs or boxes. It changes the LuaTeX's `linebreak` callback, and it re-typesets the paragraph diff --git a/macros/luatex/latex/linebreaker/linebreaker-doc.pdf b/macros/luatex/latex/linebreaker/linebreaker-doc.pdf Binary files differindex 7f2b426ae3..ac6659002f 100644 --- a/macros/luatex/latex/linebreaker/linebreaker-doc.pdf +++ b/macros/luatex/latex/linebreaker/linebreaker-doc.pdf diff --git a/macros/luatex/latex/linebreaker/linebreaker-doc.tex b/macros/luatex/latex/linebreaker/linebreaker-doc.tex index 729c9e9eaa..8da047ceea 100644 --- a/macros/luatex/latex/linebreaker/linebreaker-doc.tex +++ b/macros/luatex/latex/linebreaker/linebreaker-doc.tex @@ -186,7 +186,14 @@ under the terms of the LaTeX Project Public License, version 1.3. \section{Changes} \begin{description} - \item[v0.1, 2022-02-19] + \item[v0.1a, 2022-03-12]\hfill + + \begin{itemize} + \item Fixed fatal error in the function that calculates width of last lines in paragraphs. + \end{itemize} + + \item[v0.1, 2022-02-19]\hfill + \begin{itemize} \item Initial version \end{itemize} diff --git a/macros/luatex/latex/linebreaker/linebreaker.lua b/macros/luatex/latex/linebreaker/linebreaker.lua index e6c05d4fdf..6a2d20e074 100644 --- a/macros/luatex/latex/linebreaker/linebreaker.lua +++ b/macros/luatex/latex/linebreaker/linebreaker.lua @@ -331,7 +331,7 @@ function linebreaker.last_line_width(head) end end -- something went wrong, so discard this solution - if not n.head then return 0 end + if not n.head or not n.glue_set then return 0 end w, _, _ = node.dimensions(n.glue_set, n.glue_sign, n.glue_order, n.head) w1, _, _ = node.dimensions(n.glue_set, n.glue_sign, n.glue_order, n) return w |