Scott Kostyshak
8d2b121ef5
Do not show master's errors if compiling child
...
If a master document is compiled and has errors, and then a child is
compiled without error, the errors from the master compilation were
shown.
The setup of the relevant code is the following:
processingThreadFinished() calls errors(). errors() makes the
assumption that if it is called, there must have been an error
somewhere.
The logic of the setup is the following:
processingThreadFinished() knows whether there was an error on
the most recent preview/export, although it doesn't know whether
the error is from master or child (i.e. does not know whether the
user was compiling the child, or whether master-buffer-view was
called). Inside error(), if there is no error in the child, it is
assumed the error is from master.
For the above logic to work, errors() should only be called if there
was an error.
This commit fixes #11106 and preserves the fix to #7330 .
2018-04-08 09:51:01 -04:00
Juergen Spitzmueller
2ecc3b09c6
Set correct path to (biblatex) bibliography databases that are entered relative to child documents.
...
Fixes : #11105
2018-04-07 22:09:06 +02:00
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
Juergen Spitzmueller
3e7aebe966
tex2lyx/TODO: small tweak.
2018-03-09 13:57:29 +01:00
Juergen Spitzmueller
9e5ab04a6c
This works already.
2018-03-09 13:43:12 +01:00
Juergen Spitzmueller
af6933c06f
tex2lyx: chapterbib support
2018-03-09 13:30:52 +01:00
Juergen Spitzmueller
cba38881d6
tex2lyx: honor grouping in optional arguments.
...
E.g., \cite[{a literal ] character}]{key}
2018-03-09 13:14:13 +01:00
Juergen Spitzmueller
0513622fd0
Fix copy and paste error in 6659304f7f
2018-03-09 12:29:07 +01:00
Juergen Spitzmueller
0bc192bfff
Revert "Revert "tex2lyx: towards proper support of "literal"/"latexified" inset commands""
...
I did not intend to revert this. Sorry for the noise.
This reverts commit 74d9277909
.
2018-03-09 12:18:49 +01:00
Juergen Spitzmueller
599b1222f7
Reset buffer language only if we have something to reset.
...
Fixes : #11063
2018-03-09 12:15:19 +01:00
Juergen Spitzmueller
74d9277909
Revert "tex2lyx: towards proper support of "literal"/"latexified" inset commands"
...
This reverts commit 6659304f7f
.
2018-03-09 11:32:09 +01:00
Uwe Stöhr
1174279967
tex2lyx: parse \xymatrix
...
LyX's \xymatrix support relies on math therefore put it into math and parse its content
fixes bug #10638
2018-03-09 04:53:33 +01:00
Juergen Spitzmueller
6659304f7f
tex2lyx: towards proper support of "literal"/"latexified" inset commands
...
We now report whether the attempt to recode the macros to glyphs
succeeded. If yes, we set "literate" to false, if not to true.
Also, do not attempt to recode for non-latexifying fields.
Fixes : #9563
2018-03-08 15:05:01 +01:00
Jean-Marc Lasgouttes
e90b6f5a3b
Add cell number to current state in devel mode
...
This value is added when inside a texted inset with several cells
(aka a tabular inset).
2018-03-07 11:54:40 +01:00
Jean-Marc Lasgouttes
dc2ad44562
Make pmprof use the correct unit in report
2018-03-07 11:54:40 +01:00
Juergen Spitzmueller
e43ba7cf46
Braces need to be escaped as well on LATEXIFY
...
part of #9563
2018-03-06 18:17:01 +01:00
Juergen Spitzmueller
7a22ce7c09
tex2lyx: support alignment pseudo-environments.
...
Fixes : #7857
2018-03-06 17:54:32 +01:00
Juergen Spitzmueller
27584f5f70
Fix local polyglossia switch for Arabic
...
We need to lowercase the language again (it's \begin{Arabic},
but \textarabic)
Fixes : #11057 .
2018-03-06 15:31:43 +01:00
Juergen Spitzmueller
1dcb2a0976
tex2lyx: fix subfloat import
...
Fixes : #10385
2018-03-06 10:35:55 +01:00
Uwe Stöhr
a30972a39c
tex2lyx/text.cpp: fix a typo
2018-03-05 17:37:50 +01:00
Juergen Spitzmueller
cbf2a329c9
Do not force singlebyte encoding for listings with XeTeX/LuaTeX.
...
Fixes : #11056
2018-03-05 15:39:27 +01:00
Juergen Spitzmueller
4bc379ea67
Small update of TODO
2018-03-05 14:57:16 +01:00
Juergen Spitzmueller
b94bb37e53
parse_text (tex2lyx): get rid of the monstrous if-then-else clause
...
Rather than that, continue in the loop if a condition is met.
This fixes tex2lyx for MINGW, which has a cluase-nesting threshold.
Fixes : #9552
2018-03-05 09:08:14 +01:00
Juergen Spitzmueller
0915e81481
tex2lyx: support qualified citation lists (biblatex)
2018-03-04 20:12:27 +01:00
Juergen Spitzmueller
1a3dbbf07a
tex2lyx: refsection and bibbysection support (biblatex)
2018-03-04 17:29:59 +01:00
Juergen Spitzmueller
f22213a04f
tex2lyx: support biblatex
...
(qualified citation lists and multibib not yet supported)
2018-03-04 16:46:31 +01:00
Juergen Spitzmueller
476401a76f
tex2lyx: consider options passed via \PassOptionsToPackage
2018-03-04 16:45:37 +01:00
Juergen Spitzmueller
ccb9ae9670
tex2lyx: import straight quotation marks as ERT
...
This assures that they are output as straight quotations marks (e.g.,
babel shorthands).
Fixes : #75 [sic!]
2018-03-04 12:08:08 +01:00
Pavel Sanda
9cdae51688
Allow reload if buffer is externally modified.
...
Follow-up of 2df82c4a44
.
2018-03-02 20:48:08 +01:00
Pavel Sanda
3cb271ceda
Filter in citation dialog is not respected when reloading databaze.
2018-03-02 00:50:32 +01:00
Juergen Spitzmueller
21b347a2f8
Fix RTL tabular output with bidi package (i.e., polyglossia)
...
Fixes : #9686
2018-02-27 19:03:42 +01:00
Richard Heck
94222e6170
Re-amend ca4426e5
.
2018-02-26 16:18:49 -05:00
Juergen Spitzmueller
00d4144352
No manual intervention needed for polyglossia (bidi) and RTL numbers.
...
See https://tex.stackexchange.com/a/256837/19291
2018-02-26 17:06:31 +01:00
Richard Heck
ef5d741ba5
Amend ca4426e5
.
...
Thanks for Patrick De Visschere for noticing.
2018-02-25 17:23:46 -05:00
Juergen Spitzmueller
5ddd377a0a
Take actual font height (ascent, descent) into account when drawing placeholder box for graphics
...
Fixes : #11048
2018-02-25 17:21:01 +01:00
Pavel Sanda
2df82c4a44
We don't want external change to automatically marked the buffer dirty.
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203995.html
2018-02-25 14:53:48 +01:00
Enrico Forestieri
7e9c4d4091
Fix bug #10927
2018-02-24 12:48:02 +01:00
Richard Heck
ab6b4679e6
Fix bug #10918 .
2018-02-24 01:06:36 -05:00
Richard Heck
77a7df1003
Fix bug #10890 .
2018-02-24 01:04:20 -05:00
Richard Heck
1a74a654e8
Fix bug #10879 .
2018-02-24 01:01:34 -05:00
Richard Heck
f22954b89d
Fix bug #10939 .
2018-02-24 00:49:31 -05:00
Richard Heck
2a78c1c662
Fix bug #10938 .
2018-02-24 00:44:26 -05:00
Richard Heck
8281a81b10
Fix bug #10937 .
2018-02-24 00:40:03 -05:00
Richard Heck
12db09aac2
Fix bug #10936 .
2018-02-24 00:36:55 -05:00
Richard Heck
c86184ce3d
Fix bug #10934 .
2018-02-24 00:35:27 -05:00
Richard Heck
b98cb77364
Fix bug #10933 .
2018-02-24 00:32:14 -05:00
Richard Heck
c0e79898c3
Fix bug #10932 .
2018-02-24 00:30:24 -05:00
Richard Heck
6d565300be
Fix bug #10930 .
2018-02-24 00:28:37 -05:00
Richard Heck
6ef17af2b7
Fix bug #10929 .
2018-02-24 00:25:56 -05:00
Richard Heck
92742f63bc
Fix bug #10926 , and some for loops.
2018-02-24 00:20:03 -05:00
Richard Heck
68b959ff06
Fix bug #10924 .
2018-02-24 00:08:28 -05:00