Hide proofs in print

20 views
Skip to first unread message

Federico Galetto

unread,
Jul 5, 2026, 3:31:21 PM (4 days ago) Jul 5
to PreTeXt support
Hello,

I am writing a set of notes with three publication targets: web, print (as PDF), and a custom "blank notes". The blank notes are like the PDF except I use

<exercise-inline statement="yes" hint="no" answer="no" solution="no" />

in the publication file to hide the solution, which I am going to write in class using a tablet. These blank notes are also going to be handed out to students who can take their own notes to fill out the blank part.

This works well for exercises, but now I would like to achieve the same effect with theorem-like environments (theorem, proposition, corollary). Namely, I am looking for an option to hide the proof in my "blank notes" target with something like:

<theorem proof="no" />

so that students have a blank space to work out proofs in class. To make this more useful, it would be great if there was also a workspace="Xin" option for theorem environments to allow for X inches of blank space when proofs are not printed.

Is there any way to achieve this effect? Thank you.

Mitch Keller

unread,
Jul 5, 2026, 3:49:06 PM (4 days ago) Jul 5
to pretext...@googlegroups.com
You can accomplish this using versions. How I have done this for slides is written up in this MathTech.org post, and it works just as well for guided notes as I have suggested later on. If you follow my model, you’d put component=“a” on the proofs you don’t want in the blank notes version. I then put in a p with component=“b” and set the workspace when I need to give myself space after something that isn’t an exercise. 

--
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/c4fd05ff-29d7-42aa-a084-6b803ef0089en%40googlegroups.com.


Oscar Levin

unread,
Jul 5, 2026, 3:54:38 PM (4 days ago) Jul 5
to pretext...@googlegroups.com
I'll add to Mitch's suggestion that if you put the content inside a worksheet or handout division, you can add workspace to the theorem.  Or the proof.

Federico Galetto

unread,
Jul 5, 2026, 5:18:16 PM (4 days ago) Jul 5
to PreTeXt support
Thank you both for the quick responses! I will give this a try.

Fred

Federico Galetto

unread,
Jul 5, 2026, 10:42:40 PM (3 days ago) Jul 5
to PreTeXt support
Okay, following Mitch's suggestion, I put a component="notes" attribute on the proof of the theorem, then added

<version include="" />

to the publication file of my blank notes. This makes the proof disappear from the blank notes. Great!

Next, following Oscar's suggestion, I added workspace="3in" to the theorem to get vertical space, which works well for the blank notes.

However, the workspace="3in" attribute also adds the vertical space to the full print version which already contains the proof.
Is there any way to selectively add workspace only to a certain version?

Thank you!

Mitch Keller

unread,
Jul 5, 2026, 10:54:33 PM (3 days ago) Jul 5
to pretext...@googlegroups.com
I put an empty paragraph in and put the workspace on that along with an appropriate component (notes?) and set that version in the other publication file. 
-- 
Mitch Keller

On Jul 5, 2026, at 21:42, Federico Galetto <galetto....@gmail.com> wrote:

Okay, following Mitch's suggestion, I put a component="notes" attribute on the proof of the theorem, then added

Federico Galetto

unread,
Jul 6, 2026, 3:32:06 PM (3 days ago) Jul 6
to PreTeXt support
Wonderful! I did not realize the workspace attribute works with paragraphs too.

Thank you!

Reply all
Reply to author
Forward
0 new messages