CSS: TheoremLike/em

12 views
Skip to first unread message

Jeremy Sylvestre

unread,
Jul 4, 2026, 11:47:44 AM (7 days ago) Jul 4
to PreTeXt development
An em inside a TheoremLike is being styled as both italic and bold. This is a holdover from when all of the text inside a TheoremLike was italicized, and then bold was added to any em inside of that to make it stand out from the surrounding text.

Current CSS has text inside TheoremLike upright, so maybe the rule adding bold to TheoremLike/em should be removed? Otherwise there would be no distinction between em and alert within the text of a TheoremLike. (Just on general principle; rest assured that I am not authoring theorems that are littered with both ems and alerts.)

Live example:
(built using PreTeXt bb7e3517)

Regards,
Jeremy S

Rob Beezer

unread,
Jul 4, 2026, 1:31:58 PM (7 days ago) Jul 4
to prete...@googlegroups.com
At first blush, maybe text of a #theorem should be italic? I don't recall
discussing a change, and a lot of CSS has been changed/overhauled recently.

Rob
> --
> 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+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> CALMYOnexHDK1MyM9KKc6C5bMhnfaCrSaOC_ine4fKwJ%3D-fso1A%40mail.gmail.com <https://
> groups.google.com/d/msgid/pretext-dev/
> CALMYOnexHDK1MyM9KKc6C5bMhnfaCrSaOC_ine4fKwJ%3D-fso1A%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

David W. Farmer

unread,
Jul 4, 2026, 8:19:02 PM (6 days ago) Jul 4
to 'Rob Beezer' via PreTeXt development

It was supposed to be that theorems had italics but not bold.

If something else happened, that seems like an unintended side-effect.
> email to pretext-dev...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/pretext-dev/MTAwMDAyMi5iZWV6ZXI.1783186316%40pnsh.
>

Andrew Scholer

unread,
Jul 5, 2026, 11:27:37 AM (6 days ago) Jul 5
to prete...@googlegroups.com
It looks like I moved italics for theorem/em into too narrow a scope in the big CSS refactor back in 2024 - they currently only appear in the tacoma theme.

I'll PR moving it up to where it will be picked up by all themes.

OHappyDay

unread,
Jul 5, 2026, 11:56:25 AM (6 days ago) Jul 5
to PreTeXt development
Theme salem also has this behaviour.

Rob Beezer

unread,
Jul 6, 2026, 10:50:47 AM (5 days ago) Jul 6
to prete...@googlegroups.com
And another quick fix from Andrew. Thanks!

https://github.com/PreTeXtBook/pretext/pull/3001
> >>  <https://sites.ualberta.ca/~jsylvest/pretext-dev/theorem-em/
> section-textual.html <https://sites.ualberta.ca/~jsylvest/pretext-dev/
> theorem-em/section-textual.html>>
> >>  (built using PreTeXt bb7e3517)
> >>
> >>  Regards,
> >>  Jeremy S
> >>
> >>  --
> >>  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+uns...@googlegroups.com>.
> >>  To view this discussion visit
> >> https://groups.google.com/d/msgid/pretext-dev/ <https://
> groups.google.com/d/msgid/pretext-dev/>
> >>  CALMYOnexHDK1MyM9KKc6C5bMhnfaCrSaOC_ine4fKwJ%3D-
> fso1A%40mail.gmail.com <http://40mail.gmail.com>
> >>  <https:// groups.google.com/d/msgid/pretext-dev/ <http://
> groups.google.com/d/msgid/pretext-dev/>
> >>  CALMYOnexHDK1MyM9KKc6C5bMhnfaCrSaOC_ine4fKwJ%3D-
> fso1A%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
> > email to pretext-dev...@googlegroups.com.
> > To view this discussion visit
> > https://groups.google.com/d/msgid/pretext-dev/
> MTAwMDAyMi5iZWV6ZXI.1783186316%40pnsh <https://groups.google.com/d/
> msgid/pretext-dev/MTAwMDAyMi5iZWV6ZXI.1783186316%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.
>
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> dev/8cdaea95-26e6-edea-efe7-31805a6372df%40aimath.org <https://
> groups.google.com/d/msgid/pretext-dev/8cdaea95-26e6-edea-
> efe7-31805a6372df%40aimath.org>.
>
> --
> 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
> dev/4288dc83-6cc1-49d6-bdeb-85250117f702n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-dev/4288dc83-6cc1-49d6-
> bdeb-85250117f702n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages