How to define questions that you don't want visible in the ebook page. You only want to use them for select questions.

21 views
Skip to first unread message

Barbara Ericson

unread,
May 29, 2026, 3:59:37 PMMay 29
to PreTeXt support
I have the source for the questions in a different file than the page that I want visible.  I want to define the questions, but not have them visible in the page as exercises.  I only want to use the questions in a select question.  

In the past I put these questions in a file that wasn't in the toctree.  They still got created but where not visible in the ebook until they were added to select questions.  That doesn't seem to work in PreText.

Chrissy Safranski

unread,
May 30, 2026, 9:26:33 AMMay 30
to PreTeXt support
I think the only way we've found to do this is to build the book on Runestone with the questions visible so that they get added to the Runestone database, and then immediately modify the source to make those questions not visible and rebuild on Runestone.  We've discussed having a "manifest only" attribute or something, but as far as I'm aware, that hasn't happened.

For example, you could add a pretext section that contains the questions, build and deploy, then comment out that section, rebuild and redeploy. Or use a PreTeXt component for all the sections you want as non-visible exercises and then have two publication files.  

Would that work?

Chrissy

Sean Fitzpatrick

unread,
May 30, 2026, 11:37:02 AMMay 30
to pretext...@googlegroups.com
You could use versions to put those questions in a component. Have one publication file that includes them, and one that doesn't. Build once with the questions, then again without them. 

--
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 visit https://groups.google.com/d/msgid/pretext-support/fd5ff233-5c7f-427e-940a-759f8d227dc9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages