Font kerning in HTML/MathJax

13 views
Skip to first unread message

Sean Fitzpatrick

unread,
May 24, 2023, 4:22:55 PM5/24/23
to PreTeXt support
The official logo for APEX Calculus is defined in LaTeX using kerning to raise and lower letters. The code looks like this:

\hbox{A}\kern -1pt \lower -2pt\hbox{P}\kern -4pt \lower .7ex\hbox{E}\kern -1pt \hbox{X}

This is used to define an \apex macro in our docinfo.
I think this worked OK in MathJax 2.0, but now it just shows the code.

Is there any way to salvage something like this? I could turn it into an image, but the logo is used in a few places (mostly the preface) inline, in the middle of a paragraph.

Sean Fitzpatrick

unread,
May 24, 2023, 4:24:39 PM5/24/23
to PreTeXt support
Oddly enough, this works if I go to the MathJax demo page (https://www.mathjax.org/#demo) and paste it in.

David W. Farmer

unread,
May 24, 2023, 4:48:41 PM5/24/23
to PreTeXt support

Do you want an HTML, non-MathJax version?

<span class="APEXlogo"><span class="A">A</span><span
class="P">P</span><span class="E">E</span><span class="X">X</span></span>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/14e58112-7e65-44d5-bc6d-ee446a4dd8d3n%40googlegroups.com.
>
>

Rob Beezer

unread,
May 24, 2023, 5:38:22 PM5/24/23
to pretext...@googlegroups.com
We do something isomorphic for LaTeX/<latex/>.

You really don't want your logo in math-mode anyway. We'll try to turn it into
Nemeth braille, for one thing.

See the existing templates for "latex". Take David up on his offer. You might
need to see how LaTeX itself defines the macro \LaTeX and mimic that for the
PreTeXt conversion to LaTeX. (Use LaTeX three different ways in one sentence.)

Rob

Sean Fitzpatrick

unread,
May 24, 2023, 5:46:12 PM5/24/23
to pretext...@googlegroups.com
Thanks. In the original LaTeX for APEX, the macro did not require math mode.
But I didn't know how to port that over to PreTeXt without putting the
macro in the <macros> section, and using math mode.

This may (temporarily) fall into the "more trouble than it's worth"
pile, partly because (I think) this would involve adding extra XSL for
the HTML conversion just to get a slightly fancier "APEX" that occurs
twice in the whole book (both in the preface).
Reply all
Reply to author
Forward
0 new messages