Commit Graph

53 Commits

Author SHA1 Message Date
Enrico Forestieri
6ce8659e50 Make MathBigInset working and implement GUI for fixed size math delimiters
(by Georg and me)

	* src/lfuns.h
	(enum kb_action): New lfun LFUN_MATH_BIGDELIM

	* src/LyXAction.C
	(init): New lfun LFUN_MATH_BIGDELIM

	* src/cursor.C
	(macroModeClose): try to intepret the current macro before
	it is simply inserted

	* src/mathed/math_biginset.[Ch]
	(name): implement
	(isBigInsetDelim): new, test whether a given token is a valid
	MathBigInset delimiter
	(infoize2): implement to show name if the cursor is to the right

	* src/mathed/math_biginset.C
	(size): handle Big, bigg and Bigg
	(increase): ditto
	(draw): fix deco drawing
	(write): don't write space before delimiter but append one if necessary

	* src/mathed/math_factory.C
	(createMathInset): handle l->inset == "big"

	* src/mathed/math_parser.C
	(asInput): return a token as input, stolen from tex2lyx
	(parse1): create a MathBigInset when needed

	* src/mathed/math_nestinset.C
	(doDispatch): try to intepret the argument of LFUN_SELFINSERT also
	if it is longer than one character
	(doDispatch): remove debug message
	(doDispatch): remove LFUN_MATH_DELIM test for multiple cells (now
	in getStatus)
	(doDispatch): handle LFUN_MATH_BIGDELIM
	(getStatus): Disable LFUN_MATH_DELIM and LFUN_MATH_BIGDELIM when
	the selection spans multiple cells

	* src/mathed/math_nestinset.[Ch]
	(interpret): new, combine the previous math atom with the new
	character to a MathBigInset if possible

	* src/mathed/math_support.C
	(deco_table): add lbrace and rbrace

	* src/frontends/qt2/QDelimiterDialog.[Ch]
	(fix_name, QDelimiterDialog, insertClicked, size_selected):
	Allow for fixed size delimiters.

	* src/frontends/qt2/ui/QDelimiterDialogBase.ui:
	Added a combobox for selecting delimiter size.

	* src/frontends/xforms/forms/form_maths_delim.fd: ditto

	* src/frontends/xforms/FormMathsDelim.h:
	Added a private variable to store selected delimiter size

	* src/frontends/xforms/FormMathsDelim.C:
	Correct entry in delim_rversion[] for matching braces.
	(fix_name): new, return correct name for fixed size delimiter
	(build, apply, update): allow for fixed size delimiters.

	* src/frontends/gtk/GMathDelim.C: Add FIXME comment for fixed
	size delimiters

	* src/frontends/controllers/ControlMath.[Ch]:
	Added dispatchBigDelim() to deal with fixed size delimiters.

	* src/ParagraphParameters.C
	(findToken): move from here

	* src/support/lstrings.[Ch]
	(findToken): to here

	* src/text3.C
	(dispatch): handle LFUN_MATH_BIGDELIM
	(getStatus): ditto

	* src/ToolbarBackend.C
	(getIcon): handle LFUN_MATH_BIGDELIM

	* lib/symbols: add MathBigInset symbols



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15570 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-26 19:09:10 +00:00
Georg Baum
411024615c Support lgathered and rgathered math environments
* src/mathed/math_splitinset.C
	(MathSplitInset::validate): Only require amsmath for AMS stuff

	* src/mathed/math_factory.C
	(createMathInset): create MathSplitInset if the latexkey is "split"

	* src/mathed/math_parser.C
	(Parser::parse1): create MathSplitInset if the latexkey is "split"

	* lib/symbols: Add aligned, gathered, lgathered and rgathered


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15227 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-03 20:11:00 +00:00
Georg Baum
2019a3e590 Fix limit display of intop and ointop
* src/mathed/math_scriptinset.C
	(MathScriptInset::hasLimits): handle \intop and \ointop

	* lib/symbols: add intop and ointop


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14230 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 16:38:11 +00:00
Georg Baum
2aacaaede1 fix bug 2234
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13400 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 15:11:03 +00:00
Georg Baum
5bd1399946 fix bug 2361
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13383 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 16:05:24 +00:00
Georg Baum
5858a82efa speedup math init time when symbol font is not available (qt)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10669 a592a061-630c-0410-9148-cb99ea01b6c8
2005-12-19 11:03:07 +00:00
Martin Vermeer
eebda223db The ��ngstr��m, ��rsted patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9394 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-17 13:34:02 +00:00
André Pönitz
e4be3d150e change handling of #
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8659 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-18 07:33:32 +00:00
André Pönitz
6df510866c recognize '&' (i.e. draw it blue, not red in math)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8643 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-08 17:01:13 +00:00
Angus Leeming
a60b5c0b72 Whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7905 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 09:50:10 +00:00
André Pönitz
fb7298145a somewhat better rendering of \^
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7628 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-29 06:11:23 +00:00
André Pönitz
48d6e3a90e add overset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7593 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 16:00:53 +00:00
John Levon
17c2c4e024 add bmod
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6571 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-24 18:51:53 +00:00
Dekel Tsur
1a8aba292c Fix \Box, \Diamond, \cong, and \surd.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5961 a592a061-630c-0410-9148-cb99ea01b6c8
2003-01-15 19:07:00 +00:00
Dekel Tsur
8a8724129a Fix symbols file for RH8
Update mathed.lyx


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5887 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-20 18:13:44 +00:00
André Pönitz
094190ca46 Support for \implies and \dots
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5795 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-09 09:51:55 +00:00
André Pönitz
9babb4a5f9 add AMS smallmatrix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5571 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-01 15:29:13 +00:00
Dekel Tsur
13ec304e16 Update file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5528 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-28 10:39:56 +00:00
Dekel Tsur
90c5920f8c Fix \Join
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5517 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-25 20:54:49 +00:00
André Pönitz
fd2740ca18 remove spurious backslash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5494 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-24 11:39:47 +00:00
Dekel Tsur
b04538960e Handle \not using a macro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5458 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-21 13:38:02 +00:00
Dekel Tsur
dde4440425 Better alignment of \longrightarrow like macros.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5432 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-17 13:15:25 +00:00
André Pönitz
907a7c903a emph and noun missing...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5322 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-19 13:44:48 +00:00
André Pönitz
6e81342025 textsc was missing, too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5320 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-19 09:20:22 +00:00
André Pönitz
e03929a496 'textnormal' was missing, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5319 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-19 08:58:58 +00:00
André Pönitz
7c538fc516 add a line for textsf
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5317 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-19 06:37:35 +00:00
André Pönitz
3d97dead36 make AMS's CD environment known to mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5183 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-30 08:42:59 +00:00
André Pönitz
1181da4a5d Herbert's space.diff patch for neg*space support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4984 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-15 07:13:21 +00:00
André Pönitz
2347f4e642 herbert's fix for leo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4967 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-14 11:05:21 +00:00
André Pönitz
ae44ffe9fc fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4965 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-14 10:38:13 +00:00
André Pönitz
49c09933c9 Herbert's Bmatrix patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4938 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-12 07:05:02 +00:00
André Pönitz
5b3d1c64be fix typo in scriptstyle/scriptscriptstyle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4864 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-05 16:19:44 +00:00
André Pönitz
2e835ba909 fix font info
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4825 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-01 11:47:40 +00:00
André Pönitz
cdbe361370 fix \neq bug reported by edwin
rename the math-extern menu


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4818 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-31 13:08:48 +00:00
André Pönitz
67e2f58e78 make math-extern a bit more visible in Edit->Math,
revamp some math key bindings
add \boxed to the list of known things


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4815 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-31 05:36:33 +00:00
André Pönitz
d242ff53eb some spaces had disappeared
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4699 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-18 09:13:10 +00:00
André Pönitz
19699c9f57 fill in 'extra' field for displaystyle etc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4685 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-17 15:58:00 +00:00
André Pönitz
8c7befa454 fix typo in font list, add \hbar symbol
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4678 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-17 11:37:28 +00:00
André Pönitz
403d15bdd4 add previously hard-coded predefined macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4625 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-12 15:32:07 +00:00
André Pönitz
e52a528119 more a few formerly hard-wired symbols to lib/symbols
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4618 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-12 11:18:56 +00:00
André Pönitz
5e4dbd344c Add sub menu for font changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4615 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-12 08:32:18 +00:00
André Pönitz
909a631592 add \not as symbol
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4608 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-11 15:37:39 +00:00
André Pönitz
26391776f2 Do not hard-code assosiation of latex macros to insets anymore.
So people who don't like the defaults can override them here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4598 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-11 09:32:58 +00:00
André Pönitz
b23d2ad302 symbols: wasy symbols added (screen display only)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4565 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-09 13:36:35 +00:00
André Pönitz
1fcad464fe *** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4544 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-08 11:51:14 +00:00
André Pönitz
7bddad38fd old MathSpecialCharInset now realized by MathSymbolInset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4476 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-25 14:00:59 +00:00
Dekel Tsur
160d830280 Add glyph for \colon for the symbol font.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3211 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-15 11:26:57 +00:00
André Pönitz
46e600604c add ∫ for starters...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3003 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-09 18:53:58 +00:00
André Pönitz
2e865ef2a5 add a column for XML entity names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3001 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-09 18:46:08 +00:00
Dekel Tsur
bc5e92cb03 More symbols (mainly arrows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2772 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-19 17:22:34 +00:00