## Hosting MathJax Image Fonts ElsewhereApril 04, 2016

This website uses MathJax to format math syntax. It parses $\LaTeX$ code and outputs a mess1 of CSS code that positions the characters and symbols correctly. Most of the time, it uses web fonts. However, the fallback is an image font where every character of the font is an individual PNG file. This works out to about 30,000 individual files, all to support ancient browsers. I attempted to host these files myself, but they nearly broke git-ftp, which I use to upload files to the server automatically.

My solution to this was to host all of the MathJax files except for the image fonts myself, then redirect the image directory to the MathJax CDN. This is a very simple line in my .htaccess file:

RewriteRule ^bower/MathJax/fonts/HTML-CSS/TeX/png/(.*)$http://cdn.mathjax.org/mathjax/latest/fonts/HTML-CSS/TeX/png/$1 [R=301,NC,L]


It seems to work, and frankly, outdated browsers are not a big concern on a website that gets essentially no page views.

more

## $\LaTeX$ TricksOctober 25, 2015
Recently, I have beeing using $\LaTeX$ for almost all of my word processing. In general it is wonderful, but there are some things that are more difficult to set up than they should be. Below are some solutions to problems I have run across.