Can I put Math or Equations in my Posts?
Yes! WordPress.com supports , a typesetting system that’s really good at formatting mathematical formulas.
To include code in your post, use the following.
$latex your-latex-code-here$
So, for example,
$latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$
produces
If your code is broken, instead of the equation you’ll see an ugly yellow and red error message. Sorry, we can’t provide support for
syntax, but there are plenty of useful guides elsewhere online. Or a quick post in our forums might find you a solution.
Can I change the size of the LaTeX?
Yes by specifying an s parameter after the code.
$latex \LaTeX&s=X$
where X goes from -4 to 4 (0 is the default). These sizes correspond to ’s font size commands:
s= |
font size | Example |
|---|---|---|
| -4 | \tiny |
|
| -3 | \scriptsize |
|
| -2 | \footnotesize |
|
| -1 | \small |
|
| 0 | \normalsize (12pt) |
|
| 1 | \large |
|
| 2 | \Large |
|
| 3 | \LARGE |
|
| 4 | \huge |
Can I change the color of the rendered image?
WordPress tries to guess the background and foreground colors of your site and generates the image accordingly. But, yes, you can change the colors.
You can specify bg and fg parameters after the code to change the background and foreground colors, respectively. The colors must be in hexadecimal RGB format:
ffffff for white, 0000ff for bright blue, etc.
$latex \LaTeX&bg=ffcccc&fg=cc00ff&s=4$
I want details! What LaTeX packages are supported here?
WordPress.com uses standard with the following packages:
- amsmath
- amsfonts
- amssymb
