Up: The WebEQ Math Viewer Applet

WebEQ Math Viewer Applet Parameters

WebEQ Math Viewer applet parameters are specified by including lines of the form

<param name="..." value="...">
between the <applet...> and </applet> tags. For further details about WebEQ applet tags, consult the Anatomy of a Math Viewer Applet Tag.

The applet parameters that the Math Viewer applet recognizes are:

name=eq
This parameter's value gives the markup for the equation to be displayed, using either WebTeX or MathML.

name=src
Used to specify the URL (relative to the directory containing the HTML document) of a file containing the equation. Only one of eq and src should be present. If both are present, src is ignored.

name=macros
Used to specify applet-specific macro definitions; these apply only to the equation specified for the current applet call. See the section on macros in the WebTeX documentation for how to write macros.

name=macrofile
A URL pointing to a file containing external macro definitions. The URL is relative to the directory containing the HTML document in which the applet tags appear. When macros and macrofile parameters are both present, their macro definitions are combined before processing the equation markup.

name=parser
Specifies the input language for the equation source. The only pre-defined values are "webtex", which is the default, or "mathml". Capitalization is ignored.

name=size
An integer, like 12, 14, 18, 24, etc, specifying the pointsize. The default is 18. You can specify any integer value; it will be rounded off to the nearest available font size.

name=color
Specifies the background color for the equation. The format for the color specification is #RRGGBB, where RR, GG, and BB are hexadecimal numbers giving the red, green, and blue components of the color.

name=controls
Should be either "true" or "false". Specifies whether the user will have control over the font size. By default, users reading a WebEQ document can bring up a font size control panel by clicking the right mouse button on an equation. If the controls parameter is set to "false", this feature is turned off; right-clicking then has no effect.

In general, if you do not wish the value of the size to be overridden, or if you want to control the pointsize with JavaScript or other external software, you will need to disable the user's ability to change it interactively.

name=allow_cut
Should be "true" or "false". Specifies whether the reader will be able to select a subexpression by holding down the left mouse button and sweeping out a region. It also controls whether holding down the control key and left clicking pastes the MathML markup for the selected subexpression into a pop-up window. The default is "false".

Allowing cut-and-paste can degrade performance, and is only recommended when there is a cogent reason for it.

name=linebreak
Should be "true" or "false". Specifies whether the Math Viewer should linebreak and wrap expressions which are wider than the applet window. The default is false. Linebreaking is primarily of use when WebEQ is being used to display the output of a JavaScript program or another applet, and the size of the output is not known in advance. In these situations, you need to make sure the applet window is tall enough vertically, so that wrapped lines will be visible.

name=id and name=FiresScriptEvent
These parameters are available to all applets, and are not exclusive to WebEQ. They are used internally by WebEQ when used as an IE5 behavior to coordinate with the browser during size negotiation.


[HOME] WebEQ 2.5 Documentation Table of Contents

Created: Aug 08 1997 --- Last modified: Sun Mar 05 18:36:04 2000
Copyright © 1997-2000 Design Science, Inc. All rights reserved.