% background.4ht (2025-10-31-14:45), generated from tex4ht-4ht.tex % Copyright 2025 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 2025-10-31-14:45} \NewConfigure{BackgroundMaterial}{2}% \def\background:material{ \a:BackgroundMaterial% \Background@Contents% \b:BackgroundMaterial% } % We must block the dafault command which is used in page hooks, as we will add the background in TeX4ht hooks \def\:tempa{} \HLet\bg@material\:tempa % we now need to declare what will be inserted for particular pages % this is reuse of code from background.sty, it set the default background \ifbg@some \let\background:default\relax \else \let\background:default\background:material \fi \let\background:thispage\background:default % insert background at the begining of body of each page \Configure{@BODY}{ \background:thispage % reset to default for next page \global\let\background:thispage\background:default } % commands that will set background for the next page only \def\:tempa{ \let\background:thispage\background:material } \HLet\BgThispage\:tempa \def\:tempa{ \let\background:thispage\relax } \HLet\NoBgThispage\relax \Hinput{background} \endinput