mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
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:
parent
df13cd9f7c
commit
8d463d54ce
12
ChangeLog
12
ChangeLog
@ -1,5 +1,17 @@
|
||||
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
|
||||
Menu::expand.
|
||||
(add_lastfiles): removed.
|
||||
|
@ -2,4 +2,4 @@ DISTCLEANFILES= *.orig *.rej *~ *.bak core
|
||||
MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
|
||||
ETAGS_ARGS = --lang=c++
|
||||
|
||||
EXTRADIST = boost libs
|
||||
EXTRA_DIST = boost libs
|
||||
|
@ -99,7 +99,7 @@ NoStyle Verse # Although mathematicians tend to be poets at times,
|
||||
|
||||
|
||||
Input stdlists.inc
|
||||
|
||||
Input lyxmacros.inc
|
||||
|
||||
### Finally a few obsolete definitions for compatibility
|
||||
Input obsolete.inc
|
||||
|
@ -128,6 +128,8 @@ Style Chapter_Exercises
|
||||
|
||||
End
|
||||
|
||||
Input lyxmacros.inc
|
||||
|
||||
### Finally a few obsolete definitions for compatibility
|
||||
Input obsolete.inc
|
||||
|
||||
|
@ -1202,7 +1202,7 @@ InsetFormula::LocalDispatch(BufferView * bv,
|
||||
result = FINISHED;
|
||||
}
|
||||
} else
|
||||
if (c == '\'') {
|
||||
if (c == '\'' || c == '@') {
|
||||
mathcursor->Insert (c, LM_TC_VAR);
|
||||
} else
|
||||
if (c == '\\') {
|
||||
|
@ -124,8 +124,11 @@ void LexInitCodes()
|
||||
lexcode['<'] = lexcode['>'] = lexcode['='] = LexBOP;
|
||||
|
||||
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['&'] = LexSelf;
|
||||
|
Loading…
Reference in New Issue
Block a user