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\x96\x85\x91\xe5-{\x99\x97_\xe\x33\xaf\xba,"
"\xe6\x32k\xa1\x6hN\xb3\x9a\xd7\xcc\xe6\x36\xbb\x19\x6!\x0\x0;",
NULL } ; /* --- end-of-image11[] --- */
/* ---
* image12[] contains a 1426-byte gif rendering of expression
* \usepackage{color}\color{red}\footnotesize\fparbox{
* (12) dvips ran but failed:\\See mathtex.html\#message12}
* ---------------------------------------------------------- */
#define IMAGETYPE12 1 /* 1=gif, 2=png */
#define IMAGESIZE12 1426 /* #bytes in image12[] */
static unsigned char *image12[] = {
(unsigned char *) "GIF89a\xcd\x0(\x0\x84\x0\x0\xff\xff\xff\xff\x0\x0\xff"
"\xff\xff\xff\x99\x99\xff\x64\x64\xff\xb8\xb8\xff--\xff\b\b\xff\xdb\xdb"
"\xff\xe\xe\xff}}\xff \xffOO\xff\x3\x3\xff\x16\x16\xff==\xff\x1\x1\xff[["
"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0"
"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0!\xf9\x4\x1\x0\x0"
"\x0\x0,\x0\x0\x0\x0\xcd\x0(\x0\x0\x5\xfe` \x8e\x64i\x9eh\xaa\xael\xeb"
"\xbep,\xcf\x30`\xdfx\xae\xef|\xef\xff\xc0\xa0pH,\x1a\x8f\x41\x11r\xc9l:"
"\x9f\xd0\xe8P)\xadZ\xaf\xd8\xec\x91\xaa\xedz\xbf\xe0%7L.\x9b\xc1\x63\xde"
"\x80 D<\x82\bE\xe1\f\x97\?\xed\xbd\xf8\xdc\xa7\xa7\xa7u\x5\x6\x37\x81\x3"
"\x83\x6\x6\v\b6\x3\v@\x5\t\x82<\tot\x8f\x91\x41{9\x8f\n\x1;\x93\x0\x96\?"
"\xa1g\x7f\x39\a\x8a\x0\f\f\r\n6\b\xe\x36\xf\r7\v\x85\?\x87=\x4\xb6t\xb8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ec\xe1KR\xca\x12\xe\x16\x0:\x2"
"\xdc\x3\x86N\xc0\x1a\xa6\xecT\xb0\x1\x64\b\f\t\xb9\xc1\x7f\xaa \xc4!\xae"
"\xe9\x19x(C\xd7\x42\xc7\xc4\x12:\xf1\x8aX\xcc\x94\x15\xb3\xc8\xc5,6\xb1"
"\x8b`<\x14\xd4\x17\xc3H\xc6\?\xd1\xe0\x8chL\xa3\x1a\xd7\xc8\xc6\x36\xca "
"\x4\x0;",
NULL } ; /* --- end-of-image12[] --- */
/* ---
* image13[] contains a 2307-byte gif rendering of expression
* \usepackage{color}\color{red}\footnotesize\fparbox{
* (13) Can't run convert program:\\check -DCONVERT=$\backslash$
* "path$\backslash$", etc.\\See mathtex.html\#message13}
* ------------------------------------------------------------- */
#define IMAGETYPE13 1 /* 1=gif, 2=png */
#define IMAGESIZE13 2307 /* #bytes in image13[] */
static unsigned char *image13[] = {
(unsigned char *) "GIF89a\xef\x0\x38\x0\x84\x0\x0\xff\xff\xff\xff\x0\x0"
"\xff\xff\xff\xff\x99\x99\xff\x64\x64\xff\xb8\xb8\xff--\xff\b\b\xff\xdb"
"\xdb\xff\xe\xe\xff}}\xff \xffOO\xff\x3\x3\xff==\xff\x1\x1\xff\x16\x16"
"\xff\x32\x32\xff\v\v\xff>>\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0"
"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0!\xf9\x4"
"\x1\x0\x0\x0\x0,\x0\x0\x0\x0\xef\x0\x38\x0\x0\x5\xfe` \x8e\x64i\x9eh\xaa"
"\xael\xeb\xbep,\xcft\x9d\x2x\xae\xef|\xef\xff\xc0\xa0pH,\x1a\x8f\xc8\xa4"
"r\xc9\x13\x31\x9f\xd0\xa8tJ\xadZs\xce\xabv\xcb\xedz\xbb\xd9\xafxL.\x93"
"\xc3\xe6\xb4z\xcd&\xa2}\x3\x2\x11\xe1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x83"
"\x5\x39\aH\xe0\x8b\xde\x42 Pdh\x8c\x1f\xc1M\x8c:(\xcel\xe3\x46|n\x89I\xca\x83\b\x11\xae:\x1c\xb5\xce\x1eLa5\x1e^ \xe6\xa3V"
"\xf7\x45\x31:\x4\xea\xcdH\x15\x95\xadW\x1b\x82\xc0\x95\x14\xea b\x90\xb6"
"\x17\x37Z\xc1\xe8P\xe2\x0\x82y\xeaPH8\x0\x4 (\b\x80\xbd\xde\xa8\xc8\xf"
"\x8d\x41\xce\xd8 \xa3\v\x2&\x1|\xf\x93\xcc\xf6\xd6r\xbap\x85\xc5R\xb3"
"\xb9\r\xb4\x2\xd0\x9a\xbf\v\xda\x30\x46\x45\x31\x9d\xf7z\xc3"
"\x96\x5\x95\t\x80\x83\xd3\x1&\xae\xc3\xaf:\xd0M\af\xf2\x45\xedH\x92\x96}"
"\xe9\xe\x8b\xa6\b\xfe\xdc\x7f\x8e\xd8 h\x99q\x1f\xbeX\x97\x85\x9e\x62"
"\x88\xfd\xcc\x86;\x90#\x8a\x1a\x81\xa0\x44\xb4\x30\xc2Rp\xb3`\xeb\xe4"
"\x30\x1b\x12\xd5n\x8fhq\x0\xe\xd7\x46\x8e\x87\x1d\xcd\x89Z\t\x1e\xff\xb2"
"\xd3\x80Y\xfc\x62P<\x80\xc0\x9b\xb2\x17\x90\"\x89\xd1\x15K<\xd7\x19\x43"
"\xa8\a\xd8\xe4PEw\x98\x11\x8a\xe8S\xa3\x43xR",
(unsigned char *) "G\xd0\xf3\xa3\x89P\x4\xc8\x1b\x35\xc1\x82\x1a\xc1\x46P"
"\xc4\xd4\xa6\x34\x39 @f\x92\x65\x94p\xf3\xa3\x39\x86,\x0#\xfb\x9d@&Q\tY"
"\x18\xc3@\x14i\xda\x97\x2\xc0%\x9e\x15\x46K\"\x3\xa0\?&\x96\xb1\xfd\xbc"
"\x8f\x1\n\x98\xc0W,f\x9d \f2O{\x92\x43\xa2\x9e\x4\x89\x2\xdc\xa9M\xb5|\v"
"\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NULL } ; /* --- end-of-image13[] --- */
/* ---
* image14[] contains a 1444-byte gif rendering of expression
* \usepackage{color}\color{red}\footnotesize\fparbox{
* (14) convert ran but failed:\\See mathtex.html\#message14}
* ---------------------------------------------------------- */
#define IMAGETYPE14 1 /* 1=gif, 2=png */
#define IMAGESIZE14 1444 /* #bytes in image14[] */
static unsigned char *image14[] = {
(unsigned char *) "GIF89a\xcd\x0(\x0\x84\x0\x0\xff\xff\xff\xff\x0\x0\xff"
"\xff\xff\xff\x99\x99\xff\x64\x64\xff\xb8\xb8\xff--\xff\b\b\xff\xdb\xdb"
"\xff\xe\xe\xff}}\xff \xffOO\xff\x3\x3\xff\x1\x1\xff==\xff\x16\x16\x0\x0"
"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0"
"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0!\xf9\x4\x1\x0"
"\x0\x0\x0,\x0\x0\x0\x0\xcd\x0(\x0\x0\x5\xfe` \x8e\x64i\x9eh\xaa\xael\xeb"
"\xbep,\xcf\x30`\xdfx\xae\xef|\xef\xff\xc0\xa0pH,\x1a\x8f\x41\x11r\xc9l:"
"\x9f\xd0\xe8P)\xadZ\xaf\xd8\xec\x91\xaa\xedz\xbf\xe0%7L.\x9b\xc1\x63\xde"
"\x80 D<\xce\x65\x84\xa2\x0\x9d\xfb\xe4\xf4\xbb\xdd\x9a\xd6\x15\f7\x7f\x3"
":\v\n6\x3\vp~X\x5\t\x80\x42y~\t\n\x1;\to\x8d\x8f=\x99W}9\a\b6\f\f\r\x86"
"\x38\x3\xe\xa6\x0\v\x83\x8a\x37\x9aV\x6\xb0\?\xb3\xaf\x80\x91\x38\x4\xad"
"\xb2@\xbc|\x95=\x3\t\x9f\xaa\x0\b\f\a\xaa\x3\x10\xae\x36\xf\xb5Q\xbe@"
"\xcf<\xd2>\xd6\xd5\xd0N\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d7\x6\x81\xcd"
"\x1f\xf3\x31\xba\xd3\x31\x83\xf1\xda\xc3\x1\xe|$J\?\xf5\xb0\x9b\x43T\x10"
"\xd5\x18\x91($\x89\xe2\x11R\xf1\xd6s/\x95+\xed\x83\x65:\a\x1c\xc6\x94<"
"\xf4\xd8k\x90h\xe\xc4\x1b\xe4\xbc\xc6\t5\xc8\x0\x61\xa5\x93\x30\xc1\v"
"\x17\xcc\xaf\?\b\xacs\x99\x31\x1a\xdf\xd3NC\xeb\x9a\xf3\xd2\xc5\x91\xec"
"\x4\xce\xae\x37\xcc",
(unsigned char *) "Y\x95\b\xeeH5\xc0\x1sM\x5\xdaX\xbb\xf1\xe6\x16X\x9f"
"\xd5\xdc\\\xcc/c\xd4\x80\x1cu\xde\x96s\xb0\x34\xd3\xbc\xd6\x1f\xb2\x18"
"\x94\x94,(\x15\xbd\x14\xcf\x6-\xd8\x99\xd4m}\x15\x96xSB\xcd\xdd\r\x4\xe8"
"\x84\xb2\rs\xce\xf8\x80]\xa6\x41\x46I\xd9\x90\x39\xda\\h\xa3\r]\x19t\xa7"
"\x1\xb3\x1e\x8c\x93\xe5\xd5\xdb\xdav\x1bs\xf\x9eo\xaf\x85\x36%\xa8p\x16J"
"\xe0\x80\xda \x1a\x7f\x0\x0\xb3\xa3\x63\x66\x8f\x63\x13`\xb5\x45{\xea"
"\x7f\xc5\x94\x42\xddu\xc7\xf6\xdd\x16rKq.\x9d\x88\xfe\x98\xd3xO\xe6w\x8b"
"\xf8\xb9\xe6r(\xf0\fd\x93@\xa6\xb9\x64\xd4\x15\xb0\xf\x4J\xc9\xce\x0\xed"
"\x9b\xf3\x16\xf\xc8\x98\xfb\xe5\x10\xd3\xb2\x5m\xee\xe\n\xc0\xf2\x33\x81"
"\xce /\x94r\x9a\x3H\x9f\x64\xf5%g\x80\xf2od\xec[X\xb7\x9e\xde\x9f\xf6"
"\x9e\xa5\xfe\x18Xf\xbf.\x97\x86\xcf\xe4\x61\x95\x1\xe6\xff\x37\xd6\xf3"
"\x41S\xbf\xb5\x37=H\xeb\bd\xb3M$\xa5y\xf7#y\xc0\x93\xfc+\xa0\xa4\x8d\x89"
"\x30\x92<\xa0\x94#\x1:\xe5~\x1dI\xc4\x43\x1a\x31\f\x1c\x41\xe9,.\"X\xff"
"\x1c\xe8,\xdf\x84\v$\xfb\x83\f\x1\x1f\x88\xa2s\x98\x63\r\x9d\x61\x5\x1"
"\xaaW#&\xf9\xe6\x0(\\\x0V\xf2\x17\xa1\ti\xe2\xf\x13\x12^\xca&7*\xc8\x98I"
"\"\x9b\xb2S\x9b\x80\x30\xa6\x1c\x12\x61Y>\x80\xd8\x5\x61\x45*\xf0\xc4IT8"
"X@\xeb\b\x90\xf\x32mcr\xa5\xca\xd3\x3\x1e\x16\xb1\x30\xc4\x83k\x2{B\xd8"
"\xa2\b\aS\xec\xa1\ffs&]\x15\xb6\xc8\xc5\x32\x46\x8a\x8c\x66L\xa3\xa2\xd0"
"\xa8\xc6\x36\xea\x89\x8dn\x8c#\x1ch@\xc7:\xda\xf1\x8ex\xcc\xa3\x1e\x65"
"\x10\x2\x0;",
NULL } ; /* --- end-of-image14[] --- */
/* ---
* image15[] contains a 1870-byte gif rendering of expression
* \usepackage{color}\color{red}\footnotesize\fparbox{
* (15) Can't emit cached image:\\check permissions.\\
* See mathtex.html\#message15}
* ---------------------------------------------------------- */
#define IMAGETYPE15 1 /* 1=gif, 2=png */
#define IMAGESIZE15 1870 /* #bytes in image15[] */
static unsigned char *image15[] = {
(unsigned char *) "GIF89a\xcd\x0\x38\x0\x84\x0\x0\xff\xff\xff\xff\x0\x0"
"\xff\xff\xff\xff\x99\x99\xff\x64\x64\xff\xb8\xb8\xff--\xff\b\b\xff\xdb"
"\xdb\xff\xe\xe\xff}}\xff \xffOO\xff\x3\x3\xff\x16\x16\xff==\xff\x1\x1"
"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0"
"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Pw\xe5\x8f\xa5\x30\x45\x0M\xe9J\rj\x1d"
"\xdc*\xebg\x85\a\x94\xf1\xa0`HU\xbfR\xe9\x84\xf9\x11\xb6\t\xd7\xf0_\x18l"
"\xc5\xbe\x64\r\xf6\xb1\x98\x95\x82\x63\x33\xcb\xd9\x8eu\xf6\xb3\xf6\xbb,"
"hG\xcb*\xd2\x9a\xb6\xb1\x34H\xadjW\xcb\xda\xd6\xba\xf6\xb5\x31\b\x1\x0;",
NULL } ; /* --- end-of-image15[] --- */
/* --------------------------------------------------------------------------
Other Allocations and Declarations
-------------------------------------------------------------------------- */
/* ---
* aggregate array of embedded images
* ---------------------------------- */
static unsigned char **imagetable[] = { NULL,
image1, image2, image3, image4, image5, image6,
image7, image8, image9, image10, image11, image12,
image13, image14, image15, NULL };
int imagesizes[] = { 0,
IMAGESIZE1, IMAGESIZE2, IMAGESIZE3, IMAGESIZE4, IMAGESIZE5, IMAGESIZE6,
IMAGESIZE7, IMAGESIZE8, IMAGESIZE9, IMAGESIZE10,IMAGESIZE11,IMAGESIZE12,
IMAGESIZE13,IMAGESIZE14,IMAGESIZE15,0 };
int imagetypes[] = { 0,
IMAGETYPE1, IMAGETYPE2, IMAGETYPE3, IMAGETYPE4, IMAGETYPE5, IMAGETYPE6,
IMAGETYPE7, IMAGETYPE8, IMAGETYPE9, IMAGETYPE10,IMAGETYPE11,IMAGETYPE12,
IMAGETYPE13,IMAGETYPE14,IMAGETYPE15,0 };
/* ---
* other variables
* --------------- */
static unsigned char image[8192]; /* returned image */
unsigned char **imagestrings = NULL; /* image1, image2, etc */
int istring = 0, /* imagestrings[] index */
imagesz = 0; /* sizeof entire image */
/* ---
* look up requested image (if we have it)
* --------------------------------------- */
if ( nbytes != NULL ) *nbytes = 0; /* init for error */
if ( imagenum<1 || imagenum>MAXEMBEDDED ) imagenum=1; /*out-of-bounds check*/
imagestrings = imagetable[imagenum]; /* ptr to array of image strings */
imagesz = imagesizes[imagenum]; /* total #bytes in image */
if ( imagestrings == NULL ) imagesz = 0; /* sanity check */
if ( nbytes != NULL ) *nbytes = imagesz; /* caller wants #bytes in image */
if ( imgtype != NULL ) *imgtype = imagetypes[imagenum]; /* and image type */
/* ---
* build up images from constituent strings
* ---------------------------------------- */
if ( imagesz > 8192 ) imagesz = 8192; /* don't overflow buffer */
memset(image,0,imagesz); /* zero out returned image buffer */
while ( imagesz > 0 ) { /* still need more bytes in image */
unsigned char *string = imagestrings[istring]; /*so get next image string*/
int thissz = min2(stringsz,imagesz); /*entire string or image's tail end*/
if ( string == NULL ) break; /* looks like a program error */
memcpy(image+(istring*stringsz),string,thissz); /* concat string to image*/
imagesz -= thissz; /* fewer remaining bytes */
istring++; /* get them from remaining strings */
} /* --- end-of-while(imagesz>0) --- */
return ( image );
} /* --- end-of-function embeddedimages() --- */
/* --- end-of-file mathtex.c --- */
mathtex-1.03/mathtex.html 0000644 0000000 0000000 00000377674 11246205152 014173 0 ustar root root
mathTeX manual
Copyright © 2007-2009,
John Forkosh Associates, Inc.
email: john@forkosh.com
This manual contains more information
than you'll probably need to read. If you follow the
QuickStart instructions below, try installing mathTeX immediately.
If you need more information,
continue reading until you feel comfortable trying to install mathTeX.
Return to the manual as needed.
Prerequisites are: some knowledge of Unix shell, of installing cgi's,
of LaTeX.
"Computers are like Old Testament gods:
lots of rules and no mercy."
Joseph Campbell, The Power of Myth
(Doubleday 1988, page 18)
C o n t e n t s |
|
Q u i c k S t a r t
|
|
|
Installation: |
Note: The current release of mathTeX
only runs under Unix-like operating systems.
First, install mathTeX's dependencies:
a recent TeX distribution with
dvipng,
on
your server. Or see
mimeTeX if you can't.
Then, download
mathtex.zip and type
unzip mathtex.zip
cc mathtex.c \
DLATEX=\"$(which latex)\" \
DDVIPNG=\"$(which dvipng)\" \
o mathtex.cgi
(see
Dswitches
for more information).
Finally, just
mv mathtex.cgi to your cgi-bin/
directory,
chmod permissions as necessary,
and you're all done.
|
|
Usage: |
To see the image
in your html page, just write the tag
<img src="/cgi-bin/mathtex.cgi?
x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}"> |
|
(1) Introduction
MathTeX, licensed under the
gpl,
is a cgi program
that lets you easily embed
LaTeX math
in your own html pages, blogs, wikis, etc.
It parses a LaTeX math expression and immediately emits the
corresponding gif (or png) image, rather than the usual
TeX dvi.
So just place an html <img> tag in your document
wherever you want to see the corresponding LaTeX expression.
For example,
<img src="/cgi-bin/mathtex.cgi?f(x)=\int_{-\infty}^xe^{-t^2}dt"
alt="" border=0 align="middle">
immediately generates the corresponding gif,
displaying
wherever you put that <img> tag.
mathTeX dependencies...
MathTeX's uses the
latex and
dvipng
programs, along with all necessary fonts, etc, from your
TeX distribution. Occasionally, you may need to
download dvipng separately.
If you can't, or don't want to,
install dvipng, then you may optionally specify the
DDVIPS and DCONVERT switches when
compiling mathTeX. Then mathTeX uses
dvips
from your TeX distribution,
and convert from the
ImageMagick
package, instead of dvipng.
That is,
cc DLATEX=\"path/to/latex\" DDVIPNG=\"path/to/dvipng\" mathtex.c o mathtex.cgi
compiles mathtex.cgi with dependencies latex and dvipng, whereas,
cc DLATEX=\"path/to/latex\" DDVIPS=\"path/to/dvips\" \
DCONVERT=\"path/to/convert\" mathtex.c o mathtex.cgi
compiles mathtex.cgi with dependencies latex and dvips and convert.
(Note: dvipng is easily twice as fast
as dvips/convert, and it produces somewhat smaller image files,
with no discernible (to me) loss of quality or other downside.
So I recommend its use if you have it installed or can
install it.)
These dependencies always latex and either dvipng or
dvips/convert must all be installed on your server
before you can run mathTeX. Ask your ISP or sysadmin if
you have any questions or problems installing them. Or see
mimeTeX
if you can't install them.
If you're using
dvips and
and convert (rather than
dvipng),
then be advised that recent versions of
convert seem to exhibit a minor bug whereby
the program's gamma correction option is ignored
when converting postscript images to any other format.
The default, and unchangeable, gamma renders
acceptable-looking png images, but unacceptably light gif images.
Earlier versions of
convert seem to respect the
gamma option and, moreover, render acceptable
default gif images anyway.
So if you're using
dvips/convert and are seeing very light images,
I'd recommend downloading
ImageMagick version 6.2.6 source from
http://sourceforge.net/projects/imagemagick/files/
and building your own version of
convert. That should fix your problem.
Alternatively, an even easier fix is to
compile mathtex with the -DPNG switch,
which renders acceptable-looking default png images regardless of
convert version.
mathTeX plugins...
There's no inherent need to repeatedly write the cumbersome
<img> tag illustrated above. You can write your own custom tags,
or write a wrapper script around mathTeX to simplify the
notation.
For example,
the following javascript snippet (based on
mathtran's
mathtran_img.js) lets you just write
<img alt="mathtex:c=\sqrt{a^2+b^2}">
wherever you want to see
<script type="text/javascript">
<!--
// Create a namespace to hold variables and functions
mathtex = new Object();
// Change this to use your server
mathtex.imgSrc = "http://www.yourdomain.com/cgi-bin/mathtex.cgi?";
// Transform the whole document: add src to each img with
// alt text starting with "mathtex:", unless img already has a src.
mathtex.init = function () {
if (! document.getElementsByTagName) return;
var objs = document.getElementsByTagName("img");
var len = objs.length;
for (i=0; i<len; i++) {
var img = objs[i];
if (img.alt.substring(0,8) == 'mathtex:')
if (!img.src) {
var tex_src = img.alt.substring(8);
img.src = mathtex.imgSrc + encodeURIComponent(tex_src);
// Append TEX to the class of the IMG.
img.className +=' tex'; }
}
mathtex.hideElementById("mathtex.error"); }
// Utility function
mathtex.hideElementById = function (id) {
var obj = document.getElementById(id);
if (obj) obj.style.display = 'none'; }
// resolve a cross-browser issue (see CBS events)
mathtex.addEvent = function (obj, evType, fn, useCapture) {
if (obj.addEventListener) { //For Mozilla.
obj.addEventListener(evType, fn, useCapture);
return true; }
else if (obj.attachEvent) { //For Internet Explorer.
var r = obj.attachEvent("on"+evType, fn);
return r; }
}
// Initialize after entire document is loaded
mathtex.addEvent(window, 'load', mathtex.init, false);
-->
</script>
Bulletin boards, wikis, etc, can also incorporate mathTeX images
with short scripts. For example, if you're using
phpBB2, then
Jameson
contributed the following one-line mod that lets
you write [tex] ... [/tex] for mathTeX images:
#--------[open]-----------------------------------------------------
/includes/bbcode.php
#--------[find]-----------------------------------------------------
// Remove our padding from the string..
#--------[before, add]----------------------------------------------
$text = preg_replace('/\[tex\](.*?)\[\/tex\]/ie',
"'<img src=\"/cgi-bin/mathtex.cgi?'.rawurlencode('$1').'\" align=\"middle\" />'",
$text);
Similarly, if you're using
phpBB3,
then no mod is even needed.
Just click Postings from the Administrator Control Panel,
and add the Custom BBCode [tex]{TEXT}[/tex]
with the HTML replacement
<img src="/cgi-bin/mathtex.cgi?{TEXT}" align=middle>
Now you can also write [tex] ... [/tex]
to obtain mathTeX images of the enclosed expression.
Plugins for several additional packages already exist for my other
math-rendering program,
mimeTeX,
which runs without dependencies, but produces slightly lower
quality images than LaTeX. These plugins also work with mathTeX.
Just substitute mathtex.cgi wherever the instructions say
mimetex.cgi.
Please note: If you're writing your own plugin for mathTeX,
please write code using system( ), or any other
shell escape mechanisms, carefully. system( ) raises
security issues, either real ones if used carelessly, or just in
the minds of system administrators. Either way, I've received emails
from people unable to use mathTeX because of unnecessary
system( ) calls prohibited by security-conscious sysadmins.
MathTeX itself poses minimal risk when used as illustrated above,
but you're responsible for any plugin/wrapper script you write
around it.
mathTeX alternatives...
Other math-on-the-web solutions are discussed at
www.tug.org/interest.html, and in the
tex-faq/LaTex2Html and
tex-faq/mathml.
Several LaTeX-based solutions
similar to mathTeX that you may want to look at are
latexrender,
mathtran,
textogif, and
gladTeX.
However, if you can't install a
TeX distribution
on your server, then you may prefer to look at a stand-alone
math rendering program like
mimeTeX,
which has no dependencies whatsoever, but which produces slightly
lower quality images than LaTeX.
mathTeX web services...
If you have trouble installing mathTeX on your own server, a
mathTeX web service is currently
available. An <img> tag of the form
<img src="http://www.forkosh.dreamhost.com/mathtex.cgi?c=\sqrt{a^2+b^2}"
alt="" border=0 align=middle>
displays
wherever you put that <img> tag
in your own document. Note that the typical
/cgi-bin/mathtex.cgi? has been replaced by
http://www.forkosh.dreamhost.com/mathtex.cgi?
in this <img> tag, using mathTeX on my
server to render your expression for you.
For production use, please install mathTeX on your own server.
Installing mathTeX on your own server sets up a de facto
web service, unless you compile it with the
DREFERER=\"domain\"
switch, restricting requests to that specific domain.
Until mathML
becomes widespread, LaTeX-based web services,
like mathTeX or alternatives,
may be the best math-on-the-web solutions. If you set one up that's
intended for public access, email me its url,
and I'll add it to the following list...
url of service | test |
http://www.forkosh.dreamhost.com/mathtex.cgi |
|
http://www.cyberroadie.org/cgi-bin/mathtex.cgi |
unavailable |
http://www.problem-solving.be/cgi-bin/mathtex.cgi |
|
http://www.openmaths.org/cgi-bin/mathtex.cgi |
|
The "test" column just exercises the link
to its left. Thanks to everyone.
An alternative mathTeX-based public web service you may also want to
consider is Embedding math with replacemath.js,
which allows you to embed math in your html pages without any
<img> tags at all, just by writing LaTeX math markup
between $$...$$ .
Just prepare your html document in the form
<HTML> <HEAD> <TITLE> test page </TITLE> </HEAD>
<BODY>
Put any LaTeX math expression you like between $$
...$$
,
for example $$y=\frac1{1-x^2}$$ renders
</BODY>
<script type="text/javascript"
src="http://mathcache.s3.amazonaws.com/replacemath.js"> </script>
<script type="text/javascript">
replaceMath( document.body ); </script>
</HTML>
That is, near the bottom of your document,
after the </BODY> tag, place exactly the
two <script> tags shown. Then, anywhere in
your document, any LaTeX math expressions surrounded
by $$...$$ will be rendered
for you by their public web service.
(2) LaTeX math markup
MathTeX uses latex to render images,
and you must already be familiar with LaTeX
math markup to use it. If you're not, many online
LaTeX tutorials are readily available.
You may also want to browse Andrew Roberts'
Latex Math I and
Latex Math II, or my own
LaTeX math tutorial.
You can also download and read the
AMS's
Short math guide.
LaTeX markup...
Now, to try out mathTeX, just enter any
expression you like in the Query Box below. I've started
you out with a little example already in the box, or
you can Click any of the Examples below
to place that corresponding expression in the Query Box.
Then press the Submit button, and mathTeX's rendering should be
displayed in the little window immediately below it.
|
Now click Submit to see it rendered below...
|
You should see
if you submit the sample expression
already in the box.
Examples...
Here are various additional random examples further demonstrating
mathTeX's features and usage. To see how they're done, Click any
one of them to place its corresponding expression in the
Query Box above. Then press Submit
to re-render it, or you can edit the expression first to suit
your own purposes.
(1) |
   
   
|
(2) |
|
definition of derivative |
|
(3) |
|
illustrating \left\{...\right.
and note the accents |
(4) |
|
\overbrace{}^{} and \underbrace{}_{}
(TeXbook page 181, Exercise 18.41) |
(5) |
|
\begin{array} |
|
(6) |
|
using \begin{eqnarray*} to align equations |
(3) MathTeX markup extensions
To facilitate its use in html <img> tags,
mathTeX recognizes several special \directives
that modify latex's
behavior.
These \directives
are usually interpreted by mathTeX, and then removed from
your expression before it's submitted to latex for rendering.
For example,
- <img src="/cgi-bin/mathtex.cgi?\png x^2">
renders x^2 as a png image
instead
of the default gif format.
- <img src="/cgi-bin/mathtex.cgi?\usepackage{color}\color{blue}x^2">
renders
in blue. In this case, mathTeX removes the familiar
LaTeX \usepackage directive from your math expression, and
places it in the preamble where it belongs.
You can have as many special mathTeX \directives
in an expression
as you like. They're recognized anywhere at all in an expression,
though these examples show them at the beginning.
To simplify readability, additional examples below are
more tersely illustrated as
"query-string" rather than as
<img src="/cgi-bin/mathtex.cgi?query-string">.
mathTeX directives...
- \displaystyle or
\textstyle or \parstyle
- mathTeX's usual default
wraps the ?query-string expression
"\int_0^1 f(x)dx" as
\[ \int_0^1 f(x)dx \], rendering
it in LaTeX's \displaystyle math mode as
.
But the expression
"\textstyle \int_0^1 f(x)dx" is wrapped
as $ \int_0^1 f(x)dx $,
rendering
instead.
However, if you compiled mathtex.cgi with the
-DTEXTSTYLE option, then
\textstyle is the default, and you can write
\displaystyle in your expressions to override it.
Finally, writing \parstyle
in an expression leaves it completely unwrapped, and rendered
in LaTeX's paragraph mode. When using \parstyle,
write your own \[ \]'s and $ $'s
as needed. For example,
"\parstyle\noindent the answer is $\frac89$"
renders
.
In this case you could just as easily write a LaTeX
\mbox{ } in math mode. But you may find
\parstyle useful for expressions
using LaTeX's eqnarray environment, or for other purposes.
-
\usepackage{packagename}
- When mathTeX sees a \usepackage in your expression,
it's removed from the expression and placed in the preamble.
So, for example,
\usepackage{color} \color{blue} x^2+y^2
renders
in blue. You can have up to nine
\usepackages's in an expression. The preamble of mathTeX's
default wrapper script already
contains \usepackage[latin1]{inputenc}, \usepackage{amsmath}
\usepackage{amsfonts} and \usepackage{amssymb}.
-
\tiny thru \Huge
- mathTeX moves LaTeX's ten standard size directives
outside the math mode wrapper, so that they can have their
intended effect. For example, the expression
"\Large x^2" is wrapped as
\Large \[ x^2 \], rendering
.
LaTeX's \normalsize default
renders
. However, if your expression contains
mathTeX's \parstyle directive, then any
LaTeX size directives are left in place, exactly where
you've written them.
-
\dpi{dots-per-inch}
- mathTeX runs dvipng (or convert) at
default screen resolution
of 120dpi.
The directive \dpi{300} generates a much larger
300dpi image instead. Here are samples of several
dpi's rendered at \scriptsize and \normalsize,
dpi | \scriptsize | \normalsize |
100 |
|
|
120 |
|
|
160 |
|
|
200 |
|
|
-
\gammacorrection{gamma-correction}
- mathTeX runs dvipng with
default gamma=2.5
(or convert with default 0.5).
The directive \gammacorrection{3.5} renders a
darker-than-usual gamma=3.5 image when run with dvipng
(or lighter-than-usual when run with convert).
Note: This gamma correction
confusion arises, I believe, as follows. Consider a grayscale from
x=0 for black to x=1 for white.
Then, the canonical formula to apply
gamma correction
is
, whereby
becomes blacker and
becomes whiter. The convert program
appears to follow this convention, whereas dvipng applies
instead.
Here are some samples (unchanging
grayscale values up and down a column signal the corresponding
program is unavailable)
gamma | dvipng | dvips/convert |
0.25 |
|
|
0.50 |
|
|
1.0 |
|
|
2.0 |
|
|
4.0 |
|
|
-
\gif or \png
- mathTeX's default renders
expressions as gif images.
If you want a png image instead, write the directive
\png in your expression.
However, if you compiled mathtex.cgi with the
DPNG switch,
then png is the default, and you can write
\gif in your expression to obtain
a gif image.
-
\dvips or \dvipng
- mathTeX uses dvipng when it's available,
or dvips and convert otherwise, to render LaTeX's
dvi output as gif or png images. If all three programs
are available on your server, then expressions containing
\dvips are rendered using dvips/convert
instead of dvipng. Or, when dvips/convert is the default
(see \switches below),
expressions containing \dvipng are
rendered using dvipng instead of dvips/convert.
-
\quiet or \noquiet or \nquiet{n}
- If any "! LaTeX Error:" is emitted while
processing your expression, mathTeX's
default replies
<Enter> to the first three errors, and then
replies "x", halting LaTeX before it produces a .dvi file.
But if your expression contains \quiet,
then mathTeX replies "q" to the first error,
making LaTeX enter batchmode,
whereas if your expression contains \noquiet,
then mathTeX replies "x" to the first error,
halting LaTeX immediately.
If your expression contains \nquiet{n},
then mathTeX replies <Enter> to the first n errors,
and then replies "x".
-
\cache or \nocache
- By default, mathTeX saves each new image
in its cache directory,
rather than re-rendering the same image every time
the same expression is submitted. But expressions
containing \nocache are not cached.
Expressions containing \today and/or
\time are automatically
not cached. Otherwise, include \nocache in your
expression if it contains volatile information that might
affect its appearance between renderings.
(The \cache directive forces the image of that
expression to be cached, but is usually unnecessary
since caching is the default.)
-
\msglevel{verbosity}
- To help debug problems that matheTeX's
error messages
don't resolve, resubmit the same failed expression
with \msglevel{9} added.
After it fails again,
login to a shell on your server, and
cd cgi-bin/mathtex/ to
mathTeX's cache directory. Then
ls -alt|less to see the most recent
files. These should include
yourexpression.out
(and yourexpression.gif if an image was created),
where filename yourexpression is the 32-character
MD5 hash of your failed expression.
Now cd ..
back up to your cgi-bin/ directory, and you should see a new
directory cgi-bin/yourexpression/
created by mathTeX. cd to it, and follow
the command-line error
instructions below. When done, you should probably
rm -r cgi-bin/yourexpression/
which is no longer needed (ditto the .out and .gif files
in mathTeX's cache if you want to clean up completely).
-
\which{programname}
- mathTeX must be compiled with several
Dswitches
that specify paths to its dependencies.
If you can't determine these required paths, mathTeX's
\which{programname}
may provide some help (also see
\switches below).
For example,
directive | renders |
\which{latex} |
|
\which{dvipng} |
|
\which{dvips} |
|
\which{convert} |
|
displays known paths to mathTeX's dependencies, as they're
installed on this server.
However, there's a small "Catch-22" (circular logic that
may bite you): mathTeX must already know these paths
before it runs the programs that display them.
You may be able to temporarily circumvent this
problem by compiling
cc mathtex.c o mathtex.cgi
without any required switches at all. When compiled like this,
mathTeX uses which to determine the
required paths. If they're found, then mathTeX will run
and display them;
if not, you'll likely see message 7
or message 9 instead. If mathTeX does run, and displays
the required paths, you should immediately re-compile it with
the required Dswitches.
Execution time can be doubled, or even worse, when mathTeX
has to find these paths itself.
When \which{programname}
can't find the path, mathTeX displays
instead.
But mathTeX may also display
,
signalling that Unix which failed. In this case, mathTeX
searches your server's locate database, if it exists,
and displays that path instead. The "not found" message
signals which and locate both failed.
-
\switches
- Submitting the expression \switches
to mathTeX renders
,
displaying several (more will be added) of mathTeX's
compile-line switches.
"Program image" isn't really a switch: it's the filename
of the running program, usually mathtex.cgi
unless you compiled it differently.
"Paths" displays what mathTeX knows
about the full paths to its
dependencies. On the
right-hand side of each path is the source of that information.
There are four possible sources, listed in order of reliablility
(most reliable first):
- (switch) means you compiled mathTeX with a
Dswitch for that path.
You should always compile mathTeX with its
dependencies:
DLATEX, and either DDVIPNG or both
DDVIPS and DCONVERT.
When that's not possible, read
\which{ } above
and temporarily compile mathTeX without them.
- (which) means the corresponding
Dswitch was not
supplied, but Unix which found the program. If that's
latex or another of your
dependencies, then re-compile
mathTeX with a Dswitch containing the displayed
information.
- (locate) means Unix which failed,
but your server's locate database found the path.
Again, re-compile mathTeX if that's one of your
dependencies.
- (default) means no path information
was found. A default path programmed into mathTeX is
displayed instead. This default is frequently wrong.
In fact, (default) typically means that the
corresponding program isn't installed on your server at all.
In that case, if the program is one of your
dependencies, you'll likely
see message 7 or
message 9 instead of the
\switches output illustrated above.
Either dvipng or dvips and convert
can render LaTeX's dvi output as gif or png images.
MathTeX's default choice is based on the reliablity of path
information to these programs: (switch)
is most reliable, followed by (which) or (locate),
rated equally, and finally (default) is least realiable.
If a (switch) path to dvipng is available (i.e., if you compiled
mathTeX with a DDVIPNG switch), then dvipng is default.
Otherwise, if (switch) paths to both dvips and convert are
available, then they're default. Otherwise, (which) or (locate)
paths are preferred to (default), and dvipng wins a "tie".
-
\time
- LaTeX's \today is usually sufficient for the
slow-paced world of print. But you may want finer-grained
resolution for the faster-paced online world. mathTeX provides
\time for this purpose, replacing it with
the current hh:mm:ss wherever it occurs. The
date/timestamp
at the top of this document is rendered by mathTeX with an
expression like
"\parstyle\begin{center}\today\\\time\end{center}".
You can see the exact expression by clicking on
that image.
I'm not reproducing it here because mathTeX doesn't
cache images containing \today or \time.
So use \time sparingly because
every occurrence is re-rendered through LaTeX.
-
\advertisement
- An expression containing \advertisement
is displayed along with your
mathTeX advertisement
rather than by itself, regardless of
-DADFREQUENCY. For example,
c=\sqrt{a^2+b^2} |
|
\advertisement c=\sqrt{a^2+b^2}
|
| |
|
See Advertisement
to replace the default advertisement, illustrated above,
with your own.
-
\version
- An expression containing \version
is displayed along with mathTeX's current version number.
For example,
\version c=\sqrt{a^2+b^2}
|
|
-
\environment
- Submitting the expression \environment
to mathTeX renders
displaying the http environment variables known to mathTeX.
This is primarily a programming aid, showing information
available to mathTeX that might facilitate future enhancements.
(4) Installation and Testing
Note: The current release of mathTeX only runs
on Unix-like operating systems.
Very quickly ---
First, install mathTeX's
dependencies: |
|
a recent TeX distribution
with dvipng,
on your server, or see
mimeTeX if you can't. |
Then, download
mathtex.zip
and type |
|
unzip mathtex.zip
cc mathtex.c DLATEX=\"$(which latex)\" \
DDVIPNG=\"$(which dvipng)\" \
o mathtex.cgi
(see
Dswitches
below for more information). |
Finally, |
|
mv mathtex.cgi to your
cgi-bin/ directory,
chmod permissions as necessary,
and you're all done. |
Read the rest of this section only if you want
more information.
|
mathTeX's source code is standard Unix C,
which should compile and run without change on
any posix-compliant Unix platform.
The current release of mathTeX only
runs under Unix-like operating systems.
The three steps needed to compile, install and test
mathTeX are:
(1) Install LaTeX
and download mathTeX...
- First, make sure you have a recent
TeX distribution
with dvipng
installed on your server.
MathTeX's dependencies are the
latex and
dvipng
programs, along with all necessary fonts, etc, from your
TeX distribution.
If you prefer to compile mathTeX with the optional
DDVIPS and DCONVERT
switches (Step 2 immediately below),
then dvips
from your TeX distribution, and
convert from the
ImageMagick
package, are used instead of dvipng.
These dependencies
always latex and either dvipng or dvips/convert
must all be installed on your server
before you can run mathTeX. Ask your ISP or sysadmin
if you have any questions or problems installing them.
Or see mimeTeX if you can't install them.
- Then download and unzip
mathtex.zip in any convenient working directory.
Your working directory should now contain
README | mathTeX release notes |
COPYING | GPL license, version 3, under which
you may use mathTeX |
mathtex.c | mathTeX source program and all
required functions |
mathtex.html | this file, the mathTeX user
manual |
(2) Compile mathTeX and test it
from the Unix shell...
(3) Install mathTeX and test it from a browser...
- Install your compiled mathtex.cgi executable only after
successfully testing it from the Unix shell. Just
mv mathtex.cgi to your web server's
cgi-bin/ directory,
chmod permissions as necessary,
and you're all done.
cgi-bin/mathtex.cgi must be executable by your web server,
and it must have rw permissions in the cgi-bin/
directory where it's installed. The first time it runs,
mathtex.cgi will mkdir mathtex/, where rendered
images are subsequently cached. Permissions and ownerships
must be set to allow this.
chmod 755 typically works,
but ask your ISP or sysadmin if you have
any questions or problems.
- Immediately after installation, type a url into your browser's
locator window something like
http://www.yourdomain.com/cgi-bin/mathtex.cgi?\message
which should display message 1
in the upper-left corner of your window. If, instead, you see
Not Found or
Error 500 emitted by your server,
then mathTeX isn't running. Check that you installed
it in the correct directory, set its permissions properly, etc.
- The preceding test just checked that mathtex.cgi runs from
your server. This current test checks that your DLATEX, etc,
paths are correct, and that mathtex.cgi has rw permissions in your
cgi-bin/ directory. Type a url into your browser's locator
window something like
http://www.yourdomain.com/cgi-bin/mathtex.cgi?x^2+y^2
which should display
in the upper-left corner of your window,
just like clicking this link does, which tests my mathtex.cgi,
http://www.forkosh.com/cgi-bin/mathtex.cgi?x^2+y^2
If you see the same image from your own
yourdomain link, then you've completed
a successful mathTeX installation.
Otherwise, you'll probably see one of mathTeX's
error messages illustrated below.
Read the accompanying description, and try to resolve the
problem accordingly.
Run-time error messages...
Gif images for 15 messages are embedded in mathTeX,
displayable so long as mathtex.cgi can run from your server,
even without latex and without rw permissions
in your cgi-bin/ directory. In addition, your server may display
the first two messages below if mathtex.cgi can't run.
Any embedded mathTeX message can be intentionally displayed
by submitting an expression containing the
special mathTeX directive \message{1} through
\message{15} (an out-of-bounds argument, or
\message with no argument, displays message 1).
Otherwise, various errors signal "unintentional" displays of
the corresponding message, e.g., if your DLATEX switch
specifies the wrong path to latex, then you'll see
message 7 (unless some earlier
error supercedes it).
Message |
Description |
|
The requested URL was not found. |
You typed the wrong url, or mathtex.cgi is not
installed where you think it is.
|
|
Internal server error 500 |
If mathtex.cgi's permissions are chmod'ed improperly,
if your account isn't set up to run cgi's, etc,
then mathTeX will not run at all.
You'll probably see this error message emitted by your
server instead.
|
|
|
Immediately after installing mathtex.cgi
to your cgi-bin/ directory, type a url of the form
yourdomain.com/cgi-bin/mathtex.cgi?\message
into your browser. You should see this message.
It means mathtex.cgi ran successfully,
its permissions are set properly, and the account hosting
yourdomain can run cgi's.
|
|
|
Traps any otherwise unidentified error condition.
|
|
|
The combination of permissions/ownerships on mathtex.cgi itself,
and on the cgi-bin/ directory where it's installed, prohibit mathTeX
from creating its cache directory mathtex/ underneath
cgi-bin/. Change permissions/ownerships as needed.
|
|
|
Same problem
as message 3 above,
except this time mathTeX can't create a temporary
work directory under cgi-bin/.
|
|
|
Unanticipated error. MathTeX should be able to
cd to a directory it just created.
|
|
|
Unanticipated error. MathTeX should be able to
open a file (for write) in a directory it just created.
|
|
|
Either latex is not installed,
or your DLATEX path to it is incorrect.
It's also possible that the shell host on which you compiled
mathTeX has different volumes or mount points than your server
(see path switches).
Check with your ISP or sysadmin, or try mathTeX's
\which directive.
|
|
|
A simple latex error, like \alfa instead of \alpha,
should not cause this problem (unless your expression
contains \noquiet).
It's more likely caused by a missing font or package,
etc. Simplify your expression until it works, and see
if that helps identify the cause. Or add
\msglevel{9}
to your expression, and check files latex.out and latex.err
for error messages.
|
|
|
Either dvipng is not installed,
or your DDVIPNG path to it is incorrect.
Also see the remark in message 7.
|
|
|
Rerun the same expression with
\msglevel{9}
added. Then check files latex.out and latex.err,
and dvipng.out and dvipng.err for any clues to
the cause of this error.
|
|
|
Either dvips is not installed,
or your DDVIPS path to it is incorrect.
Also see the remark in message 7.
|
|
|
Rerun the same expression with
\msglevel{9}
added. Then check files latex.out and latex.err,
and dvips.out and dvips.err for any clues to
the cause of this error.
|
|
|
Either convert is not installed,
or your DCONVERT path to it is incorrect.
Also see the remark in message 7.
|
|
|
Rerun the same expression with
\msglevel{9}
added. Then check files latex.out and latex.err,
dvips.out and dvips.err, and convert.out and
convert.err for any clues to the cause of this error.
|
|
|
An image file was apparently created successfully,
but is now inaccessible to mathTeX. Rerun the same
expression. If it fails again, rerun it with
\msglevel{9}
added. Then check all .out and .err files
for any clues to the cause of this error.
|
Compile-line switches...
-
Required switches...
-
MathTeX's required D switches
specify paths to the programs it needs to render
LaTeX expressions as images. Your Unix PATH environment
variable usually contains the directories where these programs
reside. And in that case, the Unix shell command
which progname emits the
string /path/to/progname.
Then you can manually copy which's
output to the switch, e.g., if which latex
emits /usr/bin/latex
then just write the switch
DLATEX=\"/usr/bin/latex\"
Alternatively, you can use the Unix shell's
$( ) construction to automatically
pipe which's output into the switch, e.g.,
DLATEX=\"$(which latex)\"
automatically places that same path to latex between the
literal \" \" quotes.
If which doesn't work, you must nevertheless
make sure that latex and mathTeX's other
dependencies are all installed
on your server. Then determine the proper paths to them
yourself (ask your ISP or sysadmin, or try mathTeX's
\which directive),
and manually write mathTeX's required D
switches as described above.
Occasionally, which may seem
to work, but actually doesn't, because your shell account
and internet server are hosted on different machines,
with different volumes mounted and/or different mount
points. When this happens, server volumes are
nfs-mounted by your shell machine, so you can work
on your internet files. Conversely, shell volumes aren't
necessarily mounted by the server, so latex could be
visible from your shell but not from the server.
Check with your ISP or sysadmin about network topology
if you suspect something like this, or mathTeX's
\which directive
may help. In any case,
mathTeX's dependencies,
latex and either dvipng or dvips/convert, must be
available to your server, and you must compile
mathtex.cgi with their paths on your server.
- DLATEX=\"/path/to/latex\"
DDVIPNG=\"/path/to/dvipng\"
- mathTeX always requires the DLATEX switch,
and its recommended default (using
dvipng to render
latex's dvi output as gif or png images)
also requires the DDVIPNG switch.
So your standard cc command to compile mathTeX looks like
cc mathtex.c \
DLATEX=\"$(which latex)\" \
DDVIPNG=\"$(which dvipng)\" \
o mathtex.cgi
-
DDVIPS=\"/path/to/dvips\"
DCONVERT=\"/path/to/convert\"
- If you can't (or don't want to) use dvipng,
then compile mathTeX with the DDVIPS and
DCONVERT switches (instead of DDVIPNG).
Then
dvips
from your TeX distribution, and
convert from the
ImageMagick
package, are used (instead of dvipng) to render latex's dvi output
as gif or png images.
In this case, your cc command to compile mathTeX looks like
cc mathtex.c \
DLATEX=\"$(which latex)\" \
DDVIPS=\"$(which dvips)\" \
DCONVERT=\"$(which convert)\" \
o mathtex.cgi
Finally, if all three programs (dvipng and dvips and convert)
are installed on your server, you can compile mathTeX with all
the D switches. This defaults to dvipng,
but permits users to submit expressions containing the special
\dvips and
\dvipng directives, regardless of
mathTeX's default. So a comprehensive cc command looks
like
cc mathtex.c \
DLATEX=\"$(which latex)\" \
DDVIPNG=\"$(which dvipng)\" \
DDVIPS=\"$(which dvips)\" \
DCONVERT=\"$(which convert)\" \
o mathtex.cgi
along with any other optional switches you choose
from those described below,
-
Optional switches...
-
In addition to the DLATEX and DDVIPNG
switches required on the mathTeX's compile line, as discussed above,
you may also include the following optional D switches,
whose functionality is discussed below. Whenever a switch takes
a value, its default value
is illustrated. An
italicized value
means there is no default.
- DCACHE=\"mathtex/\"
- By default, mathTeX saves each new image it renders
to a file in directory mathtex/ (relative
to the cgi-bin/ directory where you installed mathtex.cgi).
Then, every time it's given the same expression, mathTeX
reads that file rather than re-rendering the same image.
You can specify any other cache directory with the
DCACHE=\"path/\" switch.
Either way, mathTeX's cache directory must be read/writable by
it, so set permissions (typically chmod 755) as necessary.
mathTeX occasionally disables caching,
e.g., expressions containing \today are
always re-rendered since the date may have changed.
Otherwise, caching is mandatory and cannot be disabled.
Cached image files are named
filename.gif or filename.png,
where filename is the 32-character MD5 hash of the
LaTeX expression. When caching a new image, mathTeX also
updates the file path/mathtex.log containing
a timestamp, filename, LaTeX expression, and http referer
for each new file created. A sample entry looks like
---------------------------------------------------------------------
2007-10-11:09:00:53am f8ccc8dd93c8eeb1d9c40b353ef781e0.gif
\LARGE x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
http://www.forkosh.com/mathtex.html
---------------------------------------------------------------------
- DGIF
or DPNG
- mathTeX generates gif or png images. Users can specify
which format they want by including a
\gif or \png
mathTeX directive in submitted
expressions. Otherwise, mathTeX's default is specified at
compile time by a DGIF or
DPNG switch. If a submitted expression
contains neither directive, and if mathTeX was compiled with
neither switch, then gif is the default.
- DDISPLAYSTYLE
or DTEXTSTYLE
or DPARSTYLE
- mathTeX's default wraps user expressions inside
\[ \], rendering
generated images in LaTeX's \displaystyle math mode.
The DTEXTSTYLE switch wraps expressions
inside $ $, rendering
generated images in LaTeX's \textstyle math mode.
And the DPARSTYLE switch
leaves expressions unwrapped, rendering
generated images in LaTeX's default paragraph mode.
Users can override any compiled default with a mathTeX
style directive.
- DFONTSIZE=5
- You can specify DFONTSIZE=1
thru DFONTSIZE=10 on mathTeX's
compile line, corresponding to default LaTeX font sizes
\tiny thru \Huge. If no switch is supplied,
the default 5 corresponds to \normalsize.
Users can override any compiled default with a mathTeX
\tiny...\Huge directive.
- DDPI=\"120\"
- The DPI switch changes mathTeX's
default screen resolution
of \"120\" dots-per-inch, which you enter as a string.
Some samples
are illustrated above.
- DGAMMA=\"2.5\"
- The DGAMMA switch changes mathTeX's
default gamma correction
of \"2.5\" (for dvipng), which you enter
as a string. Some samples
are illustrated above.
-
DQUIET or
DNOQUIET or
DNQUIET=n
- If any "! LaTeX Error:" is emitted while
processing your expression, mathTeX's default replies
<Enter> to the first three errors, and then
replies "x", halting LaTeX before it produces a .dvi file.
Compiling mathTeX with DQUIET
replies "q" to the first error, making LaTeX enter batchmode,
whereas compiling with DNOQUIET
replies "x" to the first error, halting LaTeX immediately.
Compiling mathTeX with DNQUIET=n
replies <Enter> to the first n errors, and then
replies "x".
User expressions may contain
\quiet, \noquiet or \nquiet{n}
to override any compiled default.
-
DREFERER=\"domain\" or
DREFERER=\"domain1,domain2,etc\"
- If you compile mathTeX without a
DREFERER=\" \" switch, then anyone on
the internet can use your mathtex.cgi program by writing a url
of the form
http://www.yourdomain.com/cgi-bin/mathtex.cgi?x^2+y^2.
So you're essentially providing mathTeX as a free
web service. I encourage this if
you have the compute and disk resources to spare.
Otherwise, if compiled with
DREFERER=\"domain\", then mathTeX
performs a case-insensitive search of the environment variable
HTTP_REFERER to verify that it contains the authorized
domain as a substring.
Or, if given a comma-separated list
containing several domain's