On 2/9/2025 5:16 AM, Michal Hoftich wrote:
This is the limit of TeX, we cannot change it from the inside of TeX4ht. But you can use larger page sizes to work around this issue. Like paper height of 575 cm: \usepackage[paperwidth=100cm, paperheight=575cm]{geometry} This is the maximal size before I get dimension too large error. I hope this workaround doesn' cause other issues, Best, Michal
Update: Thanks to Michal suggestion, the above trick worked! I was able to build the same page now, and got no Fatal error about total_pages>=65536 So I will use the above from now on for tex4ht mode. Only thing I had to change also is my images sizes. As now when using something like \includegraphics[width=0.7\texwidth]{image} in HTML the image is way too large, since it was all based before on letter size. But this is easy to fix. May be in tex4ht mode, I will use inches for width and have to figure a good value to use. I have not seen any other issue so far. So for now, the main problem is resolved, at least for this web page. I will try this trick on a much larger page and see if it will also build it. Thanks again for Michal help. --Nasser