Hi Nasser, On Sun, Feb 9, 2025 at 6:33 AM Nasser M. Abbasi <n...@12000.org> wrote:
> > At this day of 100's of GB memory and multi terabytes of disk storage, > I was wondering how hard it is to finally fix this limitation > of DVI with tex4ht so it can handle much larger DVI pages? > > It seems 65536 pages limit is something in the 1980's might > be required, but still in 2025? And why is there a limit > in the first place? Can not DVI file just grow in size as needed? > The number of pages is saved as two bytes in the DVI file header. This means that there is this limit of 65536 pages that cannot be changed without breaking of backwards compatibility, so it is unlikely to happen. Is it just a matter of changing some hardcoded number > in tex4ht source code somewhere? I will be happy to help in anyway > myself, but I have to idea how tex4ht works from the inside. > 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