Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Issues with Worksheet Print Formatting (CSS?)

53 views
Skip to first unread message

Mitch Keller

unread,
May 15, 2024, 4:55:54 PM5/15/24
to pretext...@googlegroups.com
I’m helping with a workshop in Denver right now, and we’ve got folks interested in worksheets. We’re seeing some really weird behavior in how browsers are rendering the PDF when trying to print a worksheet. It seems like something has regressed in the CSS for printing. I am attaching three examples from https://pretextbook.org/doc/guide/html/basics-sample-worksheet-letter.html as well as another example produced from something that I can’t readily link to, but I think getting what’s in the PreTeXt Guide working right would solve things globally.

Mitch
chrome-linux-second-worksheet.pdf
chrome-linux-skeletal-worksheet.pdf
chrome-mac-skeletal-worksheet.pdf
safari-skeletal-worksheet.pdf

Andrew Scholer

unread,
May 15, 2024, 5:44:49 PM5/15/24
to pretext...@googlegroups.com
Mitch - 

If you are looking for a short-term fix, you can try deleting these lines from pretext_add_on.css:

If you do that to the file _static/pretext/pretext_add_on.css in our output directory and then refresh the page, it should improve printing. If you rebuild the project however it is going to wipe out your changes.

This probably is worth a more robust solution... do you want to post on pretext-dev or make an issue on github?

Andrew Scholer (he/him/his)
Computer Science Instructor/Program Chair
Chemeketa Community College


--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/8406FFD0-61AC-430B-9C70-A07AC195E0C3%40rellek.net.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/8406FFD0-61AC-430B-9C70-A07AC195E0C3%40rellek.net.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/8406FFD0-61AC-430B-9C70-A07AC195E0C3%40rellek.net.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/8406FFD0-61AC-430B-9C70-A07AC195E0C3%40rellek.net.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/8406FFD0-61AC-430B-9C70-A07AC195E0C3%40rellek.net.
Message has been deleted

Spencer Bagley

unread,
Jul 5, 2024, 5:12:27 PM7/5/24
to PreTeXt support
I created a pull request to do this -- thanks!

Megan P

unread,
Aug 24, 2024, 11:18:19 AM8/24/24
to PreTeXt support
Hello! Has there been any progress on fixing the worksheet print formatting? I was told in mid July at a pretext office hour that it should be fixed in about two weeks. It's now late August, and, as far as I can tell, worksheet printing still seems to be broken for me.

Oscar Levin

unread,
Aug 24, 2024, 6:51:51 PM8/24/24
to PreTeXt support
This has turned out to be more complicated than we thought.  I might be able to find a hacky solution for your particular case if you need it soon.  If you would be willing to share your project's source files (github repo), I could try to get something mostly working for you.  Feel free to email me off list if you prefer.

Megan P

unread,
Aug 25, 2024, 8:59:44 AM8/25/24
to PreTeXt support
Thanks, Oscar! I'll reach out via email.
Reply all
Reply to author
Forward
0 new messages