Subscribe

LaTeX and Web Fonts in Drupal 7

Thu, 03/22/2012 - 17:14 -- Doug

If you hadn't noticed already from the last post, I've been on kind of a math kick these days. I've been eager to share what I've learned, haven't had a way to share formulas other than images. That's ok, but it's not very flexible.

I tried setting things up manually, but didn't have a ton of luck. Fortunately, there's a module (MathJax: LaTeX for Drupal) that seems to work pretty well. Unfotunately, it's still in beta, so use it at your own risk.

As Drupal 7 modules go, it's a very easy setup. There is one gotcha that might have you scratching your head for too long if you don't know about it in advance. LaTeX doesn't render in a CKEditor window yet, so you won't see your new content until you press Preview or Save. But if you get past that, it's easy.

Simply start a new page or blog post, make sure that you're working in Full HTML mode, and surround your math with one of the delimeter sets below.

\$\$...\$\$ Shows your markup in a block apart from from everything else like this: