]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_defs.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_defs.h
index cec78c5efce5f809769bc881323b52800f66616b..5130dfdcc61499b7761922e9a8060af307c7722e 100644 (file)
 #endif
 
 
-/// Standard Math Sizes (Math mode styles)
-enum MathStyles {
-       ///
-       LM_ST_DISPLAY = 0,
-       ///
-       LM_ST_TEXT,
-       ///
-       LM_ST_SCRIPT,
-       ///
-       LM_ST_SCRIPTSCRIPT
-};
-
-
-/** The restrictions of a standard LaTeX math paragraph
-  allows to get a small number of text codes (<30) */
+///
 enum MathTextCodes  {
-       /// This must be >= 0
+       /// 
        LM_TC_MIN = 0,
-       /// Open and Close group
-       LM_TC_OPEN,
-       ///
-       LM_TC_CLOSE,
-       /// Math Inset
-       LM_TC_INSET,
-       /// Super and sub scripts
-       LM_TC_UP,
-       ///
-       LM_TC_DOWN,
-       /// Editable Math Inset
-       LM_TC_ACTIVE_INSET,
-       /// Editable Text Inset
-       LM_TC_TEXT_INSET,
-       ///
-       LM_FONT_BEGIN,
-       /// Internal code for constants  11
-       LM_TC_CONST,
-       /// Internal code for variables
+       /// internal code for variables
        LM_TC_VAR,
+       /// internal code for stuff in wrapped in mbox etc
+       LM_TC_BOX,
+       ///
+       LM_TC_CONST,
        ///
        LM_TC_RM,
        ///
        LM_TC_CAL,
        ///
+       LM_TC_EUFRAK,
+       ///
        LM_TC_BF,
+       //
+       LM_TC_BB,
        ///
        LM_TC_SF,
        ///
@@ -77,23 +53,30 @@ enum MathTextCodes  {
        LM_TC_IT,
        ///
        LM_TC_TEXTRM,
-       /// Math mode TeX characters ",;:{}"  20
+       /// math mode TeX characters ",;:{}"  
        LM_TC_TEX,
-       /// Special characters "{}&#_%"
-       LM_TC_SPECIAL,
-       /// Internal code for operators  22
-       LM_TC_BOP,
-       /// Internal code for symbols
+       /// internal code when typing greek
+       LM_TC_GREEK,
+       /// internal code when typing a single greek character
+       LM_TC_GREEK1,
+       /// internal code for symbols
        LM_TC_SYMB,
+       /// internal code for symbols that get bigger in displayed math
+       LM_TC_BOLDSYMB,
+       ///
+       LM_TC_CMR,
        ///
-       LM_TC_BOPS,
+       LM_TC_CMSY,
        ///
-       LM_TC_BSYM,
+       LM_TC_CMM,
        ///
-       LM_FONT_END,
-       
-       /// This must be < 32 
-       LM_TC_MAX
+       LM_TC_CMEX,
+       ///
+       LM_TC_MSA,
+       ///
+       LM_TC_MSB,
+       ///
+       LM_FONT_END
 };
 
 
@@ -110,77 +93,24 @@ enum MathInsetTypes  {
        ///
        LM_OT_ALIGNAT,
        ///
-       LM_OT_XALIGN,
+       LM_OT_XALIGNAT,
        ///
-       LM_OT_XXALIGN,
+       LM_OT_XXALIGNAT,
        ///
        LM_OT_MULTLINE,
+       ///
+       LM_OT_GATHER,
        /// An array
        LM_OT_MATRIX,
 
-       /// A big operator
-       LM_OT_BIGOP,
        /// A LaTeX macro
        LM_OT_UNDEF,
        ///
-       LM_OT_FUNC,
-       ///
        LM_OT_FUNCLIM,
        ///
-       LM_OT_SCRIPT,
-       ///
-       LM_OT_SPACE,
-       ///
-       LM_OT_DOTS,
-       /// A fraction
-       LM_OT_FRAC,
-       ///
-       LM_OT_ATOP,
-       ///
-       LM_OT_STACKREL,
-       /// A radical
-       LM_OT_SQRT,
-       /// A delimiter
-       LM_OT_DELIM,
-       /// A decoration
-       LM_OT_DECO,
-       /// An accent
-       LM_OT_ACCENT,
-       ///
        LM_OT_MACRO,
        ///
        LM_OT_MAX
 };
 
-
-///
-enum MathBinaryTypes {
-       ///
-       LMB_NONE = 0,
-       ///
-       LMB_RELATION,
-       ///
-       LMB_OPERATOR,
-       ///
-       LMB_BOP = (LMB_RELATION | LMB_OPERATOR)
-};
-
-
-/// Paragraph permissions
-enum MathParFlag {
-       LMPF_BASIC = 0,
-       /// If false can use a non-standard size
-       LMPF_FIXED_SIZE = 1,
-       /// If true can insert newlines 
-       LMPF_ALLOW_CR  = 2,
-       /// If true can use tabs
-       LMPF_ALLOW_TAB = 4,
-       /// If true can insert new columns
-       LMPF_ALLOW_NEW_COL = 8,
-       /// Smaller than current size (frac)
-       LMPF_SMALLER = 16,
-       /// Script size (subscript, stackrel)
-       LMPF_SCRIPT = 32
-};
-
 #endif