punctuation font size after math

5 views
Skip to first unread message

Jean-Sébastien Turcotte

unread,
Jun 29, 2022, 11:02:36 AM6/29/22
to PreTeXt development
In the guide, it says to put punctuation immediately after <m> </m> so that it can migrate correctly. However this seems to sometime produce a smaller font size.



Compare line 3 at this Paragraph with the final question mark of the same paragraph.

Jean-Sébastien Turcotte

unread,
Jun 29, 2022, 11:04:11 AM6/29/22
to PreTeXt development
Also the comma after (1,0)  at line 4 seems a bit off, but I'm not sure.

Steven Clontz

unread,
Jun 29, 2022, 11:05:56 AM6/29/22
to prete...@googlegroups.com
The period is being included in the LaTeX fed to MathJax, so it won't be line-broken.

The comma is handled similarly, but your original mathmode comma looks different because the injected punctuation is wrapped in \text: \vec{e}_1=(1,0),\vec{e}_2=(0,1)\text{,}



On Wed, Jun 29, 2022 at 10:02 AM Jean-Sébastien Turcotte <jsebastie...@gmail.com> wrote:
In the guide, it says to put punctuation immediately after <m> </m> so that it can migrate correctly. However this seems to sometime produce a smaller font size.



Compare line 3 at this Paragraph with the final question mark of the same paragraph.

--
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 on the web visit https://groups.google.com/d/msgid/pretext-dev/c5344e9b-a98f-43c2-b290-549eb5370951n%40googlegroups.com.

Jean-Sébastien Turcotte

unread,
Jun 29, 2022, 11:07:54 AM6/29/22
to prete...@googlegroups.com
So this is intended? Somehow I never noticed but it felt weird reading it today.

You received this message because you are subscribed to a topic in the Google Groups "PreTeXt development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-dev/o_v5ruXmORQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/CAOWT6ThGpJ31ByEZVf%3DJCGWVVBTWM8irEWy0bQ2OO9zpQvskAA%40mail.gmail.com.


--
Jean-Sébastien Turcotte

Steven Clontz

unread,
Jun 29, 2022, 11:10:23 AM6/29/22
to prete...@googlegroups.com
The difference in presentation is likely unintended; I'm just explaining why it looks different. Folks who know more details on MathJax will have to comment on if it's fixable, but I think the different-looking comma is less obnoxious than a line-broken comma at least.

Jean-Sébastien Turcotte

unread,
Jun 29, 2022, 11:16:19 AM6/29/22
to PreTeXt development
Yes I agree that a comma starting a line is bad. And the comma difference isn't that much noticeable but the question mark is somewhat more. I never know when I enumerate math things if I should do <m>a</m>,<m>b</m> vs <m>a,b</m>. I feel like both could be warranted in a given context.

Also I realise that this is the wrong forum for this, I thought I was in -support. Should we move it?

Reply all
Reply to author
Forward
0 new messages