texdrive

Sometimes, a formula says more than a 1000 words...

texdrive is an emacs minor-mode for adding mathematical equations to html-pages; things like Euler's , Pythagoras

and so on... It's a replacement for a little tool called WebTex that I wrote a few years ago.

news

usage

Suppose you want to include the famous Bayes' Theorem. Simply type:
  M-x texdrive-insert-formula
  Formula: $P(A|B) = \frac{P(B|A)P(A)}{P(B|A)P(A) + P(B|\overline{A})P(\overline{A})}$
  Title: bayes-theorem
Et voilą; the following is inserted:
  <img src="bayes-theorem.png" title="bayes-theorem"
        class="texdrive-formula" name="$P(A|B) = \frac{P(B|A)P(A)}{P(B|A)P(A) + P(B|\overline{A})P(\overline{A})}$"
        border="0">
Now, all we need to do is texdrive-generate-images-from-html RET, and the corresponding image will be generated:

requirements

texdrive requires LaTeX and Imagemagick. In Debian/Ubuntu, you can install the packages texlive and imagemagick. LaTeX (texlive) is a huge package, but of course it can do a lot more than render formulae for texdrive.

download/installation

Put texdrive.el in your emacs load-path, and add
  (require 'texdrive)
to your .emacs. Then, to enable the texdrive minor mode:
  (texdrive-mode)
This will enable two keybindings: These keybindings fit in with the html-helper-mode keybindings. There als some variables you might want to customize: There are some other variables that you probably don't want to change; but see the texdrive.el source file for details.

license

texdrive is published under the terms of the GNU General Public License (GPL), version 3 or later.

anticipated questions


© 2008 Dirk-Jan C. Binnema