fix bug 1542 completely

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-04-26 10:00:58 +00:00
parent bc31e33a27
commit 54aadc098b
5 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-04-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* lib/symbols: treat & as special character (fixes bug 1542 completely)
2005-04-22 Angus Leeming <leeming@lyx.org>
* configure.m4: rewrite the "DeclareFOOClass" manipulation

View File

@ -766,6 +766,7 @@ bmod lyxblacktext 0 0 func x
} mathnormal 0 0 special x
$ mathnormal 0 0 special x
% mathnormal 0 0 special x
& mathnormal 0 0 special x
# don't remove the space from the beginning of the next line
# mathnormal 0 0 special x

View File

@ -1,3 +1,8 @@
2005-04-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_cursor.C (interpret): treat & as special character (fixes
bug 1542 completely)
2005-03-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_amsarrayinset.[Ch] (validate): new, require amsmath

View File

@ -1234,8 +1234,8 @@ bool MathCursor::interpret(char c)
return true;
}
if (c == '$') {
insert(createMathInset("$"));
if (c == '$' || c == '&') {
insert(createMathInset(string(1, c)));
return true;
}

View File

@ -50,6 +50,8 @@ What's new
- Fix crash when reading equations containing more columns than allowed
[bug 1542].
- Store typed '&' characters in math as '\&' [bug 1542].
- Make sure that the amsmath package is used in LaTeX output when
using the AMS-specific array environments and over/under arrows in
equations.