Rendering a script 'r'

23 views
Skip to first unread message

phil.ma...@gmail.com

unread,
Feb 2, 2020, 2:32:53 PM2/2/20
to MathJax Users
I'm trying to render a script 'r' like you see here: https://tex.stackexchange.com/questions/21274/script-r-symbol

But of course I'm using MathJax so I can't use packages.  Does anyone know how this can be done?

Thank you.

Davide Cervone

unread,
Feb 3, 2020, 9:53:59 AM2/3/20
to mathja...@googlegroups.com
The standard MathJax TeX font does not include glyphs for lowercase script letters, only uppercase ones.  If you are managing your own website where you want this character, you can configure MathJax to use the STIX fonts in either the HTML-CSS or SVG output renderers, but not CommonHTML.

Alternatively, you could reference the Math Alphabet positions for these characters, U+1D4C7 for script r, and U+1D4FB for bold script r.  So something like

\def\scriptr{\unicode[.43,0][STIXGeneral, Cambria Math]{x1D4C7}}
\vec\scriptr \equiv \vec r - \smash{\vec r}'

in a web page should do it.  Note, however, that this relies on the user having a font that contains this character, and not many do.  I've listed STIXGeneral and Cambria Math here, as both of those do, but there is no guarantee that the user will hav such a font available.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/f8f1dc33-3dd9-4d89-a0ea-23d7c7b5cfe9%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages