TeX image

From Mathtran

Jump to: navigation, search

JavaScript

The easiest way to put TeX images on your web page is to use JavaScript.

In the <HEAD> of your HTML page put the line:

<script type="text/javascript" src="http://www.mathtran.org/js/mathtran_img.js"></script>

In the <BODY>, when you want a TeX image, write one of

<img alt="tex:<math formula>" >    <!-- HTML -->
<img alt="tex:<math formula>" />   <!-- XHTML -->

where '<math formula>' is the formula you want to display, written in TeX notation.

Notes

  1. The mathtran_img.js file on the public MathTran server is the latest released version.
  2. You can if you wish place a copy of 'mathtran_img.js' on your own web site, and refer to that instead.
  3. You can view the development history of mathtran_img.js on SourceForge. You can also download any revision from this page.
Personal tools