tex2page
tex2page copied to clipboard
Support for single-page documents?
Would it be possible to add a switch to tex2page to generate a single long html file from a .tex file, without breaking it into sections?
Yes, set
\let\TZPsinglepage=1
anywhere in your document.
Described in subsection Single output file in section 6 (Flags) of the manual (https://ds26gte.github.io/tex2page/index-Z-H-6.html#TAG:__tex2page_sec_Temp_45).
Doesn't affect print output as long as you don't reuse the macro name \TZPsinglepage
for something else.
Well, I kind of thought about the way to generate both single-page and multiple-page from the same file. Like the FSF does: https://www.gnu.org/software/sharutils/manual/
This manual (sharutils) is available in the following formats:
HTML (124K bytes) - entirely on one web page.
HTML - with one web page per node.
It is, obviously, possible to rewrite the file automatically, but it looks a bit of a hack.