/*
 *	cmds.c
 */

#include <stdio.h>
#ifdef __STDC__
#  include <string.h>
#else
#  include <strings.h>
#endif
#include "cmds.h"

/*
 * List of known (La)TeX commands
 * (see cmds.h for structuring)
 */

Latex_Command Command_Table[] = {
#ifndef ONLY_LATEX
        { NULL, "badness",		'\0' }, /* added for TeX 3.0 */
        { NULL, "emergencystretch",	'\0' },
        { NULL, "errorcontextlines",	'\0' },
	{ NULL, "holdinginserts",	'\0' },
	{ NULL, "inputlineno",		'\0' },
	{ NULL, "language",		'\0' },
	{ NULL, "lefthyphenmin",	'\0' },
	{ NULL, "righthyphenmin",	'\0' },
	{ NULL, "noboundary",		'\0' },
	{ NULL, "setlanguage",		'\0' },

	{ NULL, "dospecials",	'\0' },	/* ! (not for beginner) */
	{ NULL, "do",		'\0' },	/* ! */

	{ NULL, "looseness",		'\0' },

	{ NULL, "time",		'\0' },
        { NULL, "day",		'\0' },
        { NULL, "month",	'\0' },
        { NULL, "year",		'\0' },
        { NULL, "null",		'\0' },
        { NULL, "slash",	'\0' },
        { NULL, "rlap",		'\0' },
        { NULL, "llap",		'\0' },

	{ NULL, "message",	'\0' },
	{ NULL, "count",	'\0' },
	{ NULL, "box",	'\0' },
	{ NULL, "csname",	'\0' },
	{ NULL, "endcsname",	'\0' },
	{ NULL, "global",	'\0' },
	{ NULL, "uppercase",	'\0' },
	{ NULL, "vsize",	'\0' },
	{ NULL, "hsize",	'\0' },
	{ NULL, "",	'\0' },
#endif

	{ NULL, "\t",	'\0' },	/* (br) added for \^^I */
	{ NULL, "\n",	'\0' },	/* (br) added for \^^M */
        { NULL, " ",	'\0' },
        { NULL, "!",	'1' },
        { NULL, "\"",	'\0' },
        { NULL, "#",	'\0' },
        { NULL, "$",	'\0' },
        { NULL, "%",	'\0' },
        { NULL, "&",	'\0' },
        { NULL, "'",	'\0' },
        { NULL, "(",	'\0' },
        { NULL, ")",	'\0' },
        { NULL, "+",	'\0' },
        { NULL, ",",	'\0' },
        { NULL, "-",	'\0' },
        { NULL, ".",	'\0' },
        { NULL, "/",	'\0' },
        { NULL, ":",	'1' },
        { NULL, ";",	'1' },
        { NULL, "<",	'\0' },
        { NULL, "=",	'\0' },
        { NULL, ">",	'\0' },
        { NULL, "@",	'\0' },
        { NULL, "AA",	'\0' },
        { NULL, "AE",	'\0' },
        { NULL, "Alph",	'\0' },
        { NULL, "Box",	'1' },
        { NULL, "Delta",	'1' },
        { NULL, "Diamond",	'1' },
        { NULL, "Downarrow",	'1' },
        { NULL, "Gamma",	'1' },
        { NULL, "H",	'\0' },
        { NULL, "Huge",	'\0' },
        { NULL, "Im",	'1' },
        { NULL, "Join",	'1' },
        { NULL, "LARGE",	'\0' },
        { NULL, "LaTeX",	'\0' },
        { NULL, "Lambda",	'1' },
        { NULL, "Large",	'\0' },
        { NULL, "Leftarrow",	'1' },
        { NULL, "Leftrightarrow",	'1' },
        { NULL, "Longleftarrow",	'1' },
        { NULL, "Longleftrightarrow",	'1' },
        { NULL, "Longrightarrow",	'1' },
        { NULL, "O",		'\0' },
        { NULL, "OE",		'\0' },
        { NULL, "Omega",	'1' },
        { NULL, "P",		'\0' },
        { NULL, "Phi",		'1' },
        { NULL, "Pi",		'1' },
        { NULL, "Pr",		'1' },
        { NULL, "Psi",		'1' },
        { NULL, "Re",		'1' },
        { NULL, "Rightarrow",	'1' },
        { NULL, "Roman",	'\0' },
        { NULL, "S",		'\0' },
        { NULL, "Sigma",	'1' },
        { NULL, "TeX",		'\0' },
        { NULL, "Theta",	'1' },
        { NULL, "Uparrow",	'1' },
        { NULL, "Updownarrow",	'1' },
        { NULL, "Upsilon",	'1' },
        { NULL, "Xi",		'1' },
        { NULL, "[",		'\0' },
        { NULL, "\\",		'\0' },
        { NULL, "]",		'\0' },
        { NULL, "^",		'\0' },
        { NULL, "_",		'\0' },	/* (br) LaTeX \_ allows in non-math mode */
        { NULL, "`",		'\0' },
        { NULL, "a",		'\0' },
        { NULL, "aa",		'\0' },
        { NULL, "abovedisplayshortskip",	'\0' },
        { NULL, "abovedisplayskip",	'\0' },
        { NULL, "acute",		'1' },
        { NULL, "addcontentsline",	'\0' },
        { NULL, "address",		'\0' },
        { NULL, "addtocontents",	'\0' },
        { NULL, "addtocounter",		'\0' },
        { NULL, "addtolength",		'\0' },
        { NULL, "addvspace",		'\0' },
        { NULL, "advancepageno",	'\0' },
        { NULL, "ae",		'\0' },
        { NULL, "aleph",	'1' },
        { NULL, "alph",		'\0' },
        { NULL, "alpha",	'1' },
        { NULL, "amalg",	'1' },
        { NULL, "and",		'\0' },
        { NULL, "angle",	'1' },
        { NULL, "appendix",	'\0' },
        { NULL, "approx",	'1' },
        { NULL, "arabic",	'\0' },
        { NULL, "arccos",	'1' },
        { NULL, "arcsin",	'1' },
        { NULL, "arctan",	'1' },
        { NULL, "arg",		'1' },
        { NULL, "arraycolsep",	'\0' },
        { NULL, "arrayrulewidth",	'\0' },
        { NULL, "arraystretch",	'\0' },
        { NULL, "ast",		'1' },
        { NULL, "asymp",	'1' },
        { NULL, "author",	'\0' },
        { NULL, "b",		'\0' },
        { NULL, "backslash",	'1' },
        { NULL, "bar",		'1' },
        { NULL, "baselineskip",	'\0' },
        { NULL, "baselinestretch",	'\0' },
        { NULL, "batchmode",		'\0' },
        { NULL, "begin",		'\0' },
        { NULL, "beginsection",		'\0' },
        { NULL, "belowdisplayshortskip",	'\0' },
        { NULL, "belowdisplayskip",	'\0' },
        { NULL, "beta",		'1' },
        { NULL, "bf",		'\0' },
        { NULL, "bibindent",	'\0' },
        { NULL, "bibitem",	'\0' },
        { NULL, "bibliography",	'\0' },
        { NULL, "bibliographystyle",	'\0' },
        { NULL, "bigcap",	'1' },
        { NULL, "bigcirc",	'1' },
        { NULL, "bigcup",	'1' },
        { NULL, "bigodot",	'1' },
        { NULL, "bigoplus",	'1' },
        { NULL, "bigotimes",	'1' },
        { NULL, "bigskip",	'\0' },
        { NULL, "bigskipamount",	'\0' },
        { NULL, "bigsqcup",		'1' },
        { NULL, "bigtriangledown",	'1' },
        { NULL, "bigtriangleup",	'1' },
        { NULL, "biguplus",	'1' },
        { NULL, "bigvee",	'1' },
        { NULL, "bigwedge",	'1' },
        { NULL, "blackandwhite",	'\0' },
        { NULL, "bmod",		'1' },
        { NULL, "boldmath",	'\0' },
        { NULL, "bot",		'1' },
        { NULL, "bottomfraction",	'\0' },
        { NULL, "bowtie",	'1' },
        { NULL, "breve",	'1' },
        { NULL, "bullet",	'1' },
        { NULL, "bye",		'\0' },
        { NULL, "c",		'\0' },
        { NULL, "cal",		'1' },
        { NULL, "cap",		'1' },
        { NULL, "caption",	'\0' },
        { NULL, "cc",		'\0' },
        { NULL, "cdot",		'1' },
        { NULL, "cdots",	'1' },
        { NULL, "centerline",	'\0' },	/* (br) added */
        { NULL, "centering",	'\0' },
        { NULL, "chapter",	'\0' },
	{ NULL, "char",		'\0' },	/* (br) added */
        { NULL, "check",	'1' },
        { NULL, "chi",		'1' },
        { NULL, "circ",		'1' },
        { NULL, "circle",	'\0' },
        { NULL, "cite",		'\0' },
        { NULL, "cleardoublepage",	'\0' },
        { NULL, "clearpage",	'\0' },
        { NULL, "cleartabs",	'\0' },
        { NULL, "cline",	'\0' },
        { NULL, "closing",	'\0' },
        { NULL, "clubsuit",	'1' },
        { NULL, "colors",	'\0' },
        { NULL, "colorslides",	'\0' },
        { NULL, "columnsep",	'\0' },
        { NULL, "columnseprule",	'\0' },
        { NULL, "cong",		'1' },
        { NULL, "coprod",	'1' },
        { NULL, "copyright",	'\0' },
        { NULL, "cos",		'1' },
        { NULL, "cosh",		'1' },
        { NULL, "cot",		'1' },
        { NULL, "coth",		'1' },
        { NULL, "csc",		'1' },
        { NULL, "cup",		'1' },
        { NULL, "d",		'\0' },
        { NULL, "dag",		'\0' },
        { NULL, "dagger",	'1' },
        { NULL, "dashbox",	'\0' },
        { NULL, "dashv",	'1' },
        { NULL, "date",		'\0' },
        { NULL, "dblfloatpagefraction",	'\0' },
        { NULL, "dblfloatsep",		'\0' },
        { NULL, "dbltextfloatsep",	'\0' },
        { NULL, "dbltopfraction",	'\0' },
        { NULL, "ddag",		'\0' },
        { NULL, "ddagger",	'1' },
        { NULL, "ddot",		'1' },
        { NULL, "ddots",	'1' },
        { NULL, "def",		'\0' },
        { NULL, "deg",		'1' },
        { NULL, "delta",	'1' },
        { NULL, "det",		'1' },
        { NULL, "diamond",	'1' },
        { NULL, "diamondsuit",	'1' },
        { NULL, "dim",		'1' },
        { NULL, "displaystyle",	'1' },
        { NULL, "div",		'1' },
        { NULL, "documentstyle",	'\0' },
        { NULL, "dosupereject",	'\0' },
        { NULL, "dot",		'1' },
        { NULL, "doteq",	'1' },
        { NULL, "dotfill",	'\0' },
        { NULL, "dots",		'\0' },	/* (br) added */
        { NULL, "downarrow",	'1' },
        { NULL, "ell",		'1' },
        { NULL, "em",		'\0' },
        { NULL, "emptyset",	'1' },
        { NULL, "encl",		'\0' },
        { NULL, "end",		'\0' },
        { NULL, "endinput",	'\0' },	/* (br) added */
        { NULL, "endinsert",	'\0' },
        { NULL, "epsilon",	'1' },
        { NULL, "eqalign",	'\0' },
        { NULL, "eqalignno",	'\0' },
        { NULL, "equiv",	'1' },
        { NULL, "eta",		'1' },
        { NULL, "evensidemargin",	'\0' },
        { NULL, "exists",	'1' },
        { NULL, "exp",		'1' },
        { NULL, "extracolsep",	'\0' },
        { NULL, "fbox",		'\0' },
        { NULL, "fboxrule",	'\0' },
        { NULL, "fboxsep",	'\0' },
        { NULL, "fill",		'\0' },
        { NULL, "fivebf",	'\0' },
        { NULL, "fivei",	'\0' },
        { NULL, "fiverm",	'\0' },
        { NULL, "fivesy",	'\0' },
        { NULL, "flat",		'1' },
        { NULL, "floatpagefraction",	'\0' },
        { NULL, "floatsep",	'\0' },
        { NULL, "flushbottom",	'\0' },
        { NULL, "fnsymbol",	'1' },
        { NULL, "folio",	'\0' },
        { NULL, "footheight",	'\0' },
        { NULL, "footline",	'\0' },
        { NULL, "footnote",	'\0' },
        { NULL, "footnotemark",	'\0' },
        { NULL, "footnoterule",	'\0' },
        { NULL, "footnotesep",	'\0' },
        { NULL, "footnotesize",	'\0' },
        { NULL, "footnotetext",	'\0' },
        { NULL, "footskip",	'\0' },
        { NULL, "footstrut",	'\0' },
        { NULL, "forall",	'1' },
        { NULL, "frac",		'1' },
        { NULL, "frame",	'\0' },
        { NULL, "framebox",	'\0' },
        { NULL, "frenchspacing",	'\0' },
        { NULL, "frown",	'1' },
        { NULL, "fussy",	'\0' },
        { NULL, "gamma",	'1' },
        { NULL, "gcd",		'1' },
        { NULL, "geq",		'1' },
        { NULL, "gg",		'1' },
        { NULL, "glossary",	'\0' },
        { NULL, "glossaryentry",	'\0' },
        { NULL, "grave",	'1' },
        { NULL, "hat",		'1' },
        { NULL, "hbar",		'1' },
        { NULL, "hbox",		'\0' },
        { NULL, "headheight",	'\0' },
        { NULL, "headline",	'\0' },
        { NULL, "headsep",	'\0' },
        { NULL, "heartsuit",	'1' },
        { NULL, "hfill",	'\0' },
        { NULL, "hline",	'\0' },
        { NULL, "hom",		'1' },
        { NULL, "hookleftarrow",	'1' },
        { NULL, "hookrightarrow",	'1' },
        { NULL, "hrulefill",	'\0' },
        { NULL, "hskip",	'\0' },	/* (br) added */
        { NULL, "hspace",	'\0' },
        { NULL, "huge",		'\0' },
        { NULL, "hyphenation",	'\0' },
        { NULL, "i",		'\0' },
        { NULL, "imath",	'1' },
        { NULL, "in",		'1' },
        { NULL, "include",	'\0' },
        { NULL, "includeonly",	'\0' },
        { NULL, "indent",	'\0' },
        { NULL, "index",	'\0' },
        { NULL, "indexentry",	'\0' },
        { NULL, "indexspace",	'\0' },
        { NULL, "inf",		'1' },
        { NULL, "infty",	'1' },
        { NULL, "input",	'\0' },
        { NULL, "int",		'1' },
        { NULL, "intextsep",	'\0' },
        { NULL, "invisible",	'\0' },
        { NULL, "iota",		'1' },
        { NULL, "it",		'\0' },
        { NULL, "item",		'\0' },
        { NULL, "itemindent",	'\0' },
        { NULL, "itemsep",	'\0' },
        { NULL, "j",		'\0' },
        { NULL, "jmath",	'1' },
        { NULL, "jot",		'\0' },
        { NULL, "kappa",	'1' },
        { NULL, "ker",		'1' },
        { NULL, "kern",		'\0' },	/* (br) added */
        { NULL, "kill",		'\0' },
        { NULL, "l",		'\0' },
        { NULL, "label",	'\0' },
        { NULL, "labelitemi",	'\0' },
        { NULL, "labelsep",	'\0' },
        { NULL, "labelwidth",	'\0' },
        { NULL, "lambda",	'1' },
        { NULL, "langle",	'1' },
        { NULL, "large",	'\0' },
        { NULL, "lceil",	'1' },
        { NULL, "ldots",	'\0' },	/* (br) \ldots in LaTeX */
        { NULL, "leadsto",	'1' },
        { NULL, "left",		'1' },
        { NULL, "leftarrow",	'1' },
        { NULL, "lefteqn",	'1' },
        { NULL, "leftharpoondown",	'1' },
        { NULL, "leftharpoonup",	'1' },
        { NULL, "leftmargin",		'\0' },
        { NULL, "leftmargini",		'\0' },
        { NULL, "leftmarginii",		'\0' },
        { NULL, "leftmarginiii",	'\0' },
        { NULL, "leftmarginiv",		'\0' },
        { NULL, "leftmarginv",		'\0' },
        { NULL, "leftmarginvi",		'\0' },
        { NULL, "leftrightarrow",	'1' },
        { NULL, "leq",		'1' },
        { NULL, "leqalignno",	'\0' },
        { NULL, "let",		'\0' },	/* (br) added */
        { NULL, "lfloor",	'1' },
        { NULL, "lg",		'1' },
        { NULL, "lhd",		'1' },
        { NULL, "lim",		'1' },
        { NULL, "liminf",	'1' },
        { NULL, "limsup",	'1' },
        { NULL, "line",		'\0' },
        { NULL, "linebreak",	'\0' },
        { NULL, "linethickness",	'\0' },
        { NULL, "linewidth",		'\0' },
        { NULL, "listoffigures",	'\0' },
        { NULL, "listoftables",		'\0' },
        { NULL, "listparindent",	'\0' },
        { NULL, "ll",		'1' },
        { NULL, "ln",		'1' },
        { NULL, "load",		'\0' },
        { NULL, "location",	'\0' },	/* (br) added */
        { NULL, "log",		'1' },
        { NULL, "longleftarrow",	'1' },
        { NULL, "longleftrightarrow",	'1' },
        { NULL, "longmapsto",		'1' },
        { NULL, "longrightarrow",	'1' },
        { NULL, "magnification",	'\0' },
        { NULL, "makebox",	'\0' },
        { NULL, "makefootline",	'\0' },
        { NULL, "makeglossary",	'\0' },
        { NULL, "makeheadline",	'\0' },
        { NULL, "makeindex",	'\0' },
        { NULL, "makelabel",	'\0' },
        { NULL, "makelabels",	'\0' },
        { NULL, "maketitle",	'\0' },
        { NULL, "mapsto",	'1' },
        { NULL, "marginpar",	'\0' },
        { NULL, "marginparpush",	'\0' },
        { NULL, "marginparsep",		'\0' },
        { NULL, "marginparwidth",	'\0' },
        { NULL, "markboth",	'\0' },
        { NULL, "markright",	'\0' },
        { NULL, "mathindent",	'\0' },
        { NULL, "max",		'1' },
        { NULL, "mbox",		'\0' },
        { NULL, "medskip",	'\0' },
        { NULL, "medskipamount",	'\0' },
        { NULL, "mho",		'1' },
        { NULL, "mid",		'1' },
        { NULL, "midinsert",	'\0' },
        { NULL, "min",		'1' },
        { NULL, "mit",		'1' },
        { NULL, "models",	'1' },
        { NULL, "mp",		'1' },
        { NULL, "mu",		'1' },
        { NULL, "multicolumn",	'\0' },
        { NULL, "multiput",	'\0' },
        { NULL, "nabla",	'1' },
        { NULL, "name",		'\0' },	/* (br) added */
        { NULL, "natural",	'1' },
        { NULL, "nearrow",	'1' },
        { NULL, "neg",		'1' },
        { NULL, "neq",		'1' },
        { NULL, "newcommand",	'\0' },
        { NULL, "newcounter",	'\0' },
        { NULL, "newenvironment",	'\0' },
        { NULL, "newfont",	'\0' },
        { NULL, "newlength",	'\0' },
        { NULL, "newline",	'\0' },
        { NULL, "newpage",	'\0' },
        { NULL, "newsavebox",	'\0' },
        { NULL, "newtheorem",	'\0' },
        { NULL, "ni",		'1' },
        { NULL, "nocite",	'\0' },
        { NULL, "nofiles",	'\0' },
        { NULL, "noindent",	'\0' },
        { NULL, "nolinebreak",	'\0' },
        { NULL, "nonfrenchspacing",	'\0' },
        { NULL, "nonumber",	'\0' },
        { NULL, "nopagebreak",	'\0' },
        { NULL, "nopagenumbers",	'\0' },
        { NULL, "normalbottom",		'\0' },
        { NULL, "normalmarginpar",	'\0' },
        { NULL, "normalsize",	'\0' },
        { NULL, "not",		'1' },
        { NULL, "nu",		'1' },
        { NULL, "numberline",	'\0' },
        { NULL, "nwarrow",	'1' },
        { NULL, "o",		'1' },
        { NULL, "oddsidemargin",	'\0' },
        { NULL, "odot",		'1' },
        { NULL, "oe",		'\0' },
        { NULL, "oint",		'1' },
        { NULL, "oldstyle",	'\0' },
        { NULL, "omega",	'1' },
        { NULL, "ominus",	'1' },
        { NULL, "onecolumn",	'\0' },
        { NULL, "onlynotes",	'\0' },
        { NULL, "onlyslides",	'\0' },
        { NULL, "opening",	'\0' },
        { NULL, "oplus",	'\0' },
        { NULL, "oslash",	'1' },
        { NULL, "otimes",	'1' },
        { NULL, "output",	'\0' },
        { NULL, "oval",		'\0' },
        { NULL, "overbrace",	'\0' },
        { NULL, "overline",	'\0' },
        { NULL, "pagebody",	'\0' },
        { NULL, "pagebreak",	'\0' },
        { NULL, "pagecontents",	'\0' },
        { NULL, "pageinsert",	'\0' },
        { NULL, "pageno",	'\0' },
        { NULL, "pagenumbering",	'\0' },
        { NULL, "pageref",	'\0' },
        { NULL, "pagestyle",	'\0' },
        { NULL, "par",		'\0' },
        { NULL, "paragraph",	'\0' },
        { NULL, "parallel",	'1' },
        { NULL, "parbox",	'\0' },
        { NULL, "parindent",	'\0' },
        { NULL, "parsep",	'\0' },
        { NULL, "parskip",	'\0' },
        { NULL, "part",		'\0' },
        { NULL, "partial",	'1' },
        { NULL, "partopsep",	'\0' },
        { NULL, "perp",		'1' },
        { NULL, "phi",		'1' },
        { NULL, "pi",		'1' },
        { NULL, "plainoutput",	'\0' },
        { NULL, "pm",		'1' },
        { NULL, "pmod",		'1' },
        { NULL, "poptabs",	'\0' },
        { NULL, "pounds",	'\0' },
        { NULL, "prec",		'1' },
        { NULL, "preceq",	'1' },
        { NULL, "prime",	'1' },
        { NULL, "prod",		'1' },
        { NULL, "propto",	'1' },
        { NULL, "protect",	'\0' },
        { NULL, "ps",		'\0' },
        { NULL, "psi",		'1' },
        { NULL, "pushtabs",	'\0' },
        { NULL, "put",		'\0' },
        { NULL, "quad",		'\0' },	/* (br) added */
        { NULL, "qquad",	'\0' },	/* (br) added */
        { NULL, "raggedbottom",	'\0' },
        { NULL, "raggedleft",	'\0' },
        { NULL, "raggedright",	'\0' },
        { NULL, "raisebox",	'\0' },
        { NULL, "rangle",	'1' },
        { NULL, "rceil",	'1' },
        { NULL, "ref",		'\0' },
        { NULL, "refstepcounter",	'\0' },
        { NULL,  "relax",	'\0' },			/*em*/
        { NULL, "renewcommand",	'\0' },
        { NULL, "renewenvironment",	'\0' },
        { NULL, "reversemarginpar",	'\0' },
        { NULL, "rfloor",	'1' },
        { NULL, "rhd",		'1' },
        { NULL, "rho",		'1' },
        { NULL, "right",	'1' },
        { NULL, "rightarrow",	'1' },
        { NULL, "rightharpoondown",	'1' },
        { NULL, "rightharpoonup",	'1' },
        { NULL, "rightleftharpoons",	'1' },
        { NULL, "rightmargin",	'\0' },
        { NULL, "rm",		'\0' },
        { NULL, "roman",	'\0' },
        { NULL, "rule",		'\0' },
        { NULL, "samepage",	'\0' },
        { NULL, "savebox",	'\0' },
        { NULL, "sbox",		'\0' },
        { NULL, "sc",		'\0' },
        { NULL, "scriptfont",	'\0' },
        { NULL, "scriptscriptfont",	'\0' },
        { NULL, "scriptscriptstyle",	'1' },
        { NULL, "scriptsize",	'\0' },
        { NULL, "scriptstyle",	'1' },
        { NULL, "searrow",	'1' },
        { NULL, "sec",		'1' },
        { NULL, "section",	'\0' },
        { NULL, "setcounter",	'\0' },
        { NULL, "setlength",	'\0' },
        { NULL, "setminus",	'1' },
        { NULL, "settabs",	'\0' },
        { NULL, "settowidth",	'\0' },
        { NULL, "sevenbf",	'\0' },
        { NULL, "seveni",	'\0' },
        { NULL, "sevensy",	'\0' },
        { NULL, "sf",		'\0' },
        { NULL, "sharp",	'1' },
        { NULL, "shortstack",	'\0' },
        { NULL, "sigma",	'1' },
        { NULL, "signature",	'\0' },
        { NULL, "sim",		'1' },
        { NULL, "simeq",	'1' },
        { NULL, "sin",		'1' },
        { NULL, "sinh",		'1' },
        { NULL, "sl",		'\0' },
        { NULL, "sloppy",	'\0' },
        { NULL, "small",	'\0' },
        { NULL, "smallskip",	'\0' },
        { NULL, "smallskipamount",	'\0' },
        { NULL, "smile",	'\0' },
        { NULL, "space",	'\0' },
        { NULL, "spadesuit",	'1' },
        { NULL, "sqcap",	'1' },
        { NULL, "sqcup",	'1' },
        { NULL, "sqrt",		'1' },
        { NULL, "sqsubset",	'1' },
        { NULL, "sqsubseteq",	'1' },
        { NULL, "sqsupset",	'1' },
        { NULL, "sqsupseteq",	'1' },
        { NULL, "ss",		'\0' },
        { NULL, "stackrel",	'1' },
        { NULL, "star",		'1' },
        { NULL, "stepcounter",	'\0' },
        { NULL, "stop",		'\0' },
        { NULL, "stretch",	'\0' },
        { NULL, "subitem",	'\0' },
        { NULL, "subparagraph",	'\0' },
        { NULL, "subsection",	'\0' },
        { NULL, "subset",	'1' },
        { NULL, "subseteq",	'1' },
        { NULL, "subsubitem",	'\0' },
        { NULL, "subsubsection",	'\0' },
        { NULL, "succ",		'1' },
        { NULL, "succeq",	'1' },
        { NULL, "sum",		'1' },
        { NULL, "sup",		'1' },
        { NULL, "supset",	'1' },
        { NULL, "supseteq",	'1' },
        { NULL, "surd",		'1' },
        { NULL, "swarrow",	'1' },
        { NULL, "symbol",	'\0' },
        { NULL, "t",		'\0' },
        { NULL, "tabalign",	'\0' },
        { NULL, "tabbingsep",	'\0' },
        { NULL, "tabcolsep",	'\0' },
        { NULL, "tableofcontents",	'\0' },
        { NULL, "tabs",		'\0' },
        { NULL, "tabsdone",	'\0' },
        { NULL, "tabset",	'\0' },
        { NULL, "tan",		'1' },
        { NULL, "tanh",		'1' },
        { NULL, "tau",		'1' },
        { NULL, "telephone",	'\0' },	/* (br) added */
        { NULL, "teni",		'\0' },
        { NULL, "textfloatsep",	'\0' },
        { NULL, "textfont",	'\0' },
        { NULL, "textfraction",	'\0' },
        { NULL, "textheight",	'\0' },
        { NULL, "textstyle",	'1' },
        { NULL, "textwidth",	'\0' },
        { NULL, "thanks",	'\0' },
        { NULL, "the",		'\0' },
        { NULL, "thepage",	'\0' },
        { NULL, "theta",	'1' },
        { NULL, "thicklines",	'\0' },
        { NULL, "thinlines",	'\0' },
        { NULL, "thispagestyle",	'\0' },
        { NULL, "tilde",	'1' },
        { NULL, "times",	'1' },
        { NULL, "tiny",		'\0' },
        { NULL, "title",	'\0' },
        { NULL, "today",	'\0' },
        { NULL, "top",		'1' },
        { NULL, "topfraction",	'\0' },
        { NULL, "topins",	'\0' },
        { NULL, "topinsert",	'\0' },
        { NULL, "topmargin",	'\0' },
        { NULL, "topsep",	'\0' },
        { NULL, "topskip",	'\0' },
        { NULL, "triangle",	'1' },
        { NULL, "triangleleft",	'1' },
        { NULL, "triangleright",	'1' },
        { NULL, "tt",		'\0' },
        { NULL, "twocolumn",	'\0' },
        { NULL, "typein",	'\0' },
        { NULL, "typeout",	'\0' },
        { NULL, "u",		'\0' },
        { NULL, "unboldmath",	'\0' },
        { NULL, "underbrace",	'\0' },
        { NULL, "underline",	'\0' },
        { NULL, "unitlength",	'\0' },
        { NULL, "unlhd",	'1' },
        { NULL, "unrhd",	'1' },
        { NULL, "uparrow",	'1' },
        { NULL, "updownarrow",	'1' },
        { NULL, "uplus",	'1' },
        { NULL, "upsilon",	'1' },
        { NULL, "usebox",	'\0' },
        { NULL, "usecounter",	'\0' },
        { NULL, "v",		'\0' },
        { NULL, "value",	'\0' },
        { NULL, "varepsilon",	'1' },
        { NULL, "varphi",	'1' },
        { NULL, "varpi",	'1' },
        { NULL, "varrho",	'1' },
        { NULL, "varsigma",	'1' },
        { NULL, "vartheta",	'1' },
        { NULL, "vbox",		'\0' },
        { NULL, "vdash",	'1' },
        { NULL, "vdots",	'1' },
        { NULL, "vec",		'1' },
        { NULL, "vector",	'\0' },
        { NULL, "vee",		'1' },
        { NULL, "verb",		'\0' },
        { NULL, "vfill",	'\0' },
        { NULL, "vfootnote",	'\0' },
        { NULL, "vline",	'\0' },
        { NULL, "vskip",	'\0' },	/* (br) added */
        { NULL, "vspace",	'\0' },
        { NULL, "wedge",	'1' },
        { NULL, "widehat",	'1' },
        { NULL, "widetilde",	'1' },
        { NULL, "wp",		'1' },
        { NULL, "wr",		'1' },
        { NULL, "xi",		'1' },
        { NULL, "zeta",		'1' },
        { NULL, "{",		'\0' },
        { NULL, "|",		'1' },
        { NULL, "}",		'\0' },
        { NULL, "~",		'\0' },
        { NULL, NULL,		'\0' }
};


/*
 * Environment Commands to switch implicit to math mode
 */

char *Math_Environments[] = {
     "math",
     "displaymath",
     "equation",
     "eqnarray",
     "eqnarray*",
     NULL                               /*em*/
};


   int
is_math_environment (keyword)
  char *keyword;
{
  char **mathenvs = Math_Environments;

  while (*mathenvs != NULL) {   /*em*/
    if (0 == strcmp(*mathenvs,keyword)) return(1);
    mathenvs++;
  }
  return(0);
}
