From c68b477e543f3a001b300adc3e2540990ed54e92 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 26 Sep 2022 22:28:54 +0000 Subject: support lua-widow-control, tex4ht r1199 git-svn-id: svn://tug.org/texlive/trunk@64523 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 10 ++++++++ .../source/generic/tex4ht/tex4ht-4ht.tex | 29 +++++++++++++++++++++- .../tex/generic/tex4ht/lua-widow-control-hooks.4ht | 28 +++++++++++++++++++++ .../texmf-dist/tex/generic/tex4ht/usepackage.4ht | 5 ++-- 4 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 Master/texmf-dist/tex/generic/tex4ht/lua-widow-control-hooks.4ht (limited to 'Master') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 9bfa086af12..00d6409a36b 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,13 @@ +2022-09-26 Michal Hoftich + + * tex4ht-fonts-modern.tex ( + ./tex4ht.dir/texmf/tex4ht/ht-fonts/unicode/mathkerncmssi/mathkerncmssi.htf + ): added support for the Sansmathaccent font. + + * tex4ht-4ht.tex (usepackage.4ht, + lua-widow-control-hooks.4ht): added support for the + Lua-widow-control package. + 2022-09-22 Michal Hoftich * tex4ht-html4.tex (html4.4ht): use CSS grid for description list diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index 899fcbe89fc..e85b3ce283d 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1196 2022-09-20 15:05:23Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1199 2022-09-26 13:25:22Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -4886,6 +4886,33 @@ PDF mode, it is safest thing to do to just disable the package. \endinput >>> \AddFile{9}{pdfx-hooks} + +%%%%%%%%%%%%%%%%% +\Section{lua-widow-control} +%%%%%%%%%%%%%%%%% + +The lua-widow-control package uses LuaTeX hooks to remove windows and orphans +on pages. We need to disable it, as it interferes with TeX4ht and produces +a fatal error. + +\<<< +\Configure{PackageHooks}{lua-widow-control.sty}{lua-widow-control-hooks.4ht} +>>> + +\<<< +% lua-widow-control-hooks.4ht (|version), generated from |jobname.tex +% Copyright 2022 TeX Users Group +| +\:dontusepackage{lua-widow-control} +% provide dummy definition of package's commands +\NewDocumentCommand \lwcsetup {m} {} +\NewDocumentCommand \lwcemergencystretch { } {} +\def\lwcenable{} +\def\lwcdisable{} +\endinput +>>> \AddFile{9}{lua-widow-control-hooks} + + %%%%%%%%%%%%%%%%% \Section{animate.sty} %%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/generic/tex4ht/lua-widow-control-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/lua-widow-control-hooks.4ht new file mode 100644 index 00000000000..b0bf3e1a2b9 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/lua-widow-control-hooks.4ht @@ -0,0 +1,28 @@ +% lua-widow-control-hooks.4ht (2022-09-26-14:05), generated from tex4ht-4ht.tex +% Copyright 2022 TeX Users Group +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either +% version 1.3c of this license or (at your option) any +% later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3c or later is part of all distributions +% of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status "maintained". +% +% The Current Maintainer of this work +% is the TeX4ht Project . +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2022-09-26-14:05} + +\:dontusepackage{lua-widow-control} +% provide dummy definition of package's commands +\NewDocumentCommand \lwcsetup {m} {} +\NewDocumentCommand \lwcemergencystretch { } {} +\def\lwcenable{} +\def\lwcdisable{} +\endinput + diff --git a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht index 136d00f909c..1b773a5a2f1 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht @@ -1,4 +1,4 @@ -% usepackage.4ht (2022-09-16-14:11), generated from tex4ht-4ht.tex +% usepackage.4ht (2022-09-26-14:05), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari % Copyright 2009-2022 TeX Users Group % @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-09-16-14:11} +\immediate\write-1{version 2022-09-26-14:05} \def\:temp{tex4ht}\ifx \:temp\@currname \:warning{\string\usepackage{tex4ht} again?} @@ -66,6 +66,7 @@ \Configure{PackageHooks}{tikz.sty}{tikz-hooks.4ht} \Configure{PackageHooks}{pdfbase.sty}{pdfbase-hooks.4ht} \Configure{PackageHooks}{pdfx.sty}{pdfx-hooks.4ht} +\Configure{PackageHooks}{lua-widow-control.sty}{lua-widow-control-hooks.4ht} \Configure{PackageHooks}{breakurl.sty}{breakurl-hooks.4ht} \Configure{PackageHooks}{hyperref.sty}{hyperref-hooks.4ht} \Configure{PackageHooks}{bookmark.sty}{bookmark-hooks.4ht} -- cgit v1.2.3