Math mark up in the HTML source file can be delimited in one of two ways. Equations can be surrounded by <MATH> </MATH> tags, or with the standard LaTeX delimiters $ $, and \[ \]. If the LaTeX display equation delimiters \[ and \] are used, the resulting applet tag will be set off with <P> tags, and will be centered.
If <MATH> </MATH> delimiters are used with WebEQ native markup, attributes can be included in the begin tag, e.g.
<MATH MODE=DISPLAY> ... </MATH>
When used with WebTeX, begin tag attributes are discarded.
The Sizer attempts to compute applet dimensions that yield visually acceptable results on all Java systems. However, there are still some system font dependencies in Java, and as a result, the Sizer will usually write out applet dimensions that are a few pixels too large, though occasionally, an equation may be clipped as well. Applet dimensions are worst using Netscape under Windows.
To facilitate the use of macros throughout a document, the sizer also allows authors to include a macro definition block in the header of the HTML source document as follows:
<HTML>
<HEAD>
<TITLE>An Example</TITLE>
<!-- webeq
\define{\gump}{x^2}
.
.
.
-->
</HEAD>
<BODY>
This is a test $\gump = 9$.
</BODY>
</HTML>
java geom.webeq.sizer.Sizer [options] inputfile
Options include: -size number
-xscale number
-yscale number
-leading number
-expand true | false
-bg #rrggbb
-parser latex | html
-delims latex | html
-codebase URL
-code name
-archive name
-cabbase name
-fontbase URL
-macro filename
-lfontbase URL (for sizing)
-lmacro filename (for sizing)
-eq input
-o outputfile
When an equation is specified with the -eq option, the
inputfile is ignored, and the Sizer returns the dimension of just that
one equation.
-size pointsize
-xscale number or -yscale number
-leading number
-expand true | false -macro option, or the
inclusion of a macro block in the document header. In order to speed
up execution time for readers, the sizer can expand macros and write
out the result in the applet tags, eliminating the macro processing
time for readers. To do this, set the -expand option to
true.
-bg #rrggbb
-parser type
-delims type
-codebase URL
-code name
-archive name
-cabbase name
-fontbase URL
-macro filename
-lfontbase URL
-lmacro filename
-eq input
-o outputfile
java geom.webeq.sizer.Sizer welcome.src > welcome.htmlA more typical example, setting some applet parameters is:
java geom.webeq.sizer.Sizer -codebase classes -parser latex
-delims latex -bg #ffffff -o welcome.html welcome.src
In this example, the processing is being done in a different
directory so we must set the local fontbase and local macro file,
as well as specifying the classpath for the WebEQ files:
setenv CLASSPATH $CLASSPATH:/u/htmldocs/classes
java geom.webeq.sizer.Sizer -codebase classes -parser latex
-delims latex -lfontbase /u/htmldocs/classes/fonts/
-lmacro /u/htmldocs/my_macros -o welcome.html welcome.src