xref to exercisegroup

9 views
Skip to first unread message

Sean Fitzpatrick

unread,
Aug 25, 2026, 3:15:13 PMAug 25
to PreTeXt development
If I have an exercise group in a division exercises, I can give it an xml:id, and reference it.

Let's say the exercisegroup contains problems 4-11.
If I make an xref to this exercisegroup, the text of the xref will be "Exercise Group 4 - 11".

Although the exercisegroup is titled "Exercise Group." I find the xref text to be a bit unnatural. I think it sounds better to me if this reads simply "Exercises 4 - 11".

I know I can add xml:ids to the first and last problem in the group, and do my xref as
<xref first="first" last="last" text="local">Exercises</xref> but it seems more natural to me to simply xref the group.

It's fine if others prefer the text "Exercise Group" but I was curious whether I was the only one who thought that "Exercises" sounded a bit better.

Rob Beezer

unread,
Aug 25, 2026, 7:30:13 PMAug 25
to prete...@googlegroups.com
On 8/25/26 12:15, Sean Fitzpatrick wrote:
> I was curious whether I was the only one

Right where I was headed. I'm curious, too.

Sean Fitzpatrick

unread,
Aug 25, 2026, 11:41:40 PMAug 25
to PreTeXt development
I guess if the exercise groups also were numbered, I could understand "Exercise Group 2" to mean the second exercise group. But "Exercise Group 15-20" seems off to me since the numbers refer to exercises within the group, and not the group itself. 

Jeremy suggested off list that I can get what I want with text="local" so I'll try that.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/MTAwMDAxT0UwQ3piZU0.1787700610%40pnsh.
Reply all
Reply to author
Forward
0 new messages