Workspace in HTML gone missing?

18 views
Skip to first unread message

Mitch Keller

unread,
Aug 6, 2025, 11:15:14 AM8/6/25
to 'Rob Beezer' via PreTeXt support
Urgently for Oscar: Something has broken HTML worksheet printing. The workspace is not rendering at all. Matt built and deployed on Friday (I think with 2.23.1) https://mattboelkins.github.io/active-calculus-single-mbx/ and now none of the worksheets are getting workspace on the tasks inside the activities, from what I can tell.

I have also just deployed with a build using 2.25.1, which exhibits the same behavior. Example worksheet direct link: https://math.mitchkeller.phd/active-calculus-single-mbx/ws-act-3-5-2-printable.html

Thanks!

Mitch Keller

unread,
Aug 6, 2025, 12:16:39 PM8/6/25
to PreTeXt support
I think we can pull this down from "urgent" to "bug". It appears that publication/latex/worksheet/@formatted="no" is impacting the HTML as well and suppressing the workspace. We've got a separate publication file for print, so we can remove that setting in the publication files used for online formats, but it seems like a bug that something inside the latex settings is impacting the HTML output.

Rob Beezer

unread,
Aug 6, 2025, 12:30:09 PM8/6/25
to pretext...@googlegroups.com
The publisher variable "$latex-worksheet-formatted" is accessed in the
"sanitize-workspace" template in "xsl/pretext-common.xsl", which explains why
this is impacting HTML production.

Note that this is an *intermediate* variable that really shouldn't be used this
way. The publisher variables produce the boolean variable
"$b-latex-worksheet-formatted" which should be used instead.

The template in question looks like it is from Oscar's recent work, so perhaps
he needs to decide what the real intent is here and how to make a change.

Thanks for the debugging, Mitch. I got here pretty fast with that.

Rob



On 8/6/25 09:16, Mitch Keller wrote:
> I think we can pull this down from "urgent" to "bug". It appears that
> publication/latex/worksheet/@formatted="no" is impacting the HTML as well and
> suppressing the workspace. We've got a separate publication file for print, so
> we can remove that setting in the publication files used for online formats, but
> it seems like a bug that something inside the latex settings is impacting the
> HTML output.
>
> On Wednesday, August 6, 2025 at 10:15:14 AM UTC-5 Mitch Keller wrote:
>
> Urgently for Oscar: Something has broken HTML worksheet printing. The
> workspace is not rendering at all. Matt built and deployed on Friday (I
> think with 2.23.1) https://mattboelkins.github.io/active-calculus-single-
> mbx/ <https://mattboelkins.github.io/active-calculus-single-mbx/> and now
> none of the worksheets are getting workspace on the tasks inside the
> activities, from what I can tell.
>
> I have also just deployed with a build using 2.25.1, which exhibits the same
> behavior. Example worksheet direct link: https://math.mitchkeller.phd/
> active-calculus-single-mbx/ws-act-3-5-2-printable.html <https://
> math.mitchkeller.phd/active-calculus-single-mbx/ws-act-3-5-2-printable.html>
>
> Thanks!
>
> Mitch
> --
> Mitch Keller
> mi...@rellek.net
>
> http://www.rellek.net/ <http://www.rellek.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 <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-support/
> dbcce648-d8bb-47b5-b79a-289eb72fb83cn%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/dbcce648-d8bb-47b5-
> b79a-289eb72fb83cn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Oscar Levin

unread,
Aug 6, 2025, 1:34:21 PM8/6/25
to PreTeXt support

The publisher variable "$latex-worksheet-formatted" is accessed in the
"sanitize-workspace" template in "xsl/pretext-common.xsl", which explains why
this is impacting HTML production.

Note that this is an *intermediate* variable that really shouldn't be used this
way. The publisher variables produce the boolean variable
"$b-latex-worksheet-formatted" which should be used instead.

That's good to know.  I don't remember whether I introduced the former variable or if that was already there, but I can definitely get a PR going to fix it.

In the PR for handouts (https://github.com/PreTeXtBook/pretext/pull/2641) I have refactored the "sanitize-workspace" template a bit, so there might be a merge conflict between that PR and the one to fix this.  I can rebase whichever gets considered second.

Rob Beezer

unread,
Aug 6, 2025, 7:08:19 PM8/6/25
to pretext...@googlegroups.com
On 8/6/25 10:34, Oscar Levin wrote:
> In the PR for handouts (https://github.com/PreTeXtBook/pretext/pull/2641) I have
> refactored the "sanitize-workspace" template a bit, so there might be a merge
> conflict between that PR and the one to fix this.  I can rebase whichever gets
> considered second.
Let's prioritize the bug, and then refactor the new feature (#handout). Thanks
for looking into this one.

> I don't remember whether I introduced the former variable or if that was
already there

I don't even remember where the whole template came from. And not interested
enough to even conduct one of my favorite activities, "git blame". ;-)

Rob

Rob Beezer

unread,
Aug 7, 2025, 11:53:31 AM8/7/25
to pretext...@googlegroups.com
Thanks to Mitch for the report and debugging, and to Oscar for

https://github.com/PreTeXtBook/pretext/pull/2642

Workspaces should be returning in HTML, no matter what a publication file says
about formatting LaTeX.

Rob

On 8/6/25 10:34, Oscar Levin wrote:
>
> > http://www.rellek.net/ <http://www.rellek.net/> <http://www.rellek.net/
> <http://www.rellek.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 <mailto:pretext-
> > support+u...@googlegroups.com>.
> > To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/ <https://groups.google.com/d/msgid/pretext-support/>
> > dbcce648-d8bb-47b5-b79a-289eb72fb83cn%40googlegroups.com
> <http://40googlegroups.com> <https://
> > groups.google.com/d/msgid/pretext-support/dbcce648-d8bb-47b5- <http://
> groups.google.com/d/msgid/pretext-support/dbcce648-d8bb-47b5->
> > b79a-289eb72fb83cn%40googlegroups.com?utm_medium=email&utm_source=footer
> <http://40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> 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 <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-support/
> b60841a0-3b1e-4d66-8bfe-84cbc302b48cn%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/
> b60841a0-3b1e-4d66-8bfe-84cbc302b48cn%40googlegroups.com?
> utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages