4 * Purpose: Math editor definitions
5 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6 * Created: January 1996
7 * Description: Math paragraph and objects for a WYSIWYG math editor.
11 * Copyright: 1996, 1997 Alejandro Aguilar Sierra
13 * Version: 0.8beta, Math & Lyx project.
15 * You are free to use and modify this code under the terms of
16 * the GNU General Public Licence version 2 or later.
28 /// Standard Math Sizes (Math mode styles)
40 // decrease math size for super- and subscripts
41 MathStyles smallerStyleScript(MathStyles);
43 // decrease math size for fractions
44 MathStyles smallerStyleFrac(MathStyles st);
48 /** The restrictions of a standard LaTeX math paragraph
49 allows to get a small number of text codes (<30) */
53 /// Open and Close group
59 /// Super and sub scripts
63 /// Editable Math Inset
65 /// Editable Text Inset
69 /// Internal code for constants 11
71 /// Internal code for variables
87 /// Math mode TeX characters ",;:{}" 20
89 /// Special characters "{}&#_%"
91 /// Internal code for operators 22
93 /// Internal code for symbols
102 /// This must be < 32
107 /// Types of lyx-math insets
108 enum MathInsetTypes {
144 enum MathBinaryTypes {
152 LMB_BOP = (LMB_RELATION | LMB_OPERATOR)
156 /// Paragraph permissions
159 /// If false can use a non-standard size
161 /// If true can insert newlines
163 /// If true can use tabs
165 /// If true can insert new columns
166 LMPF_ALLOW_NEW_COL = 8,
167 /// Smaller than current size (frac)
169 /// Script size (subscript, stackrel)