tex2page icon indicating copy to clipboard operation
tex2page copied to clipboard

Support for single-page documents?

Open ghost opened this issue 4 years ago • 2 comments

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?

ghost avatar Mar 17 '20 05:03 ghost

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.

ds26gte avatar Mar 20 '20 14:03 ds26gte

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.

ghost avatar Mar 25 '20 06:03 ghost