public
Last active

Tex into Tumblr

  • Download Gist
textumble.r
R
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
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} \]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.