Commit Graph

70 Commits

Author SHA1 Message Date
Richard Heck
84d2d20810 Some XML entities for lib/symbols.
For anyone who wants to help (fun!), you can find the XML entity
definitions here:
	http://www.htmlhelp.com/reference/html40/entities/
and here:
	http://www.w3.org/TR/MathML2/chapter6.html#chars.entity.tables
Fill 'em in.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32041 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-16 03:31:20 +00:00
Uwe Stöhr
bc870d3bcd symbols: typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30342 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-03 12:40:03 +00:00
Uwe Stöhr
a555fcaa92 symbols: now that we support mhchem, also supports its commands visibly in LyX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30341 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-03 12:33:00 +00:00
Enrico Forestieri
0a90c42b86 Fix bugs #6047, #4043, and #5394.
6047: Lyx 1.6.3 unable to typeset the third chemical equation of the
      file mhchem.lyx (package mhchem)
4043: mhchem support
5394: support for the mhchems's \ce command
The \ce and \cf insets are text mode environments that allow entering
spaces and mathmode commands. LyX leaves them alone and doesn't try to
be smart, i.e., the behaviour is exactly the same we had in the old days
with text-in-math mode environments, before the introduction of the
\ensuremath and \lyxmathsym macros. This means that in those environments
one has to know what he is doing, as LyX will not offer any protection.
The hack of enclosing \ce and \cf in a \text{} environment in order to
be able to enter spaces is no longer necessary.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30338 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-03 00:05:58 +00:00
Georg Baum
9c662bf442 - fix requirements of \dddot
- add support for \ddddot
- add partial support for inverse diagonal dots (i. e. they are recognized and
  displayed correctly, but the needed package is not loaded, because it would
  need an off/auto/on setting as amsmath, and that calls for a general solution)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 20:04:27 +00:00
Georg Baum
3d7878212b Add missing esint bits.
They should have been part of the initial commit, but I overlooked them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28355 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 19:57:02 +00:00
Georg Baum
ac1fd9b37f fix bug 2558: hspace support in math
The basic idea was to reuse the corresponding text space inset in the same
fashion as is already done for references. The dialog displays a different
selection for math than for text. If wanted, the additional spaces could
also be enabled for text, but that would be a file format change.
Constructs like \hspace{\mylengthvariable} that are not supported are
treated by the math parser as ERT as before.

For reasons I don't know the context menu does not work, but this is not so
important IMHO (since a left click opens the dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00
Enrico Forestieri
7d4ec3f944 Fix bug 5393
http://bugzilla.lyx.org/show_bug.cgi?id=5393


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27044 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 00:48:06 +00:00
Jürgen Spitzmüller
30a777e8a8 honour requirements for dots (bug 5376).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 14:15:56 +00:00
Richard Heck
e16468d72e Revert 26348 and 26350. Wrong solution.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26353 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 14:36:38 +00:00
Richard Heck
e78347a673 Restore toggling behavior to math bold.
I've left mathbf in the symbols file. We should perhaps restore it as something that can be toggled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 17:50:37 +00:00
Enrico Forestieri
4fa59cbd9b Fix bug 4320
http://bugzilla.lyx.org/show_bug.cgi?id=4320


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25367 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 05:51:15 +00:00
Jürgen Spitzmüller
a299b2ca2f * lib/symbols:
- \implies requires amsmath (bug 4561).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23061 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 07:14:05 +00:00
Enrico Forestieri
c2f54cd891 Add the esint font to the private fonts.
The \dotsint glyph is remapped to an unsed code point in the
font such that to maintain compatibility with the TeX font
and convince Qt4 to show the glyph.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20786 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-06 15:30:29 +00:00
Uwe Stöhr
7cb5868e03 fix bug 1942: http://bugzilla.lyx.org/show_bug.cgi?id=1942
- we don't require wasysym any more. Either esint or amsmath is used, depending if esint is installed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18857 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-22 21:25:41 +00:00
Georg Baum
2db7521b70 Add support for the esint package
* src/LaTeXFeatures.C
	(LaTeXFeatures::getPackages): handle esint and wasysym

	* src/mathed/MathMacroTable.[Ch]
	(requires_): New member: tell the feature this macro requires
	(MacroTable::insert): take new requires arg

	* src/mathed/MathMacroTemplate.C
	(MathMacroTemplate::asMacroData): adjust to change above

	* src/mathed/MathSupport.C
	(fontinfos): add esint10 font

	* src/mathed/InsetMathHull.C
	(InsetMathHull::doDispatch): AMS_ON -> package_on

	* src/mathed/MathMacroTable.h

	* src/mathed/MathFactory.C
	(initSymbols): read and store requires field for symbols

	* src/mathed/InsetMathSymbol.C
	(InsetMathSymbol::metrics): handle esint
	(InsetMathSymbol::takesLimits): ditto

	* src/buffer.C
	(LYX_FORMAT): update format
	(Buffer::validate): handle esint, AMS_ON -> package_on

	* src/bufferparams.C:
	(AMSTranslator): Rename to PackageTranslator
	(BufferParams::readToken): Read \use_esint
	(BufferParams::writeFile): Write \use_esint

	* src/frontends/qt4/QDocumentDialog.C: handle esint

	* src/frontends/qt4/ui/MathsUi.ui : add esint checkboxes

	* src/frontends/qt4/GuiFontLoader.C
	(symbol_fonts: Add esint10 font
	(symbolFamily): handle esint10 font
	(isChosenFont): Add comment

	* src/frontends/controllers/ControlMath.C
	(latex_varsz): Add new integral symbols

	* src/support/fontutils.C
	(win_fonts_truetype): Add esint10 font

	* src/bufferparams.h
	(enum AMS): rename to enum Package
	(use_esint): new parameter

	* src/lyxfont.[Ch]: Add esint font

	* lib/symbols: Add new integral symbols

	* lib/lyx2lyx/LyX.py
	(format_relation): Update format

	* lib/lyx2lyx/lyx_1_5.py: handle new format

	* lib/chkconfig.ltx: Test esint package

	* lib/images/math/oiintop.xpm
	* lib/images/math/sqintop.xpm
	* lib/images/math/sqint.xpm
	* lib/images/math/ointctrclockwiseop.xpm
	* lib/images/math/ointctrclockwise.xpm
	* lib/images/math/iiintop.xpm
	* lib/images/math/iintop.xpm
	* lib/images/math/sqiint.xpm
	* lib/images/math/iiint.xpm
	* lib/images/math/ointclockwiseop.xpm
	* lib/images/math/oiint.xpm
	* lib/images/math/dotsintop.xpm
	* lib/images/math/sqiintop.xpm
	* lib/images/math/ointclockwise.xpm
	* lib/images/math/iiiintop.xpm
	* lib/images/math/dotsint.xpm
	* lib/images/math/iiiint.xpm
	* lib/images/math/iint.xpm: new icons

	* lib/doc/LaTeXConfig.lyx.in: Add docs for esint package

	* lib/doc/UserGuide.lyx: Add short documentation of integral symbols

	* lib/Makefile.am: Add new files

	* development/scons/scons_manifest.py: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15907 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 17:35:18 +00:00
André Pönitz
21e8d10d97 convert symbols file to UTF8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15471 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-22 11:48:21 +00:00
Georg Baum
368f6a53a8 Support lgathered and rgathered math environments
* src/mathed/InsetMathSplit.C
	(InsetMathSplit::validate): Only require amsmath for AMS stuff

	* src/mathed/MathFactory.C
	(createInsetMath): create InsetMathSplit if the latexkey is "split"

	* src/mathed/MathParser.C
	(Parser::parse1): remove "gathered" and "aligned", since these are
	now handled via lib/symbols
	(Parser::parse1): create InsetMathSplit if the latexkey is "split"

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15224 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-03 19:45:43 +00:00
Georg Baum
254b3cf67c 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/trunk@14225 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-26 15:01:35 +00:00
Georg Baum
2bbe7e5b89 Make MathBigInset working
* src/cursor.C
        (LCursor::plainInsert): combine the previous math atom with the new
        one to a MathBigInset if possible

        * src/mathed/math_biginset.[Ch]
        (MathBigInset::name): implement
        (MathBigInset::isBigInsetDelim): new, test whether a given token is
        a valid MathBigInset delimiter

        * src/mathed/math_biginset.C
        (MathBigInset::size): handle Big, Bigg and Biggg
        (MathBigInset::increase): ditto
        (MathBigInset::draw): fix deco drawing
        (MathBigInset::write): append space if necessary

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

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

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

        * src/mathed/math_nestinset.C
        (MathNestInset::interpret): combine the previous math atom with the
        new character to a MathBigInset if possible

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

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

        * lib/symbols: add MathBigInset symbols


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13700 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-20 09:55:45 +00:00
Georg Baum
fad5cd6700 fix bug 2234
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13399 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 15:05:47 +00:00
Georg Baum
9ba33772a8 fix bug 2361
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13369 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-13 17:56:32 +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