Thanks, Alex.
Suppose a #chapter contains several #section, along with an #exercises at the
end of each #section. Then you want one grand #solutions at the end of the
#chapter - which will have the headings of the relevant #section.
I don't think it is too far-fetched to allow a SOLUTION-LIKE to appear where an
#exercise is authored and again in the #solutions. Maybe ill-advised? Now say
you chunk by chapters, and then the two instances of the SOLUTION-LIKE will both
be on the same page.
Anyway, there is far too much flexibility in placing a #solutios, and what it
will produce. Trying to determine when we do, or don't, respect those decisions
in an author's source will be another minefield. And only to feed the EPUB
validator (though an eventual solution should improve our HTML output as well).
Rob
On 12/27/25 12:10, Alex Jordan wrote:
> Idly thinking about this, and I wonder how reasonable is it that an author wants
> to reveal a solution-like locally (immediately following the exercise) and also
> wants to reveal it gathered up in a solutions somewhere else. Especially on the
> same HTML page. I feel like I'd always want one or the other.
>
> In the spirit of brainstorming, one idea is to suppress the local solution-like.
> A crude way to do this could be that presence of even one solutions/@answers
> could override the global publisher variable for showing local answers. Etc.
> This wouldn't solve all the issues and probably someone somewhere does want both
> at the same time. Maybe it's another square peg for a round hole.
>
> > <mailto:
david.a...@gmail.com <mailto:
david.a...@gmail.com>>> wrote:
> >
> > You just had to stir the O2 tanks, didn't you?
> >
> > PreFigure is immune from this bit of pleasantry since the generated
> SVGs are
> > kept in separate files and included in an XHTML document with the @src
> > attribute of an #img. The restriction on duplicate ids only applies
> within
> > an XHTML file. Which leads to
> >
> > 4. Put the #solutions division into its own XHTML file(s) and update the
> > spine and manifest appropriately.
> >
> > My reading of the EPUB documentation is that this will not change the
> > document's appearance or flow, but the duplicate ids will no longer
> trigger
> > the validator.
> >
> > On Fri, Dec 26, 2025 at 3:29 PM 'Rob Beezer' via PreTeXt development
> > <
prete...@googlegroups.com <mailto:
prete...@googlegroups.com>
> <mailto:
prete...@googlegroups.com <mailto:
prete...@googlegroups.com>>>
> <mailto:
pretext-dev%2Bunsu...@googlegroups.com> <mailto:
pretext-
> <mailto:
pretext->
> >
dev%2Bunsu...@googlegroups.com
> <mailto:
dev%252Buns...@googlegroups.com>>.
> pretext- <
https://groups.google.com/d/msgid/pretext->
> > dev/MTAwMDAwNy5iZWV6ZXI.1766780975%40pnsh <https://
>
groups.google.com/d/ <
https://groups.google.com/d/>
> > msgid/pretext-dev/MTAwMDAwNy5iZWV6ZXI.1766780975%40pnsh>.
> >
> > --
> > 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 <mailto:
pretext-
>
dev%2Bunsu...@googlegroups.com> <mailto:
pretext- <mailto:
pretext->
> >
dev+uns...@googlegroups.com
> <mailto:
dev%2Bunsu...@googlegroups.com>>.
> dev/ <
https://groups.google.com/d/msgid/pretext-dev/>
> > CANXmVMADKbt4B8V0LkgCWxXf5kenRkJo5KRzXTmNKVGY2ep27g%
40mail.gmail.com
> <
http://40mail.gmail.com> <https://
> >
groups.google.com/d/msgid/pretext-dev/ <
http://groups.google.com/d/msgid/
> pretext-dev/>
> > CANXmVMADKbt4B8V0LkgCWxXf5kenRkJo5KRzXTmNKVGY2ep27g%
40mail.gmail.com
> <
http://40mail.gmail.com>?
> > utm_medium=email&utm_source=footer>.
>
> --
> 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
> MTAwMDAxMC5iZWV6ZXI.1766865013%40pnsh <
https://groups.google.com/d/msgid/
> pretext-dev/MTAwMDAxMC5iZWV6ZXI.1766865013%40pnsh>.
> CA%2BR-jrd%3DbY3wTu%2BFPZNsK9StOzwh3RcqU0iyKp%2BuefGTqfVQkw%
40mail.gmail.com
> <
https://groups.google.com/d/msgid/pretext-dev/CA%2BR-
> jrd%3DbY3wTu%2BFPZNsK9StOzwh3RcqU0iyKp%2BuefGTqfVQkw%
40mail.gmail.com?
> utm_medium=email&utm_source=footer>.