Enrico Forestieri
7923d0b90e
Correct logic: single characters must also be parsed when quiet == false.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26987 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 00:18:29 +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
Uwe Stöhr
02d28d981c
mathparser_flags.h: follow our naming convention part 2/2
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 12:25:03 +00:00
Uwe Stöhr
8cacb191aa
mathparser_flags.h: follow our naming convention part 1/2
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26936 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 12:23:59 +00:00
Enrico Forestieri
6bd593d8b3
When pasting into mathed, take into account the current mode.
...
For example, this allows to paste something like $x$ to a textmode
inset and get the expected result. If $x$ is pasted in mathmode,
it is pasted verbatim, such that no compile errors can arise.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26935 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 09:06:27 +00:00
Enrico Forestieri
02ebfa000b
Fix bug 3397
...
http://bugzilla.lyx.org/show_bug.cgi?id=3397
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-17 21:40:11 +00:00
Stefan Schimanski
af9206b392
* Call metrics of the parameters with the correct font in MathMacros, for example
...
if they are in an index and should be drawn smaller.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-16 21:27:43 +00:00
Pavel Sanda
792ece8130
Fix whitespaces so the diff between branches is not so huge.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 11:25:37 +00:00
Stefan Schimanski
c874e95030
* Be more conservative about leaving out parenthesis by checking for < 0x80.
...
This fixes lyxmathsym characters as macro arguments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-07 16:24:07 +00:00
Enrico Forestieri
f505227f6e
Smash remaining drawbacks for bug 2315
...
http://bugzilla.lyx.org/show_bug.cgi?id=2315
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 22:49:30 +00:00
Enrico Forestieri
5ca3be4d67
In mathmode, treat nonascii chars with diacritical marks as an input method
...
for entering math accents, such that an umlauted A is translated as \ddot{A},
for example.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26577 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 15:53:15 +00:00
Enrico Forestieri
b5dcdbc960
When in mathmode, always use the mathcommand replacement from the
...
unicodesymbols file. Also take into account that a unicode symbol
may appear in both mathmode and textmode and thus both the mathmode
and textmode features may be required. As a side effect, the problem
that the \lyxmathsym definition is added to the preamble even when
a unicode symbol appears only in textmode is solved.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 18:38:25 +00:00
André Pönitz
4c7fdddd74
streamlining setter syntax. using mutable references seems a bit
...
outlandish compared to the rest of LyX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 21:27:41 +00:00
Jean-Marc Lasgouttes
b23bdfa00b
use Length::inPixel and not Length::inBP to get screen lengths
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 13:59:35 +00:00
Jean-Marc Lasgouttes
00c0933502
bad behaviour of recordUndoInset has been fixed in http://www.lyx.org/trac/changeset/14791
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26431 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 15:45:47 +00:00
Enrico Forestieri
3e55de70dd
Introduce LFUN_FONT_BOLDSYMBOL, performing the same as LFUN_FONT_BOLD
...
except when in math mode, where \boldsymbol is used instead of \mathbf.
Restore the previous binding of Ctrl-B and make sure that LFUN_FONT_BOLDSYMBOL,
now bound to Ctrl-Alt-B, can be toggled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:49:11 +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
e3b15701a7
Forgot this part.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26350 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 18:46: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
Pavel Sanda
c1173eb11c
Coding style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:18:33 +00:00
Stefan Schimanski
849b405c73
* typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26314 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 15:10:10 +00:00
Enrico Forestieri
8fde2a6fa7
Implement the EnsureMath inset in mathed for nesting math mode in text mode.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26304 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 22:24:07 +00:00
Enrico Forestieri
105e0dfe29
Add FIXME
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26294 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 19:07:54 +00:00
Enrico Forestieri
8d6b5113ec
We may have buffers with different encodings, that, in turn, may also
...
be different from the language default ones.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26290 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 08:17:00 +00:00
Enrico Forestieri
1c362c80b2
Specify that we are in math mode. This avoids unnecessary \ensuremath
...
commands when using math in text mode (such as in $\text{$\phi$}$, where
\phi would be enclosed in \ensuremath{} as it is inside \text{}).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:04:05 +00:00
Enrico Forestieri
ad91dd139c
Take into account the latex encoding when generating math preview snippets.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:02:08 +00:00
André Pönitz
68c1719929
fix off-by-two drawing error
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26232 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 21:16:09 +00:00
Jean-Marc Lasgouttes
97e6476feb
Fix bug 3407: Undo with text-in-mathmode
...
http://bugzilla.lyx.org/show_bug.cgi?id=3407
* InsetMathNest.cpp (doDispatch/LFUN_MATH_MODE): handle undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26173 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 15:50:42 +00:00
Stefan Schimanski
ae410deed1
* \xymatrix added to completion (fixing bug 5123)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26082 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-06 18:44:35 +00:00
Pavel Sanda
97812e8718
Clean debug logs before rc1.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26033 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-02 14:11:04 +00:00
Enrico Forestieri
dac70247f0
Fix bug 5041
...
http://bugzilla.lyx.org/show_bug.cgi?id=5041
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26002 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-30 15:07:06 +00:00
Uwe Stöhr
c08f8291f9
- InsetMathAMSArray.cpp: code cosmetic
...
- Math.lyx: leftovers from bug 5090
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-27 11:32:26 +00:00
Uwe Stöhr
5aece0832c
- InsetMathAMSArray.cpp: load the amscd package when the command \CD was used, fixes bug 5090
...
- LaTeXFeatures.cpp: add amscd
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25909 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-27 00:47:28 +00:00
Uwe Stöhr
180448cf14
InsetMathHull.cpp: whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25908 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-27 00:45:19 +00:00
Jürgen Spitzmüller
a2a3d8337f
* src/mathed/InsetMathHull.cpp:
...
- update labels cache after a label has been erased (bug 4929).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25757 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-21 08:48:16 +00:00
Enrico Forestieri
0e834b9342
When producing latex output, check whether a character entered in mathed
...
can be encoded in the current latex encoding before resorting to the
unicodesymbols file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25725 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 01:50:54 +00:00
Enrico Forestieri
aabd9d03bb
Fix bug 4992
...
http://bugzilla.lyx.org/show_bug.cgi?id=4992
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 23:29:48 +00:00
Enrico Forestieri
2477901f07
Fix color of math macros
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25403 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-28 22:49:40 +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
Enrico Forestieri
419b5a1551
Fix the new incarnation of bug 4687
...
http://bugzilla.lyx.org/show_bug.cgi?id=4687
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25355 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-22 22:32:48 +00:00
Enrico Forestieri
ab9a074f20
Trust Andre'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25319 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 09:17:57 +00:00
Enrico Forestieri
c691839abe
Fix bug 4687
...
http://bugzilla.lyx.org/show_bug.cgi?id=4687
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25318 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 09:16:05 +00:00
Enrico Forestieri
e224ef029b
Implement the suggestion by Andre'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 11:10:43 +00:00
Enrico Forestieri
01398327df
Ops
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25285 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 20:39:40 +00:00
Enrico Forestieri
4781794e4e
The mode changing math insets already provide the needed info, so
...
this is definitely better.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25284 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 20:25:44 +00:00
Enrico Forestieri
aace605564
Avoid 11 from_ascii calls
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25282 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 18:52:54 +00:00
Enrico Forestieri
31713932b2
Use a helper method in order to avoid code repetition.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25273 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 14:32:51 +00:00
Enrico Forestieri
90837aaf6e
Fix bug 1527
...
http://bugzilla.lyx.org/show_bug.cgi?id=1527
* src/mathed/*.cpp:
- Track mode (math or text) when outputting latex code and
properly wrap commands that are in the wrong mode with
either \ensuremath or \lyxmathsym.
* src/mathed/MathParser.cpp:
- Parse \ensuremath and \lyxmathsym, such that exported latex
produces the same result when imported back.
- Replace latex commands with corresponding unicode symbols.
* src/Encoding.cpp:
- Implement Encodings::fromLaTeXCommand() for converting either
a single or a sequence of latex commands to unicode symbols.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25270 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 01:21:17 +00:00
Pavel Sanda
8ab36ddef7
Let LFUN_MATH_SPACE use various spaces we support.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 22:12:40 +00:00
Pavel Sanda
cb5ce8348b
Ressurect LFUN_MATH_SIZE, set toolbars accordingly.
...
http://thread.gmane.org/gmane.editors.lyx.devel/108469
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-14 18:38:14 +00:00