Commit Graph

107 Commits

Author SHA1 Message Date
Enrico Forestieri
0fc9b08e4d Fix output of \lightning in math mode.
The \lightning symbol is text mode only. Hence, for using it in
mathed, it must be inserted in a text mode environment such as
\mbox, \text, etc. However, as it is not marked as textmode,
LyX "helpfully" encloses it in \ensuremath everytime one tries
to put it in a text mode environment, thus defying the countermeasure.
By declaring it textmode only, LyX stops doing that and thus it can be
correctly output by simply selecting it and hitting Ctrl-M.
2015-04-12 00:47:18 +02:00
Georg Baum
24d011117f Remove unsupported macros from autocompletion
We have some math macros that exist only because LyX can display them easily,
but which require user preamble code. These commands should not appear in
autocompletion, they are only there to make the formulas of users who actually
need thgese symbols and know what to put into the preamble more beautiful.
2015-03-10 20:53:56 +01:00
Enrico Forestieri
f496ec373b Solve the "soft-hyphen" (0x00ad) symbol problem.
After the str-metrics merge, the kludge for displaying symbols whose
code point corresponds to a soft-hyphen was not working anymore.
The solution is replicating the offending glyphs with index 0x00ad
at a different index. They were replicated at 0x00ac, whose glyph
was missing in all affected fonts.

However, this would not work by alone because, if a system font with
same family name exists, it would be picked up instead of the right one
(at least on non-Windows platforms). For this reason, the style of the
fonts has been changed from "Regular" to "Lyx", so that we can discriminate
the right font. However, this requires using at least Qt 4.8. If an
older Qt is used *and* a system font with same family name is already
available, the affected glyphs will all turn out on screen as the
"logical not" symbol.

I have also set the executable flag on the font files, because on Windows
they are loaded only in this case.

This solves #9229.
2015-01-21 14:12:42 +01:00
Georg Baum
cc87f81002 Fix html export of \ne (second part of bug #9372)
The fix consists of two parts: The needed infrastructure to assign HTML
entities to global math macros, and the actual fix for \ne and \neq.
2014-12-29 21:13:42 +01:00
Georg Baum
1be6f59612 Fix HTML output of \gg and \ll
This is a part of bug #9372. The remaining part (\ne) is not easy to fix,
since \ne is a predefined macro internally, so the HTML output is done for
the expanded macro, and we have no machinery to assign a HTML output to a
complete macro.
2014-12-28 18:54:19 +01:00
Uwe Stöhr
e4fb40b284 symbols: support the AMS commands \l(r)v(V)ert
- fixes bug #3538
2014-11-16 23:09:28 +01:00
Georg Baum
c1ac09e11f Fix bug #7954 (now really)
Thanks to maciejr we know now what the remaining problem was with bug 7954:
My unicode symbol fallback works fine, the problem was that a font named
"Symbol" is available on OS X, but it does not use the font-specific encoding
we expect: Almost all glyphs are at their unicode code point.
Therefore the bug is fixed by re-enabling the unicode workaround and blocking
the Symbol font on OS X.
2014-06-07 10:54:17 +02:00
Georg Baum
8b18bbd97e Add missing symbols and dependencies
Some wasysym and amsmath symbols were missing, and some amssymb dependencies
as well.
2013-01-10 21:22:55 +01:00
Georg Baum
45052f56ab Handle text-only wasy symbols correctly.
Some macros defined by wasysym.sty work only in text mode: They either
produce an error in math mode, or wrong output. These symbols are now marked
as text symbols, so that no \ensuremath is created for LaTeX export if they
appear inside \text{}, and the correct images are created.
2013-01-10 21:22:54 +01:00
Georg Baum
731c1f9ac4 Fix commandline export of \implies.
See the added comment in lib/symbols for details.
2013-01-08 21:51:09 +01:00
Georg Baum
13b288bc5e Remove duplicate symbols
There were found with -dbg mathed ans entering a math inset.
I kept the AMS versions, except leadsto, which is only an approximation in AMS.
hbar was simply defined twice with identical definitions.
2012-12-28 13:25:42 +01:00
Georg Baum
f96f9684ce Fix errors found by generate_symbols_images.py
llltr is a copy-paste error, the correct name is llless.
astrosun needs the wasysym package (the automatism does not kick in because
the font is cmsy, not wasy).
2012-12-16 14:44:49 +01:00
Georg Baum
f67cf6f4bb Add support for stmaryrd.sty (bug #8434)
The stmaryrd package adds support for lots of math symbols, using a font
designed to accompany the computer modern fonts. The changes in detail:

- Fix generate_symbols_list.py to work with stmaryrd.sty. It loooks like it
  was automatically translated from a perl version and never used.
- Generate the new symbols in lib/symbols using generate_symbols_list.py and
  add some manual adjustments
- Generate stmary10.ttf by a simple ttf export from stmary10.sfd with fontforge
- Add license info for stmary10.ttf
- Create a test file with all symbols from stmaryrd.sty. Actually it would be
  nice to have this for the other fonts as well.
- The mechanics: lyx2lyx, tex2lyx, font machinery etc.
2012-12-15 13:10:31 +01:00
Pavel Sanda
bdcf2b3f91 Add bugzilla comment from Georg to lib/symbols.
It is difficult to break through the undocumented format.
2012-12-02 16:46:49 +01:00
Georg Baum
6332326cf6 Load mathtools.sty automatically (bug #7949) and make lyx2lyx reversion
more robust.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40574 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-05 20:53:48 +00:00
Uwe Stöhr
cc4a7fe79d symbols: fix #7962, OK for branch too?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40551 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-31 15:42:42 +00:00
Georg Baum
b7fbcd0b30 Partial support for mathtools.sty (part of bug #7949)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40521 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-18 17:50:43 +00:00
Julien Rioux
72cface90f Update links to the bug tracker.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40445 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-08 20:19:10 +00:00
Georg Baum
6954c542fb Generalize the esintoramsmath requirement:
Now you can also require a|b|c, and if any of the features is already used,
no other one will be loaded. The first feature wins if none is already used.
This is required for a part of bug #7811.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 19:32:02 +00:00
Uwe Stöhr
f5a03ab601 InsetSpace support for
- \negmedspace and \negthickspace outside of math
- \enspace, \hspace*, \hspace*{\fill} and \hfill inside math
(fileformat change)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39557 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 14:07:30 +00:00
Uwe Stöhr
30de1c744e - UI support for the LaTeX-package undertilde, fileformat change, fixed the remaining part of bug #6622, Georg already implemented the non-UI support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39464 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-10 03:37:33 +00:00
Georg Baum
467bf135e9 Partial fox for bug #6622: Display \undertilde on screen correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38636 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 10:23:56 +00:00
Georg Baum
32f6c066cc Partial fox for bug #6622: Display \utilde on screen correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38633 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 10:06:33 +00:00
Enrico Forestieri
618dd35108 Fix bug #4606 (\varPhi and similar characters not known by the LyX GUI)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36348 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 19:42:36 +00:00
Richard Heck
01013c0785 Refstyle support. The user can now choose between prettyref and restyle
for formatted references. Fixes #2295, in so far as it makes it possible
to translate formatted references.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:36:53 +00:00
Uwe Stöhr
a2c6c06908 better support for the mathdots package:
technically this package is the same as esint, only for dots instead of integrals -> therefore we can and should handle it the same as esint

-> add "use automatically" checkbox
-> load mathdots if \iddots is inserted

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35251 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 23:34:54 +00:00
Enrico Forestieri
87f155767a Better fix for bug #6851.
The old-style font changing macros really inherit the mode, so we have
to account for this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35156 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 17:57:06 +00:00
Enrico Forestieri
61791114a1 Fix bug #6851: Wrong screen fonts with old style macros such as \bf and \rm.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35136 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 00:22:04 +00:00
Uwe Stöhr
72292b98a6 support for formal math script
- fileformat change
- fixes #2340

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 15:51:11 +00:00
Enrico Forestieri
e0a5cda787 Add GUI support for big delimiters variants without 'l', 'm' or 'r' endings.
They differ from their cousins only for the space left around them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34604 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-06 00:42:33 +00:00
Richard Heck
8b41e032b9 A few more symbols.
This seems to be about all I can do. If someone needs one we don't have,
then we can deal with that later.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32860 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 22:25:28 +00:00
Richard Heck
7a3720dfaf More symbols.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32859 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 21:29:05 +00:00
Richard Heck
e674f6bdc6 How about if we write a script to do some of this and stop doing it
manually? Done. Now back to manual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32857 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 19:27:45 +00:00
Richard Heck
4c1ada1a10 More entities for MathML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32856 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 19:18:08 +00:00
Richard Heck
33dfba918b More symbols.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32641 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 05:19:03 +00:00
Richard Heck
e1dffda9dc Math symbols.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32640 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 05:14:01 +00:00
Richard Heck
3bbc7623fc Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32639 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 04:26:27 +00:00
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