After Jean S’s comments written in LaTeX, I decided it was time to add TeX support once and for all. Since the webhost doesn’t have LaTeX installed, I had to use mimeTeX, which supports just basic TeX without all the flourishes, but should be good enough to produce some good quality
equations and symbols sufficient for the uses employed here.
If Steve want to use TeX within posts then he can put [ tex] and [/ tex] either side of his formulae and they will be rendered into TeX when he saves the post. (Note that I’ve put an extra space in the square brackets so that they are not rendered here, but you need to remove the spaces when you use them)
For commenters, TeX is available in the same manner, but since there is no preview, and you cannot go back and edit your comments, you get one shot at it. I would suggest that you pre-render your LaTeX commands on your favorite platform to make sure that they will work, before adding them to the comment.
For example:
[ tex] x = \frac{ -b \pm \sqrt{b^2 – 4ac}}{2a}[/ tex]
will produce the general quadratic formula
45 Comments
John A., this is cool. Thanks for this. It’s particularly nice having some templates to cut and paste.
Autocorrelation:
As Einstein and Maxwell would say,
very good.
Now we go back to school.
here is a latex formula writing overview
Click to access Symbols.pdf
latex test…

didn’t work,
john a any plans to implement images like on the phbb fora?
http://www.phpbb.com/
Re 7, Hans, thanks for the overview, very useful.
w.
It’s really nice to have TeX support. Currently, however, the images are rendered in a fixed number of pixels and do not scale. So for someone who has a very high resolution screen, the images are almost unreadably small. (Opera sort-of scales images; Firefox and IE don’t.)
There have been discussions about how to handle this problem at Wikipedia, and I think something is currently being implemented (to render images in em’s rather than px’s).
Nice, thanks John A. Can you also put a tag which would automatically correct my bad spelling and broken English 😉
Re: #12
Mais oui! The button “Lookup” checks words against a good online English dictionary – at no extra charge.
Well you could have told us that before.
Hi John. What plugin did you use in wordpress for this?
Re #15
Latexrender for WordPress
John, if I wanted to write something that is LAtex-compatible, what software would you recommend?
Re: #17
Probably the best is the freeware TexMaker for Windows. (it’s also available for MacOS and Linux)
LaTeX is so frequently used in academia from anything from theses to research papers to books that I’d think it a worthwhile investment of time to learn the basics.
Re #17, #18: Notice that TexMaker is an editor (a shell) for LaTeX, i.e., essentially a text editor taylored for producing LaTeX code. So in order to compile your code, your need an actual TeX-instalation. Most Windows users I know use MikTeX, which is easy to install and update. Another good LaTeX editor for Windows is TeXnicCenter, which is directly integrated to MikTeX. I have that combination on my Windows laptop, but I mainly use teTeX+emacs (Linux) on my desktop.
Quite right. I installed mikTeX on Windows before installing TexMaker. I just forgot to mention it….
I just discovered something interesting about LaTex editing: if you don’t have your own LaTex editor, you can build LaTex expressions in the Comment section here and copy them into Word.
#22 Steve M.: Word 2007 has/will have (beta version available free) its own equation tools. Not LaTeX but still pretty.
For my “day job” I have to use the Microsoft Equation editor (standard where I work). I’ve been using it since Microsoft Word ’97, so it has been shipped with Office since then, but you have to use a custom install and check the equation editor option at install time. Annoyingly it uses non-standard fonts so if you subsequently look at the document on a machine that doesn’t have the equation editor installed stuff looks and prints wrong (dots over variables turn into ampersands… helpful!)
I don’t think I would use the Microsoft Equation editor if I had a choice. It is not especially intuitive or easy to use, and although it has a fair range of capabilities, I’ve come across expressions I’ve been unable to do in it. It also seems to make Word more crash-prone as well… certainly with an early release of Word 2003 and Equation Editor 3.0 I could get it to consistently crash just by copying an equation, editing it and then trying to save the document…
I DL’d an add-on to Equation 3.0, called Mathtype I think. It adds to the functionality immensely and seems to make it work better.
Mark
test:
$latex y
test2:

Stev – you need to have the closing saying [ /tex] – leave out the blank.
I tried that. I think the problem is “lt”

test3:
Who on earth decided the
character would make a good one for indicating a tag? Obviously not a mathematical programmer. This means it is not possible to get a cop-and-pastable
, which means you can’t copy and paste R scripts into posts.
Rhetorical question. Thanks for allowing the tests.
I wonder if there’s a font handy which could be used to allow copy and paste of some of the troublesome things. Of course if the font wasn’t available on your computer things would look weird, but at least the rest of the string would be readable. There are generally lots of foreign and obsolete characters which could be replaced.
Tex test
$latex
$$\eqalign{&dK=-\lambda Kdt+Idt\cr
&giving\ the\ ODE\cr
\over {dt}}=-\lambda K+I\cr}$$
$
{{dK} \over {dt}}=-\lambda K+I\cr$$
$
Last try
$latex
$$dK=-\lambda Kdt+Idt\cr
{{dK} \over {dt}}=-\lambda K+I\cr$$
$
use the code tag
3
interesting:
I was trying 3 left pointed bracket 4 (3 lt 4), which showed up nice in the preview but not in the post.
test
[tex} a = b^c [\tex]
test
$latex a = b^c [\tex]
test
$latex a = b^{c}[\tex]
test
You’ve now worked the syntax for tags Gerald?
John A (#42):
I would like to write my presentation in its entirety before submitting it. But if I have to use the tex tag in quicktags, that will not be possible. Is there some way to write the presentation in LaTeX on my home computer and then submit it so that it will interface with your blog (so I can preview the mathematical equations)?
Jerry
Just testing. 👿 I think I understand tex a bit better. 😈
should look better than
. Why should it be so hard? 😡
Test:
[ tex] x = \frac{ -b \pm \sqrt{b^2 – 4ac}}{2a}[/ tex]