You cannot create math delimiters '/' and '|' with 1.2.0
If you crete a math delimiter '\', then LaTeX is wrong.

When 1.2.0 reads a lyx file created with 1.1.6, then
math delimiters '/' and '|' are lost, and '\' is not displayed
correctly (LaTeX is OK, though).

Regards,
        SMiyata
Index: lyx-devel/src/frontends/xforms/FormMathsDelim.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormMathsDelim.C,v
retrieving revision 1.10
diff -u -r1.10 FormMathsDelim.C
--- lyx-devel/src/frontends/xforms/FormMathsDelim.C     2001/09/07 17:55:37     1.10
+++ lyx-devel/src/frontends/xforms/FormMathsDelim.C     2001/09/10 14:07:06
@@ -34,7 +34,7 @@
 static char const * delim_values[] = {
        "(", ")", "lceil",  "rceil",  "uparrow",  "Uparrow",
        "[", "]", "lfloor", "rfloor", "updownarrow", "Updownarrow",
-       "{", "}",  "/", "\\",  "downarrow",  "Downarrow",
+       "{", "}",  "/", "backslash",  "downarrow",  "Downarrow",
        "langle",  "rangle", "|", "Vert", ".", 0
 };
 
Index: lyx-devel/src/mathed/math_hash.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/mathed/math_hash.C,v
retrieving revision 1.54
diff -u -r1.54 math_hash.C
--- lyx-devel/src/mathed/math_hash.C    2001/09/04 07:39:29     1.54
+++ lyx-devel/src/mathed/math_hash.C    2001/09/10 13:38:48
@@ -30,6 +30,8 @@
        {")",  LM_TK_END, LM_OT_SIMPLE},
        {",",  LM_TK_SPACE, 1},
        {".",  LM_TK_SPECIAL, '.'},
+       {"|",  LM_TK_SPECIAL, '|'},
+       {"/",  LM_TK_SPECIAL, '/'},
        {":",  LM_TK_SPACE, 2},
        {";",  LM_TK_SPACE, 3},
        {"Pr",  LM_TK_FUNCLIM, 0},
Index: lyx-devel/src/mathed/support.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/mathed/support.C,v
retrieving revision 1.36
diff -u -r1.36 support.C
--- lyx-devel/src/mathed/support.C      2001/09/04 07:01:31     1.36
+++ lyx-devel/src/mathed/support.C      2001/09/10 14:05:47
@@ -484,7 +484,7 @@
        {"|",              vert,       0 },
        {"/",              slash,      0 },
        {"Vert",           Vert,       0 },
-       {"'",              slash,      1 },
+       {"backslash",      slash,      1 },
        {"langle",         angle,      0 },
        {"lceil",          corner,     0 }, 
        {"lfloor",         corner,     1 },  

Reply via email to