Can <example> and <problem> have different knowl settings?

9 views
Skip to first unread message

Bruce Yoshiwara

unread,
Dec 3, 2025, 4:52:50 PM (yesterday) Dec 3
to PreTeXt support
Kathy is experimenting with using the <problem> tag. She wants the <answer> to be in a knowl. But as best I can tell, the fact that example-solution knowl setting is "no" (she definitely doesn't want example solutions hidden in knowls) means that the <answer> in a <problem> cannot be knowlized.

Or is there a way I should be setting the publication file to accomplish what she wants, namely that the <solution> in an  <example> is not in a knowl, but that any <answer> in a <problem> is in a knowl.

Bruce

Rob Beezer

unread,
Dec 3, 2025, 5:07:02 PM (yesterday) Dec 3
to pretext...@googlegroups.com
Dear Bruce,

#example and #problem are peers. They behave identically. They are also
expository, as in they are not meant to suggest something the reader will do.
So their #hint, #answer, #solution are always exposed, they are part of your
narrative.

Inline #exercise plus the peers in PROJECT-LIKE
(project|activity|exploration|investigation) are more flexible about knowls and
are independent of each other. If she is not already using a PROJECT-LIKE she
could pick one for authoring, and rename it as a "Problem", setting knowl
behavior as desired.

Possible I have not completely addressed your question and goals - if not,
follow-up.

Rob
> --
> 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/7440ed29-313c-4d76-b465-87a5c8df0acbn%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/7440ed29-313c-4d76-
> b465-87a5c8df0acbn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Message has been deleted

Chrissy Safranski

unread,
11:02 AM (6 hours ago) 11:02 AM
to PreTeXt support
As Rob said, example and problem behave the same and the knowlization of their answers, hints, solutions are controlled with one switch in the publication file.


There's still project-like and inline-exercise, but if she's already using those, there are two more options: worksheet exercises and reading question exercises.  Those divisions can be titled.  Is it possible she would be using "problem" in a way that fits into one of those categories? 

Chrissy
Reply all
Reply to author
Forward
0 new messages