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

Control over margins in web-build versions of worksheets #2205

Open
rhinopotamus opened this issue Jul 11, 2024 · 4 comments
Open

Control over margins in web-build versions of worksheets #2205

rhinopotamus opened this issue Jul 11, 2024 · 4 comments

Comments

@rhinopotamus
Copy link
Contributor

rhinopotamus commented Jul 11, 2024

Because of the way pretext-latex.xsl builds a \newgeometry{} command from a <worksheet>, you can control margins in the print build. However, the web build doesn't know anything about margin attributes of a worksheet.
I feel like it should be possible to pass margin attributes to the css similarly, but I don't know enough about xslt / css / etc. to figure this out immediately.)

Originally posted by @rhinopotamus in #2192 (comment)

@davidfarmer
Copy link
Contributor

It is on my to-do list to look into this.

The current goal of worksheets is to fit as much as possible on a page.

Can you describe some use cases for adjusting the margins?

@rhinopotamus
Copy link
Contributor Author

So I'm currently translating an existing LaTeX workbook into PreTeXt. (See also the web build on github pages.)

We plan to use the print version to send to a print-on-demand shop to make a spiral-bound physical workbook for students to buy. However, it'd also be neat for students to be able to print out individual sections as needed, perhaps if they want a fresh copy of a particular section for revisions, and it'd be nice to have the formatting the same between the print version and the version generated by the print button on web.

@davidfarmer
Copy link
Contributor

Why is it the html version, and not the print-on-demand PDF, which the student would use to print one section?

@rhinopotamus
Copy link
Contributor Author

I mean that it would be nice if they could click this guy and then get the same formatting.
image

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

2 participants