Authored page breaks in lengthy exercises

9 views
Skip to first unread message

Kyle Monette

unread,
Aug 28, 2026, 1:40:17 PM (14 days ago) Aug 28
to PreTeXt support
Hi all,

I'm running into some schema warnings regarding worksheets and authored page breaks. 

Suppose I have a worksheet with an <introduction> that I want on the first page (containing instructions, etc), and nothing below it. Page 2 would then start an <exercise>. The following works, but results in a warning:
<page>
<introduction>
... 
</introduction>
</page> 
Similarly, if page and introduction are swapped. I looked in the sample article, and I can't find examples of this setup. Is there a cleaner way?

Also, related to this, if an <exercise> has multiple <task>'s that span multiple pages, how would I go about adding page breaks? Obviously it would have to go <exercise> and then <page>, but this too results in a schema warning.

Thanks!
Kyle

Oscar Levin

unread,
Aug 28, 2026, 5:12:19 PM (13 days ago) Aug 28
to pretext...@googlegroups.com
Hi Kyle,

I don't think your worksheet really needs an <introduction> at all, so just removing that might solve the schema warnings.  The alternative is that you can start the first page after the introduction, and the page breaking should put the contents before the first page on the first page, if it can fit.

As for controlling pages for long multi-part exercises, this simply is not supported.  As you suggest, you cannot interweave an exercise with a page (that would break the nesting of the xml).  

If you want the tasks of an exercise to span multiple pages, you must remove all <page> elements and be very precise with your workspace so that the "natural" page breaks occur where you want them.  A possibly better approach would be to not try to have tasks of the same exercise span two pages.  I think there is a good argument for avoiding this anyway: each page should be be relatively self contained, so students don't need to flip between pages to see common instructions.  You could either use a <paragraphs> to introduce the problem and then use exercises instead of the tasks, or end the exercise on one page and continue it by starting a new exercise "3. Continuing with the same context as exercise 2, do the following".

Cheers,
Oscar.

--
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/f3b8e942-03fa-47bc-9b04-82dadeb3fc72n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages