Juergen Spitzmueller
378c7e8edb
Allow for auto-inserting multiple arguments
2019-06-02 09:26:32 +02:00
Juergen Spitzmueller
532765c03a
Enable AutoInsert with post arguments
2019-06-02 09:25:56 +02:00
Kornel Benko
58804aa399
Omit floating point exception
2019-05-31 12:55:12 +02:00
Juergen Spitzmueller
fe589d5622
Fix toprule with booktabs/longtable and captions
2019-05-31 10:48:00 +02:00
Richard Kimberly Heck
91383e1fec
Forgot this part
2019-05-30 20:39:43 -04:00
Richard Kimberly Heck
2e433654c7
Fix bug #11588 .
...
Check for the local file before calling kpsewhich.
2019-05-30 20:32:35 -04:00
Richard Kimberly Heck
0d54d3b762
Allow click on the 'spinner' to cancel export.
2019-05-27 23:21:07 -04:00
Richard Kimberly Heck
c4658f046f
Fix crash reported by Kornel.
...
See https://marc.info/?l=lyx-devel&m=155879185229073&w=2 .
The problem is that, after saving the document and reloading, the
TOC is corrupted, more or less, when we run through updateBuffer.
So we reset it first.
2019-05-27 22:35:02 -04:00
Enrico Forestieri
b3db2325ed
Prefer mathmode commands over textmode ones
...
Translating → to \rightarrow in a \ce inset produces the right
glyph. Instead, translating it to \textrightarrow produces a
different glyph (β).
2019-05-26 13:06:44 +02:00
Enrico Forestieri
c8f056417f
Use ranges
2019-05-26 12:31:02 +02:00
Enrico Forestieri
15f4fa452d
Supplement the fix for bug #11586
...
The mhchem \ce inset is a text mode environment but allows entering
spaces and mathmode commands. However, even if it doesn't allow unicode
symbols, LyX allows entering them (by copy/paste, for example), causing
latex errors. As a unicode symbol may have a proper latex representation
from the unicodesymbols file, use it instead of the bare symbol. Here, we
don't care about the mode because both text and math mode should be allowed.
For example, the ⟶ symbol is not recognized but its latex representation
(\longrightarrow) is fine. Of course, there may be symbols that are
not recognized anyway, but this is better because they cause explicit
errors from mhchem instead of cryptic iconv errors in case they cannot
be represented in the document encoding.
2019-05-26 09:56:34 +02:00
Enrico Forestieri
bda3b799c5
Partial fix for bug #11586
...
Do not replace a latex command with the corresponding symbol
in the unicodesymbols file unless it can be encoded in the
document encoding.
2019-05-26 09:27:46 +02:00
Günter Milde
c83765163f
CJK package is never used with non-TeX fonts.
...
Prepare for languages that use CJK with TeX fonts and Polyglossia
with non-TeX fonts.
Korean is already supported by Polyglossia,
LyX support will follow (file version change).
2019-05-26 01:45:35 +02:00
Günter Milde
45c5b39692
Adapt lyx2lyx to the lineno support fix in [88f471899/lyxgit].
2019-05-25 15:32:24 +02:00
Günter Milde
d1b89c59d4
Remove non-required ternary conditional.
...
In a branch only entered when not using Xe- or LuaTeX,
we don't need to care about polyglossia.
2019-05-25 15:32:24 +02:00
Jean-Marc Lasgouttes
4da19ef833
Cell in delimiter inset should not be tight
...
Fixes bug #11337 .
2019-05-25 14:11:39 +02:00
Kornel Benko
ef6ddfc788
Amend 7f125f62d2, Introduce doc preference for line numbering
...
Correct expected lyx files created by tex2lyx.
2019-05-24 18:17:50 +02:00
Juergen Spitzmueller
1cafea7cf7
Read line edit label
...
Otherwise it is not clear what this means.
2019-05-24 17:51:42 +02:00
Juergen Spitzmueller
b6cb557c7d
size tweak
2019-05-24 17:39:22 +02:00
Pavel Sanda
bea2756472
lineno: dump lineno buffer token if false/empty as well.
...
Oversmarted myself. Wanted to save .lyx header from overbloating but
dialog's UI depends on those tokens when disabling the option in UI.
2019-05-24 15:50:10 +02:00
Pavel Sanda
88f4718996
lineno: convert ui GB to CB per Juergen's request
2019-05-24 15:40:09 +02:00
Juergen Spitzmueller
03d9fe3a80
Some grammar and casing fixes and tooltip improvements
2019-05-24 10:59:00 +02:00
Pavel Sanda
7f125f62d2
Introduce doc preference for line numbering.
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg208781.html
2019-05-23 15:13:27 +02:00
Pavel Sanda
e3707f1331
Resave NumberingUi.ui in qt5 designer
2019-05-23 15:11:39 +02:00
Jean-Marc Lasgouttes
621c908f85
Always paint text decoration when painting inset.
...
Fixes bug #11402 .
2019-05-23 11:30:35 +02:00
Jean-Marc Lasgouttes
7cc4ceb89c
Fixup da2696cc: do not clear useful information from row
...
Ensure before calling breakRow that the row is empty.
Remove Row::clear(), which has unnatural semantics.
Fixes bug #11396 .
2019-05-23 10:26:08 +02:00
Richard Kimberly Heck
596b3c4522
Include all parent branches in the menu.
...
Previously, we only included branches from the master document. This
includes those from the parent, grandparent, etc, and does so in a way
that won't crash on recursive includes.
2019-05-22 22:00:31 -04:00
Richard Kimberly Heck
1842a11b3b
Change how branches are displayed on the menus.
...
Show this document's branches first in the menu, and then show the
master document's branches on a sub-menu.
2019-05-22 21:41:22 -04:00
Richard Kimberly Heck
24fefaf23d
Use ranges.
2019-05-22 21:41:22 -04:00
Richard Kimberly Heck
5fa493aa4a
Re-organize and comment code a bit.
2019-05-22 20:58:00 -04:00
Jean-Marc Lasgouttes
da2696cc63
Initialize row preperly on clear()
...
It is not enough to get rid of the row elements, obviously. In
particular, changebar_ may never get reset.
Fixes bug #11396 .
2019-05-22 11:56:14 +02:00
Juergen Spitzmueller
957e8669c7
Add hint to warning.
2019-05-21 13:26:57 +02:00
Juergen Spitzmueller
c77be6146b
Fix warning message
2019-05-21 13:06:37 +02:00
Juergen Spitzmueller
ebc2b1295a
Check character encodability with pass-thru in command insets
...
Fixes : #11584
2019-05-21 12:59:18 +02:00
Richard Kimberly Heck
714241c313
Inform user of the new name of the emergency file.
2019-05-20 21:23:40 -04:00
Enrico Forestieri
2424851b09
Fix compilation
...
This amends [b88a3747/lyxgit].
2019-05-19 16:34:57 +02:00
Enrico Forestieri
b88a37473f
Remove redundant condition
...
The removed condition is always true.
This amends [61efbff5/lyxgit].
2019-05-19 12:33:46 +02:00
Enrico Forestieri
61efbff545
Fix bug #10498
...
Use the selection as the argument of a macro also when the
macro has only optional arguments.
2019-05-18 16:06:33 +02:00
Enrico Forestieri
1a286c7910
Fix bug #10499
...
The array environment has to be explicitly parsed in math mode.
2019-05-18 11:36:07 +02:00
Günter Milde
65ec404eb3
Format incremented to 574: Ruby inset, fixes for Japanese.
...
New auxiliary functions for lyx2lyx:
del_module(), append_local_layout(), del_local_layout()
2019-05-16 13:48:07 +02:00
Jean-Marc Lasgouttes
26c2811cc4
Some Asian langagues allow to wrap text at any position
...
This is hardcoded for now for simplicity and to allow backporting to
2.3.
The behavior is unchanged for all languages but Chinese, Japanese or
Korean.
Fixes part of bug #10299 .
2019-05-15 17:38:26 +02:00
Günter Milde
6aabcaf856
Fix #11062 , new LaTeX feature "textschwa".
...
Following the suggestion in the Babel-Azerbaijani documentation,
we use the glyphs from the Cyrillic fonts for the Latin
text character. This fits better than IPA fonts (assuming there are matching
Latin and Cyrillic fonts specified) and also provides bold etc.
2019-05-14 20:08:39 +02:00
Günter Milde
06ae6e118c
Fix small typo.
2019-05-14 16:39:35 +02:00
Günter Milde
177ae5a358
Add comment (fixme) about #8479 .
2019-05-14 15:31:41 +02:00
Juergen Spitzmueller
3da25187a9
Prevent assert due to some odd role in older qt versions.
2019-05-14 14:05:46 +02:00
Jean-Marc Lasgouttes
6df593049c
Revert "Try to compute row height like it should be done"
...
This is not done right at all. The best is to revert for now and
think about how to do it properly.
This reverts commit 66a3d64346332e47252b37dbc0f80158738987dc.
2019-05-13 10:47:47 +02:00
Richard Kimberly Heck
051a1a56a9
Revert "GMO for BG"
...
This reverts commit 5b84f11f80d1ec160dbfa312bc2358cfd7abec72.
2019-05-12 23:30:49 -04:00
Richard Kimberly Heck
5b84f11f80
GMO for BG
2019-05-12 23:30:13 -04:00
Richard Kimberly Heck
15b90e4cc1
Rename for clarity.
2019-05-12 23:16:25 -04:00
Juergen Spitzmueller
682eabbe8e
GuiDocument: Further encoding GUI improvement
...
Move the odd "(no inputenc)" option out of the encoding list.
2019-05-12 09:10:24 +02:00