Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for single-page documents? #6

Open
ghost opened this issue Mar 17, 2020 · 2 comments
Open

Support for single-page documents? #6

ghost opened this issue Mar 17, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 17, 2020

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?

@ds26gte
Copy link
Owner

ds26gte commented Mar 20, 2020

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.

@ghost
Copy link
Author

ghost commented Mar 25, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant