Jean-Marc Lasgouttes
503c7c1688
When inserting math inset, put cursor selection in the correct cell
...
The original use case for this bug is entering an overset inset when
there is a selection. The expected result was to have the selection
pasted in main text, but the result was to have it in the cell.
Insets already have idxFirst() that is able to set cursor to the
"entry" cell of an inset. This patch introduces firstIdx(), which is
the index of this cell and uses it in idxFirst() (idem for
lastIdx/idxLast).
As a consequence, several instances of idxFirst/idxLast can be removed.
Now for the real fix: the two places where the cell in which selection
is inserted seem to be:
* Cursor::macroModeClose
* Cursor::handleNest
These two methods are changed to insert material in the entry cell
instead of cell 0.
idxFirst/Last methods are added to InsetMathRoot and InsetMathStackrel
so that the natural entry point is the nucleus of those insets.
Finallly, a typo is fixed in InsetMathNest::edit() where enter_front
computation was incorrect.
2018-04-05 11:22:02 +02:00
Jean-Marc Lasgouttes
c5ca503d92
Makes caret height adapt to context in mathed.
...
Set current cursor font in MathData::metrics()
Also make sure that caret dimension in mathed is not larger than inset
height.
2018-04-04 15:11:13 +02:00
Juergen Spitzmueller
37404df686
Do not use \tablefootnote in minipages
...
Minipages provide their own working \footnote's
Should also go to 2.3.x.
2018-04-04 10:53:40 +02:00
Richard Heck
d9ebf6e2c7
Fix bug #11102 .
...
Ignore deleted material when generating a proposed label.
2018-04-03 18:39:28 -04:00
Pavel Sanda
1a4404944b
Upstreaming compilation patch needed for Gentoo.
2018-04-02 15:39:56 +02:00
Richard Heck
b4d885ac69
8-char tab stops are too big in the preamble editor.
2018-04-01 22:07:21 -04:00
Richard Heck
e666b5eced
Fix bug 11099.
...
Adds simple search/find functionality to preamble.
2018-04-01 22:07:16 -04:00
Scott Kostyshak
fc59688dbc
Give full pref path in doc for date-insert
...
Give intermediate steps to get to "Date format" in preferences.
This change is the result of the following discussion:
https://latex.org/forum/viewtopic.php?f=19&t=31333
2018-03-31 01:04:57 -04:00
Juergen Spitzmueller
1efef5542b
Adapt to new hunspell C++ ABI
...
Fixes : #10547
CMake support still missing.
2018-03-29 18:43:11 +02:00
Juergen Spitzmueller
a9a7f38488
Prevent that a full source preview of a child clears the master's bibfiles cache.
...
See #9158
2018-03-27 14:29:25 +02:00
Juergen Spitzmueller
346d31d38d
Fix use of default biblio_style
...
Fixes : #11088
2018-03-26 15:50:35 +02:00
Juergen Spitzmueller
6415d986ba
amend 1c623ffe8f
2018-03-22 23:37:19 +01:00
Juergen Spitzmueller
1c623ffe8f
Use separate BibInfo for child
...
This is used when the file is compiled standalone
Fixes : #11083
2018-03-22 15:52:23 +01:00
Richard Kimberly Heck
83b1ac3b55
Fix bug #11084 .
...
Allow unicode-insert to accept a sequence of codepoints.
2018-03-21 23:08:38 -04:00
Jean-Marc Lasgouttes
c2456ae609
Fix initialzation order in FuncRequest
...
Fixes bug #11080 .
2018-03-19 14:59:43 +01:00
Jean-Marc Lasgouttes
ae473b012a
Fix default spellchecker when only Enchant is available
...
This has been annoying me for ages.
2018-03-19 14:07:03 +01:00
Jean-Marc Lasgouttes
af795b80d8
Make it possible to select (not)native file dialogs at run time
...
Add a new LyXRC variable use_native_filedialog (true by default) that
allows to select the kind of FileDialog we want at runtime.
2018-03-19 11:17:33 +01:00
Juergen Spitzmueller
126e0c3dac
Open ExternalInset dialog on first tab for new insets
...
Fixes : #11081
2018-03-18 18:30:48 +01:00
Juergen Spitzmueller
3face5e119
Properly fix math packages table in Document Settings
...
Fixes : #10777
2018-03-18 12:11:26 +01:00
Juergen Spitzmueller
3366c49f80
strip braces from minted caption
2018-03-17 18:28:54 +01:00
Juergen Spitzmueller
bd77d8ad61
small fixup in tex2lyx lstlistings/inputminted support.
2018-03-17 18:26:47 +01:00
Juergen Spitzmueller
f3c5bcd2be
tex2lyx: complete minted support (inputminted)
...
Also fix some whitespace issues in minted inset import.
2018-03-17 16:45:05 +01:00
Juergen Spitzmueller
63b67fee83
tex2lyx: add beamer test file
2018-03-17 13:20:48 +01:00
Juergen Spitzmueller
d93076c128
tex2lyx: handle makebeamertitle
2018-03-17 12:39:13 +01:00
Juergen Spitzmueller
7e3a41bd15
tex2lyx: clear latexparam after use.
2018-03-17 12:38:53 +01:00
Juergen Spitzmueller
79728dcde9
tex2lyx: do not eat empty paragraphs if keepempty is true
...
Fixes : #11078
2018-03-17 12:19:50 +01:00
Juergen Spitzmueller
506ae2d2ea
tex2lyx: add support for LaTeXParam
...
Part of #11068
2018-03-16 12:58:01 +01:00
Juergen Spitzmueller
6a0f0d28a5
Add support for xcharter font.
...
File format change.
Patch by Yuriy Skalko.
2018-03-15 15:44:49 +01:00
Juergen Spitzmueller
c74e399981
tex2lyx: support for beamer text styles with overlays
...
E.g. things like \textbf<article>{foo} have to be imported as insets.
Part of #11068
2018-03-14 14:38:18 +01:00
Juergen Spitzmueller
e51265b5f3
tex2lyx: More work on beamer support
...
* Implement list item overlay support (\item<arg>)
* Implement itemcommand support (e.g., \overprint<arg>)
* Fix general list argument placement
Part of: #11068
2018-03-14 08:40:47 +01:00
Juergen Spitzmueller
4d30e00da8
amend ab4e9adf86
2018-03-13 16:01:13 +01:00
Juergen Spitzmueller
ab4e9adf86
Fix known_escaped_chars
2018-03-13 13:00:58 +01:00
Juergen Spitzmueller
949de66956
tex2lyx: towards beamer overlay argument support.
...
Implemented: Overlay and standard overlay arguments for commands
and environments.
Still missing:
* List item overlay
* itemcommand overlay (\overprint)
* overlay via LatexParam (e.g., Flex:ArticleMode)
Needs fixing:
* General list argument (\begin{itemize}[arg])
* nested content in a frame with no title (empty par)
2018-03-12 14:56:28 +01:00
Pavel Sanda
8725614e3f
Fix Undocked Outliner & multiple window crashes ( #11004 ).
...
There are more independent crashes occuring in this scenario and this
fix targets only one of them, in particular the one in which different
window's outliner sends outliner command to a wrong window. The fix
itself gives an option for lfun to know which window it belongs to.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203619.html
2018-03-12 14:34:24 +01:00
Pavel Sanda
e41c80e224
Paint \dot & \ddot more like a dot
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg204183.html
2018-03-12 13:41:46 +01:00
Juergen Spitzmueller
f30474a26c
update test
2018-03-11 19:50:22 +01:00
Juergen Spitzmueller
386d9953e8
amend 11e4a24e6e
2018-03-11 19:49:28 +01:00
Juergen Spitzmueller
8184f08f4a
tex2lyx: update quote handling
...
* Consider new quote styles
* Consider changed quote styles
* Try to be a bit smarter with ambiguous quotation marks
2018-03-11 18:05:50 +01:00
Juergen Spitzmueller
e5e6e16274
Update tex2lyx tests after cc6f2dae82
2018-03-11 18:05:50 +01:00
Juergen Spitzmueller
cc6f2dae82
tex2lyx: support tipa \t*{} macro.
2018-03-11 11:46:37 +01:00
Juergen Spitzmueller
a3836d9909
tex2lyx: support for URW Classico, MinionPro and the new Libertine fonts.
2018-03-11 11:12:42 +01:00
Uwe Stöhr
d3c51876a9
add support for the PT fonts
...
- fileformat change
- I also started https://wiki.lyx.org/LyX/NewInLyX24 for new features
2018-03-10 19:59:48 +01:00
Juergen Spitzmueller
b8adb0f933
Update tex2lyx tests.
2018-03-10 16:15:29 +01:00
Juergen Spitzmueller
ad5dbbfd65
tex2lyx/TODO: update
2018-03-10 15:48:49 +01:00
Juergen Spitzmueller
d325f79f5c
tex2lyx: add support for lstinputlisting
2018-03-10 15:40:51 +01:00
Juergen Spitzmueller
11e4a24e6e
tex2lyx: get rid of another large if-else if chain.
2018-03-10 15:00:30 +01:00
Juergen Spitzmueller
0f4c902705
tex2lyx: make nested CJK parsing slightly less dumb.
...
Fixes : #9562
2018-03-10 14:58:55 +01:00
Juergen Spitzmueller
b2ccdae228
Amend 15fd17d83f
2018-03-10 14:22:51 +01:00
Juergen Spitzmueller
15fd17d83f
tex2lyx: support for \includeonly
2018-03-09 17:27:55 +01:00
Juergen Spitzmueller
247e1a223d
tex2lyx: handle whitespace in table column declaration.
...
Fixes : #10804
2018-03-09 14:18:03 +01:00