Add support for '@' in mathed + various small things

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1082 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-10-04 14:24:42 +00:00
parent df13cd9f7c
commit 8d463d54ce
6 changed files with 22 additions and 5 deletions

View File

@ -1,5 +1,17 @@
2000-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2000-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/mathed/math_parser.C (LexInitCodes): set lexcode of "@" to
LexAlpha.
* src/mathed/formula.C (LocalDispatch): add '@' as an LM_TC_VAR
character.
* lib/layouts/amsart.layout: include lyxmacros.inc, so that
LyX-Code is defined.
* lib/layouts/amsbook.layout: ditto.
* boost/Makefile.am: fix typo.
* src/frontends/xforms/Menubar_pimpl.C (create_submenu): use * src/frontends/xforms/Menubar_pimpl.C (create_submenu): use
Menu::expand. Menu::expand.
(add_lastfiles): removed. (add_lastfiles): removed.

View File

@ -2,4 +2,4 @@ DISTCLEANFILES= *.orig *.rej *~ *.bak core
MAINTAINERCLEANFILES= $(srcdir)/Makefile.in MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
ETAGS_ARGS = --lang=c++ ETAGS_ARGS = --lang=c++
EXTRADIST = boost libs EXTRA_DIST = boost libs

View File

@ -99,7 +99,7 @@ NoStyle Verse # Although mathematicians tend to be poets at times,
Input stdlists.inc Input stdlists.inc
Input lyxmacros.inc
### Finally a few obsolete definitions for compatibility ### Finally a few obsolete definitions for compatibility
Input obsolete.inc Input obsolete.inc

View File

@ -128,6 +128,8 @@ Style Chapter_Exercises
End End
Input lyxmacros.inc
### Finally a few obsolete definitions for compatibility ### Finally a few obsolete definitions for compatibility
Input obsolete.inc Input obsolete.inc

View File

@ -1202,7 +1202,7 @@ InsetFormula::LocalDispatch(BufferView * bv,
result = FINISHED; result = FINISHED;
} }
} else } else
if (c == '\'') { if (c == '\'' || c == '@') {
mathcursor->Insert (c, LM_TC_VAR); mathcursor->Insert (c, LM_TC_VAR);
} else } else
if (c == '\\') { if (c == '\\') {

View File

@ -124,8 +124,11 @@ void LexInitCodes()
lexcode['<'] = lexcode['>'] = lexcode['='] = LexBOP; lexcode['<'] = lexcode['>'] = lexcode['='] = LexBOP;
lexcode['!'] = lexcode[','] = lexcode[':'] = lexcode[';'] = LexMathSpace; lexcode['!'] = lexcode[','] = lexcode[':'] = lexcode[';'] = LexMathSpace;
lexcode['('] = lexcode[')'] = lexcode['|'] = lexcode['.'] = lexcode['?'] = LexOther;
lexcode['\'']= LexAlpha; lexcode['('] = lexcode[')'] = lexcode['|'] = lexcode['.'] =
lexcode['?'] = LexOther;
lexcode['\''] = lexcode['@'] = LexAlpha;
lexcode['['] = lexcode[']'] = lexcode['^'] = lexcode['_'] = lexcode['['] = lexcode[']'] = lexcode['^'] = lexcode['_'] =
lexcode['&'] = LexSelf; lexcode['&'] = LexSelf;