Created
September 14, 2012 15:30
-
-
Save cdesante/3722663 to your computer and use it in GitHub Desktop.
Tex into Tumblr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Go to the theme of your Tumblr account, | |
and add the following code snippet above the </head>: | |
<script type="text/javascript" | |
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | |
</script> | |
Step 2: Use LaTeX as normal: | |
MathJax has two different ways to begin a TeX section, | |
\( for in-line TeX and \[ for paragraph formatting. | |
These sections would be closed using \) and \] respectively. | |
The equations show above, are produced by writing | |
this in the text of the post: | |
#Title: Embedding \(\LaTeX\) in Tumblr | |
The classic Pythagorean identity is: | |
\(sin^2(\theta) + cos^2(\theta) =1 \) | |
The binomial formula which calculates the probability | |
of obtaining k tails when flipping a coin n times, | |
with a assumed probability p for each trial is: | |
\( P(E) = {n \choose k} p^k (1-p)^{ n-k} \) | |
Finally, the normal (Gaussian) distribution defined by | |
mean \(\mu\) and variance \(\sigma^2\) is: | |
\[f(x; \mu, \sigma^2) = \frac{1}{\sigma \sqrt{2\pi}} e^{-\frac{1}{2} (\frac{x-\mu}{\sigma})^2} \] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment