[HOME] jsMath (Authors) [Prev][Up][Skip][Next]

The verb Extension

This extension implements the \verb command, which allows you to produce verbatim text in your equations. That is, it does not interpret the TeX characters within the text you specify. The first (non-space) character after the \verb command is taken as the delimiter for the verbatim text, and and everything up to the next instance of that character is displayed verbatim as part of the mathematics.

For example, x+\verb|\sqrt{2}| would display \(\require{verb}x+\verb|\sqrt{2}|\).

To activate the verb extension, include the command

    <SCRIPT>
      jsMath.Extension.Require("verb");
    </SCRIPT>
in your HTML file after loading jsMath, or if you are using the easy/load.js file, add "extensions/verb.js" to the loadFiles array:
    loadFiles: ["extensions/verb.js"],

Alternatively, you can use

    <SPAN CLASS="math">
      \require{verb}
    </SPAN>
to activate the extension from within the typeset mathematics itself.

Finally, if you are using the autoload plugin, you can set the jsMath.Autoload.loadFiles array to include "extensions/verb.js" in order to have the extension loaded automatically when jsMath is needed.


SourceForge.net Logo [HOME] jsMath web pages
Created: 20 Mar 2006
Last modified: 26 Mar 2008 11:57:15
Comments to: dpvc@union.edu
[Next] Changing or removing the font warnings
[Skip] Browser Support for jsMath
[Up] Information for jsMath Authors
[Prev] The moreArrows Extension