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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?