tag:blogger.com,1999:blog-75960853452932417922014-10-01T21:36:12.188-07:00DistractedFor great justice!Stacy Jhttp://www.blogger.com/profile/13159319708480115009noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7596085345293241792.post-718586674496340732010-07-31T02:28:00.000-07:002010-07-31T02:28:30.746-07:00Math, Math EverywhereApparently you <i>can</i> use math on Blogger. I've been using <a href="http://www.math.union.edu/%7Edpvc/jsMath/">jsMath</a> <a href="http://stacyprowell.com/">elsewhere</a>, but <a href="http://www.mathjax.org/">MathJax</a> seems to work best if you have to do things across domains. And on Blogger, it seems you do.<br /><br />Here is some TeX equation goodness for you. \[e^{i\pi} = -1\]<br />Now that's a beautiful equation. You might have to wait a few seconds for it to appear in rendered glory. Look at the bottom left, where MathJax displays status information while it's working.<br /><br />Inline math works, too! I think we can all agree that \(\nabla \cdot \mbox{E} = \frac{\rho}{\epsilon_0}\), while \(\nabla\cdot\mbox{D}=\rho_f\).<br /><br /><h2>How It's Done</h2>To get equations, you need to do the following.<br /><ol><li>Install MathJax somewhere publicly accessible. You need a server you control, where you can upload arbitrary files.</li><li>Modify the MathJax installation slightly to allow access from other domains.</li><li>Modify the HTML of your Blogger page to load MathJax.</li></ol>The brutal details follow.<br /><ol><li>First, download MathJax from here: <a href="http://www.mathjax.org/">http://www.mathjax.org/</a>. I recommend downloading the archive. Be sure to get both the MathJax core files, and the web fonts.</li><li>Unzip the archives on your web server. Note that the fonts should be unzipped <i>inside</i> the <tt>MathJax</tt> folder to create the <tt>fonts</tt> folder.</li><li>Verify it works! Point your browser to the MathJax installation's <tt>test</tt> folder. It is probably something like http://yourserver/MathJax/test. Make sure the equations render correctly, and go read the documentation if they don't. <b>Remember</b>: It may take a few seconds to render the equations!</li><li>Follow the instructions <a href="http://www.mathjax.org/docs/installation.html#cross-domain-linking">here</a>. Basically, go to MathJax/fonts/HTML-CSS/TeX/otf and create a .htaccess file with the following contents.<br /><tt><FilesMatch "\.(ttf|otf|eot)$"><br /><IfModule mod_headers.c><br />Header set Access-Control-Allow-Origin "*"<br /></IfModule><br /></FilesMatch></tt><br /></li><li>Now, go to your Blogger account and click Design and then Edit HTML. Add the following line as the first line in the section.<br /><tt><script type="text/javascript" src="http://yourserver/MathJax/MathJax.js"></script><br /></tt><br />Of course, replace that URL with the correct URL for your installation. </li></ol><br />That's it. Create a post and add some inline math with <tt>\</tt><tt>(</tt>...<tt>\</tt><tt>)</tt>, and some display equations with either <tt>$</tt><tt>$</tt>...<tt>$</tt><tt>$</tt> or <tt>\</tt><tt>[</tt>...<tt>\</tt><tt>]</tt>. Preview it to make sure it works, and if so, you're done! Enjoy!Stacy Jhttp://www.blogger.com/profile/13159319708480115009noreply@blogger.com0tag:blogger.com,1999:blog-7596085345293241792.post-22528891914123637122009-10-28T19:58:00.000-07:002009-10-28T20:07:02.215-07:00My So-Called "Blog"Facebook. MySpace. Blogger. LinkedIn. Plaxo. Plus the handfull of other web sites I can't even begin to remember. I've got a personal web page I can't remember, or find, the link for. Nice.<br /><br />There's just too much work to maintain an online persona. My job gets in the way. My hobbies get in the way. My family gets in the way. And people want to know why I don't join them on Vampire Wars. Yeesh.<br /><br />I've picked the sites I maintain. They are roughly the following.<br /><ul><li><a href="http://stacyprowell.com/">http://stacyprowell.com/</a></li><li>My Facebook profile.</li><li>My LinkedIn profile.</li><li>My employer-provided pages, that are mostly static text.</li></ul>You've reached Blogger; it isn't in that list, so...Stacy Jhttp://www.blogger.com/profile/13159319708480115009noreply@blogger.com0