MathJax fonts

8 views
Skip to first unread message

Sanjay Vel

unread,
Jan 24, 2011, 6:58:44 AM1/24/11
to MathJax Users
It looks like MathJax doesn't seem to use the browser specific fonts
while trying render a piece of html. How should I embed latex fonts
like \bbFont in my code. If I add this to my code, there is no
difference and I am not sure if the font is applied here.

$$
\begin{center}
\begin{tabular}{lcl}
Name & Date & Formula \\
Newton & 1687 & $F = m a$ \\
Einstein & 1905 & $E = m c^2$ \\
\end{tabular}
\end{center}
$$

Davide P. Cervone

unread,
Jan 24, 2011, 9:23:12 AM1/24/11
to mathja...@googlegroups.com
MathJax only implements the mathematics environments, so there is no
center or tabular environments. This should best be handled by HTML
tables:

<table cellspacing="5" align="center">
<tr> <th>Name</th> <th>Date</th> <th>Formula</th> </tr>
<tr> <td>Newton</td> <td>1687</td> <td>$F=ma$</td> </tr>
<tr> <td>Einstein</td> <td>1905</td> <td>$E=mc^2$</td> </tr>
</table>

If you must typeset this in math mode, you can use the array
environment as a replacement for tabular.

$$
\begin{array}{lcl}
\bf\text{Name} & \bf\text{Date} & \bf\text{Formula} \\
\text{Newton} & 1687 & F = ma \\
\text{Einstein} & 1905 & E = mc^2
\end{array}
$$

I'm not sure what you mean by embedding fonts in your LaTeX code. To
get bold, use {\bf ...} or \mathbf{...}, for example. For double-
struck characters, use \Bbb{...} or \mathbb{...}. Not sure quite what
you have in mind. Can you be more specific?

Davide

Reply all
Reply to author
Forward
0 new messages