texlive[61880] Master/texmf-dist: lua-widow-control (4feb22)
commits+karl at tug.org
commits+karl at tug.org
Fri Feb 4 23:21:16 CET 2022
Revision: 61880
http://tug.org/svn/texlive?view=revision&revision=61880
Author: karl
Date: 2022-02-04 23:21:15 +0100 (Fri, 04 Feb 2022)
Log Message:
-----------
lua-widow-control (4feb22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md
trunk/Master/texmf-dist/doc/luatex/lua-widow-control/lua-widow-control.pdf
trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex
trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl
trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex
Modified: trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/doc/luatex/lua-widow-control/README.md 2022-02-04 22:21:15 UTC (rev 61880)
@@ -42,4 +42,4 @@
Please note that a compiled document is absolutely **not** considered to be an "Executable Form" as defined by the MPL. The use of lua-widow-control in a document does not place **any** obligations on the document's author or distributors. The MPL and CC-BY-SA licenses **only** apply to you if you distribute the lua-widow-control source code or documentation.
---
-_v1.1.3 (2022-01-30)_ <!--%%version %%date-->
+_v1.1.4 (2022-02-04)_ <!--%%version %%date-->
Modified: trunk/Master/texmf-dist/doc/luatex/lua-widow-control/lua-widow-control.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-documentation.tex 2022-02-04 22:21:15 UTC (rev 61880)
@@ -37,7 +37,7 @@
\startdocument[
title=lua-widow-control,
author=Max Chernoff,
- version=1.1.3, %%version
+ version=1.1.4, %%version
github=https://github.com/gucci-on-fleek/lua-widow-control,
ctan=https://www.ctan.org/pkg/lua-widow-control,
]
Modified: trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
===================================================================
--- trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex 2022-02-04 22:21:15 UTC (rev 61880)
@@ -6,7 +6,7 @@
\startbuffer[demo-text]
\definepapersize[smallpaper][
width=6cm,
- height=9cm
+ height=8.3cm
]\setuppapersize[smallpaper]
\setuplayout[
@@ -23,20 +23,23 @@
\setupbodyfont[9pt]
\setupindenting[yes, 2em]
- \setupalign[tolerant]
\definepalet[layout][grid=middlegray]
\showgrid[nonumber, none, lines]
- \definefontfeature[default][default][expansion=quality]
- \setupalign[hz]
+ \definefontfeature[default][default][expansion=quality,protrusion=quality]
+ \usetypescript[modern-base]
+ \setupbodyfont[reset,modern]
+
+ \setupalign[hz,hanging,tolerant]
+
\starttext
\Lwc/ can remove most widows and orphans from a document, \emph{without} stretching any glue or shortening any pages.
- It does so by automatically lengthening a paragraph on a page where a widow or orphan would otherwise occur. While \TeX{} breaks paragraphs into their natural length, \lwc/ is breaking the paragraph 1~line longer than its natural length. \TeX{}'s paragraph is output to the page, but \lwc/'s paragraph is just stored for later. When a widow or orphan occurs, \lwc/ can take over. It selects the previously-saved paragraph with the least badness; then, it replaces \TeX{}'s paragraph with its saved paragraph. This lengthens the page by 1~line.
+ It does so by automatically lengthening a paragraph on a page where a widow or orphan would otherwise occur. While \TeX{} breaks paragraphs into their natural length, \lwc/ is breaking the paragraph 1~line longer than its natural length. \TeX{}'s paragraph is output to the page, but \lwc/'s paragraph is just stored for later. When a widow or orphan occurs, \lwc/ can take over. It selects the previously-saved paragraph with the least badness; then, it replaces \TeX{}'s paragraph with its saved paragraph. This increases the text block height of the page by 1~line.
- Now, the last line of the current page can be pushed to the top of the next page. This removes the widow or the orphan without creating any additional work for the document's author.
+ Now, the last line of the current page can be pushed to the top of the next page. This removes the widow or the orphan without creating any additional work.
\stoptext
\stopbuffer
\savebuffer[list=demo-text]
Modified: trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl 2022-02-04 22:21:15 UTC (rev 61880)
@@ -1,10 +1,10 @@
%D \module
%D [ file=t-lua-widow-control,
-%D version=1.1.3, %%version
+%D version=1.1.4, %%version
%D title=lua-widow-control,
%D subtitle=\ConTeXt module for lua-widow-control,
%D author=Max Chernoff,
-%D date=2022-01-30, %%date
+%D date=2022-02-04, %%date
%D copyright=Max Chernoff,
%D license=MPL-2.0+,
%D url=https://github.com/gucci-on-fleek/lua-widow-control]
Modified: trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty 2022-02-04 22:21:15 UTC (rev 61880)
@@ -5,7 +5,7 @@
\NeedsTeXFormat{LaTeX2e}[2015/01/01] % Formats built after 2015 include \LuaTeX{}Base
\ProvidesPackage{lua-widow-control}%
- [2022/01/30 v1.1.3] %%version %%date
+ [2022/02/04 v1.1.4] %%version %%date
\clubpenalty=1
\widowpenalty=1
Modified: trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua 2022-02-04 22:21:15 UTC (rev 61880)
@@ -65,8 +65,8 @@
elseif lwc.plain or lwc.latex then
luatexbase.provides_module {
name = lwc.name,
- date = "2022/01/30", --%%date
- version = "1.1.3", --%%version
+ date = "2022/02/04", --%%date
+ version = "1.1.4", --%%version
description = [[
This module provides a LuaTeX-based solution to prevent
@@ -195,7 +195,7 @@
-- Offset the accumulated \\prevdepth
local prevdepth = node.new("glue")
- prevdepth.width = -1 * long_info.prevdepth
+ prevdepth.width = natural_info.prevdepth - long_info.prevdepth
last(long_node).next = prevdepth
table.insert(lwc.paragraphs, {demerits = long_demerits, node = long_node})
Modified: trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex 2022-02-04 22:21:00 UTC (rev 61879)
+++ trunk/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.tex 2022-02-04 22:21:15 UTC (rev 61880)
@@ -3,7 +3,7 @@
% SPDX-License-Identifier: MPL-2.0+
% SPDX-FileCopyrightText: 2021 Max Chernoff
-\wlog{lua-widow-control v1.1.3} %%version
+\wlog{lua-widow-control v1.1.4} %%version
\input ltluatex % \LuaTeX{}Base
More information about the tex-live-commits
mailing list.