Hello;

For large web pages with many split levels, managing when to
stop splitting and continue splitting is really a
nightmare in tex4ht.

I'd like to suggest a very simple way to handle this, but
implementing this in tex4ht might be hard.

If one had split set at say 4 or 5, and want stop splitting
somewhere in middle of large document (for example, to make
one specific chapter or section be on page instead splitting),
the  current way to do it is is to type

\ifdefined\HCode
\PauseCutAt{section}
\PauseCutAt{subsection}
etc...
\fi

Just before the chapter, where the number of commands
\PauseCutAt above, depends on the split level and
document class (book vs. article) and depending
on how many sublevels this chapter happened to have.

Then to resume splitting, the commands are

\ifdefined\HCode
\ContCutAt{section}
\ContCutAt{subsection}
etc.. as needed depending on split level
\fi

After the chapter. If the number number of commands is used, the html
will not be correctly generated and will be missing parts of it.

see for example

<https://tex.stackexchange.com/questions/642190/tex4ht-drops-subsections-when-using-pausecutatsection-why-does-it-happen>

So if one changes the split level, from say 3 to 5 or 6 or
change the document from article to book, or add more lower
level subsections, the code needs to change to make sure to
add correct number of \PauseCutAt{...} and correct number
of \ContCutAt{...} to make sure all levels are there.

Why not just have command

\PauseCut

and then

\ContCut

And that is it. The above pauses the Cut period from that point on.

So everything below that will be on same web page.

And when \ContCut is issued, it will go back to default
split level as before.

This will make it much easier to manage for large web page.

Any comments and if this is possible to do?

Thanks
--Nasser

Reply via email to