pretext icon indicating copy to clipboard operation
pretext copied to clipboard

Control over margins in web-build versions of worksheets

Open rhinopotamus opened this issue 1 year ago • 4 comments

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 https://github.com/PreTeXtBook/pretext/issues/2192#issuecomment-2211508037

rhinopotamus avatar Jul 11 '24 18:07 rhinopotamus

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?

davidfarmer avatar Jul 11 '24 19:07 davidfarmer

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.

rhinopotamus avatar Jul 11 '24 20:07 rhinopotamus

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

davidfarmer avatar Jul 12 '24 18:07 davidfarmer

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

rhinopotamus avatar Jul 12 '24 23:07 rhinopotamus