Copyright © 2007-2009,
John Forkosh Associates, Inc.
email: john@forkosh.com
Mathtex is discussed at
http://www.forkosh.com/mathtex.html.
And you can download its source from
http://www.forkosh.com/mathtex.zip.
Following are some recent changes that may or may not be discussed
there yet.
- 15 Aug 2009 -- mathTeX version 1.03 released.
Note: the three bullet items immediately below, leading up to
version 1.03, were prompted by the discussion in this comp.text.tex thread, mostly following
the suggestions of Scott Pakin (thanks, Scott).
- 14 Aug 2009 -- Compile switch
DKILLTIME=n (and, optionally,
DTIMELIMIT=\"/path/to/timelimit\"
to use a standalone copy of timelimit
you've installed separately, instead of mathTeX's new built-in
function timelimit( ) adapted from that program)
added to mathTeX so that it can prevent LaTeX from hanging in a loop,
which can occasionally be induced by bad expressions. See complete
documentation at
mathtex.html#killtimeswitch
and at mathtex.html#timelimitswitch.
- 13 Aug 2009 -- Modified the usage of mathTeX's
DQUIET and DNOQUIET
compile switches, and its special \quiet and
\noquiet directives, to offer better user control
over LaTeX error handling.
Also added the DNQUIET=n
switch, and \nquiet{n}
directive, for the same reason. This should help reduce the
frequency of "latex-stuck-in-loop" problems mentioned above,
with timelimit( ) handling the remaining occasional problems.
See complete documentation at
mathtex.html#quietswitch
and at mathtex.html#quietdirective.
- 12 Aug 2009 -- Modified functions validate( ) and
getdirective( ) to more robustly handle the identification
and removal of invalid \commands and their arguments from
submitted expressions. And modified the document template in
function mathtex( ), removing its \renewcommand's
that used to guard against invalid \commands. Some of these
\renewcommand's had occasionally caused problems for otherwise
valid expressions submitted by users.
- 30 Apr 2009 -- Argument to \which{ } directive validated
to detect exploit attempts.
- 06 Mar 2009 -- mathTeX version 1.02 released.
- 05 Mar 2009 -- \environment directive added as a programming
aid to facilitate future enhancements, displaying all http
environment variables passed to mathTeX.
- 18 Feb 2008 -- mathTeX version 1.01 released.
- 16 Feb 2008 --
DDENYREFERER=\"string\"
or
DDENYREFERER=\"string1,string2,etc\"
compile switch added. If compiled with it,
mathTeX won't render images for HTTP_REFERER's containing string
(or string1 or string2, etc)
as a substring of their url's.
- 16 Feb 2008 -- more robust test to display the correct
error message when a required dependency isn't installed.
(Occasionally, the "ran but failed" message was
emitted when a dependency was actually "not installed".)
- 20 Oct 2007 -- removed leading and trailing pairs of $$...$$'s
from input expressions, interpreting $...$ as \textstyle and
$$...$$ as \displaystyle (and $$$...$$$ as \parstyle).
Also removed leading and trailing \[...\], interpreting it
as \displaystyle. (Note: \displaystyle is mathTeX's default,
so $$...$$'s or \[...\] are unnecessary. But some people submit
expressions containing them, so they're now interpreted.)
- 12 Oct 2007 -- url "unescape" translation, i.e.,
%20-to-blank, etc, repeated (done twice) for
<form> input. (I'm not sure why this is necessary,
and can't reproduce the problem myself, but am acting
on seemingly reliable reports.)
- 12 Oct 2007 -- special mathTeX directives like \time
are now checked for proper command termination, i.e., non-alpha
character. (In particular, LaTeX \times had been
incorrectly interpreted as mathTeX \time
followed by an s.)
- 12 Oct 2007 -- html &#nnn; now translated during
preprocessing,
e.g., [ or [
becomes [ (left square bracket) before it's
submitted to latex.
- 11 Oct 2007 -- optional \usepackage[arg]{package} argument
now recognized correctly (initial release neglected to
handle optional [arg] following \usepackage).
- 11 Oct 2007 -- mathTeX version 1.00 released.