Implemented now. Should be in tomorrow's "nightly" of the CLI. Holler if you
notice anything unexpected.
Only applies to an #md followed by "clause-ending punctuation" whose LaTeX
ends with a "\end{cases}". (You shouldn't be putting "cases" inside an "m".)
Much easier due to the recent improvements for #m and #md.
Nested cases environments will be a bridge too far. Ideally, in PreTeXt you
would never author LaTeX that has a \begin \end pair in it, nor would you use
\\ for a line break. Indeed it is a common authoring error to put something
like an "aligned" enviroment inside an #m element, with \\. But we are not
fanatics. Not yet, anyway. A "pmatrix" enviroment is entirely reasonable.
With \\. Plus ampersands, which is another story altogether.
Anyway, I suspect with this one case completed (pun intended), we might be able
to place punctuation better after things like matrices. So it is open season on
other ugly periods.
Rob
On 1/10/26 11:37, 'Michael Shulman' via PreTeXt support wrote:
> Thanks for considering it! Of course, there are additional subtleties. For
> instance, if the {cases} *itself* ends with a {cases}, then the \text{.} should
> slide past both of them, and so on.
>
> On Sat, Jan 10, 2026 at 10:29 AM 'Rob Beezer' via PreTeXt support <pretext-
>
sup...@googlegroups.com <mailto:
pretext...@googlegroups.com>> wrote:
>
> Thanks. That is what I would have guessed. (For the casual reader: slide the
> \text{.} prior to the \end{cases}) And the resulting PDF is not
> unattractive. ;-)
>
> Might be possible, though what we do already is a bit tricky.
>
> Web, of course, is MathJax, and we have limited control. But we ship the same
> raw LaTeX to print/PDF as we do to web, just with different wrappers, so it
> should come along.
>
> Rob
>
>
> On 1/10/26 10:15, 'Michael Shulman' via PreTeXt support wrote:
> > Sure, here you go. I would prefer the web output to be beautified too,
> of course.
> >
> > On Sat, Jan 10, 2026 at 10:02 AM 'Rob Beezer' via PreTeXt support <pretext-
> >
sup...@googlegroups.com <mailto:
sup...@googlegroups.com>
> <mailto:
pretext...@googlegroups.com <mailto:
pretext-
> >
support%2Bunsu...@googlegroups.com
> <mailto:
support%252Buns...@googlegroups.com>> <mailto:
pretext-
> <mailto:
pretext-> <mailto:
pretext- <mailto:
pretext->>
> > >
support+u...@googlegroups.com
> <mailto:
support%2Bunsu...@googlegroups.com>
> > <mailto:
support%2Bunsu...@googlegroups.com
> <mailto:
support%252Buns...@googlegroups.com>>>.
> > <
https://groups.google.com/d/msgid/pretext- <https://
>
groups.google.com/d/msgid/pretext->>
> > > support/4b2405af-95b0-4e37-8e57-755d5a2f66ban%
40googlegroups.com
> <
http://40googlegroups.com>
> > <
http://40googlegroups.com <
http://40googlegroups.com>> <https://
> > >
groups.google.com/d/msgid/pretext- <
http://groups.google.com/d/
> msgid/pretext-> <
http://groups.google.com/d/msgid/ <http://
>
groups.google.com/d/msgid/>
> > pretext->
> > > support/4b2405af-95b0-4e37-8e57-755d5a2f66ban%
40googlegroups.com
> <
http://40googlegroups.com>
> > <
http://40googlegroups.com <
http://40googlegroups.com>>?
> > > utm_medium=email&utm_source=footer>.
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "PreTeXt support" group.
> > To unsubscribe from this topic, visit
https://groups.google.com/d/
> topic/ <
https://groups.google.com/d/topic/>
> > pretext-support/ts2Xcbkyj9k/unsubscribe <
https://groups.google.com/d/
> topic/ <
https://groups.google.com/d/topic/>
> > pretext-support/ts2Xcbkyj9k/unsubscribe>.
> > To unsubscribe from this group and all its topics, send an email to
> pretext-
> >
support+u...@googlegroups.com
> <mailto:
support%2Bunsu...@googlegroups.com> <mailto:
pretext-
> <mailto:
pretext->
> >
support%2Bunsu...@googlegroups.com
> <mailto:
support%252Buns...@googlegroups.com>>.
> > support/MTAwMDAzNS5iZWV6ZXI.1768068138%40pnsh <https://
>
groups.google.com/d/ <
https://groups.google.com/d/>
> > msgid/pretext-support/MTAwMDAzNS5iZWV6ZXI.1768068138%40pnsh>.
> >
> >
> >
> > --
> > Michael Shulman
> > Professor of Mathematics for Humans <
https://home.sandiego.edu/~shulman/
> humans.html <
https://home.sandiego.edu/~shulman/humans.html>>
> > University of San Diego
> >
> > "The role of the intellectual cannot be to excuse the violence of one
> > side and condemn that of the other."
> > -- Albert Camus
> >
> > --
> > 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 <mailto:
pretext-
> support/ <
https://groups.google.com/d/msgid/pretext-support/>
> >
> CADYavpxHM8z%3Dme_Mu%3D%2BtogimudVihvhC8%3D_aoWN_kKH2pNtaOw%
40mail.gmail.com
> <
http://40mail.gmail.com>
> > <
https://groups.google.com/d/msgid/pretext-support/ <https://
>
groups.google.com/d/msgid/pretext-support/>
> >
> CADYavpxHM8z%3Dme_Mu%3D%2BtogimudVihvhC8%3D_aoWN_kKH2pNtaOw%
40mail.gmail.com
> <
http://40mail.gmail.com>?
> support/MTAwMDAxNy5iZWV6ZXI.1768069736%40pnsh <
https://groups.google.com/d/
> msgid/pretext-support/MTAwMDAxNy5iZWV6ZXI.1768069736%40pnsh>.
> CADYavpzcC2sG5VxLAehPq2WrwkZHYv%3Dh2a5ALGJMqdsyCuemZQ%
40mail.gmail.com <https://
>
groups.google.com/d/msgid/pretext-support/
> CADYavpzcC2sG5VxLAehPq2WrwkZHYv%3Dh2a5ALGJMqdsyCuemZQ%
40mail.gmail.com?
> utm_medium=email&utm_source=footer>.