-
Notifications
You must be signed in to change notification settings - Fork 210
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
Comments
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? |
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. |
Why is it the html version, and not the print-on-demand PDF, which the student would use to print one section? |
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)
The text was updated successfully, but these errors were encountered: