4 * Purpose: Declaration of parsing utilities for mathed
5 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6 * Created: January 1996
7 * Description: Parse LaTeX2e math mode code.
9 * Dependencies: Xlib, XForms
11 * Copyright: 1996, Alejandro Aguilar Sierra
15 * You are free to use and modify this code under the terms of
16 * the GNU General Public Licence version 2 or later.
27 #include "math_defs.h"
60 /// mathcal, mathrm...
121 /// name of the macro or primitive
123 /// one of the categories above
125 /// an id within a category if needed (only for spaces?)
127 /// which font to use (optional)
128 unsigned int latex_font_id;
131 /// how is this called as XML entity?
136 /// check whether this is a well-known (La)TeX macro or primitive
137 latexkeys const * in_word_set(string const & str);
139 /// parse formula from a string
140 bool mathed_parse_normal(MathAtom &, string const &);
142 bool mathed_parse_normal(MathAtom &, std::istream &);
143 /// ... the LyX lexxer
144 bool mathed_parse_normal(MathAtom &, LyXLex &);
146 /// parse a macro definition from a string, enter it into the macro table
147 bool mathed_parse_macro(string &, string const &);
149 bool mathed_parse_macro(string &, std::istream &);
150 /// ... the LyX lexxer
151 bool mathed_parse_macro(string &, LyXLex &);
153 /// parse a single cell from a string
154 void mathed_parse_cell(MathArray & ar, string const &);
156 void mathed_parse_cell(MathArray & ar, std::istream &);