Algebra font

Algebra font

by Richard Williamson -
Number of replies: 3
Is there any control in any of the scripts over the choice of font for algebra output?

Regards
Richard W
Average of ratings: -
In reply to Richard Williamson

Re: Algebra font

by Zbigniew Fiedorowicz -
No, it is hard-coded (and I mean HARD) into the mimeTeX program which does the actual conversion from algebra/tex into images.  To change it, you would need to extensively rewrite the C source code of that program.
In reply to Richard Williamson

Re: Algebra font

by Rimas Abromavičius -
If you're using TeX, it's possible to change the font size, though the font-face is hardcoded.

I've customized the formula output this way:
$texexp = '\LARGE \nolimits ' . $texexp;
(this is line 51 of /filter/tex/pix.php; CASE DOES MATTER!)

You can find more info @ http://www.forkosh.com/mimetex.html
(a newer version of Mimetex is also available, so you should probably upgrade as well).

It's a good idea to clean the /<data>/filter/tex folder, to refresh all the cached formulas.

Hope this helps =)


In reply to Rimas Abromavičius

Re: Algebra font

by John Forkosh -
The font face is hard-coded, like you say, but it's not impossibly hard to modify. In fact, Appendix A of the full mimetex manual at http://www.forkosh.com/mimetexmanual.html contains (somewhat elaborate) instructions for modifying the existing font faces, or for adding new fonts or new sizes of existing fonts. The "adding new ones" part is actually a bit misleading. You could add new font sizes without changing the code, but new font faces would require some code changes to recognize corresponding font selection commands like \mathnewfont{stuff rendered in your new font}.

In any event, it's a bit of an undertaking. For example, I've been wanting to add LaTeX's cmmib (for \mathbf{}) fonts, but haven't found time.