Commit Graph

39474 Commits

Author SHA1 Message Date
Enrico Forestieri
12f67ef154 Allow pasting references to mathed
A reference can be directly inserted into mathed but cannot be pasted
because the pasted material is returned in plain text format. This patch
allows getting a string from the cut stack in a suitable format allowing
the math parser to actually create an InsetRef.

Fixes #11539

(cherry picked from commit 22ee249c3e)
2021-02-01 16:49:21 +01:00
Enrico Forestieri
706db1ff2e Change backspace behavior in align type equations
When hitting backspace in the first position of a cell in mathed,
if the cell is part of an array, the whole array is dissolved
and the sole cell content pasted in the containing environment.

But if the cell is part of an eqnarray or align math hull type, the
cursor is simply (and unexpectedly) taken out of the whole equation,
which is left unchanged.

This patch makes backspace equivalent to the cursor left key in those
cases, while leaving the behavior unchanged in all other ones.

Fixes #11678

(cherry picked from commit c79ec4114e)
2021-02-01 16:35:52 +01:00
Juergen Spitzmueller
f05f70f05b Do not output \maketitle in table cells if the table is in the title
(cherry picked from commit 6d05e78168)
2021-01-30 09:27:30 +01:00
Jean-Marc Lasgouttes
25b4920fef Fixup 20e1fe46: fix the StartupWMClass in desktop file
(cherry picked from commit 20e1fe4674)
2021-01-11 18:38:40 +01:00
Jean-Marc Lasgouttes
9886bf96c1 Move handling of LFUN_COPY to BufferView
It turns out that the code is the same in texted ans mathed and that
whatever is done in InsetTabular is not useful.

This means that we do not need to deal Text::dispatch idiosyncrasies
(in particular forcing the cursor to be visible).

Fix bug #11225.

(cherry picked from commit 9e1db65932)
2021-01-11 16:31:05 +01:00
Pavel Sanda
1c4bc08be7 * cs.po 2021-01-06 16:22:48 +01:00
Eugene Chornyi
daa32db3bc Fix bug 9961
remove the error message for not finding a pdf viewer (apparently empty string is returned by FindExecutable if the executable is a Windows Store app). If there is really no pdf viewer, let the Windows itself decide what to do (produce error or not and which one).
2021-01-04 10:29:44 +01:00
Juergen Spitzmueller
17e4f325f3 Re-enable input of non-LyX files (e.g., tex, pgf) (#12056)
This amends [a385b7dc2b58/lyxgit]

(cherry picked from commit 2af8e661a3)
2020-12-28 18:52:37 +01:00
Jean-Marc Lasgouttes
8e53243514 Do nothing if hunspell support is disabled
(cherry picked from commit 031720b66a)
2020-12-19 20:58:42 +01:00
Kornel Benko
3e238b6c99 Amend c3484fa6, adapt cmake-build to new hunspell-version
(cherry picked from commit cf980435b1)
2020-12-19 20:48:26 +01:00
Jean-Marc Lasgouttes
02e81304d7 Re-add win_api/config.h and somewhat update CMakeLists.txt
(cherry picked from commit 91c58d9a68)
2020-12-19 20:48:26 +01:00
Jean-Marc Lasgouttes
f5ae00132a Update the in-source hunspell to version 1.7.0
(cherry picked from commit c3484fa6c8)
2020-12-19 20:48:26 +01:00
Jean-Marc Lasgouttes
f4314b6461 Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
The method horizontalAdvance() replaces width() starting with Qt 5.11.
To handle this, all direct calls to QFontMetrics::width() are replaced
by calls to GuiFontMetrics::width(), and the code for
GuiFontMetrics::width(QChar) uses horizontalAdvance on newer Qt
versions.

(cherry picked from commit 21422dd652)
2020-12-17 11:32:44 +01:00
Jean-Marc Lasgouttes
20c8959790 Take right margin into account for text inset width
This is particularly important for contents in RtL languages, where
the right margin may contain the paragraph indentation, or
itemize/enumeration symbols.

Fixes bug #12030.

(cherry picked from commit 875b1def4f)
2020-12-17 11:23:27 +01:00
Jean-Marc Lasgouttes
326eab3408 Take label width into account for SubLabel insets
The drawing of the label should not go further than inset width.

Fixes bug #12046.

(cherry picked from commit 3950f05497)
2020-12-17 10:29:52 +01:00
Juergen Spitzmueller
43bc156a0b Do not close spellchecker after "Replace All" (#11310)
Wrong use of wrapAround here
2020-12-15 15:55:22 +01:00
Enrico Forestieri
96a93134b3 Typo 2020-12-07 22:48:27 +01:00
Kornel Benko
afcb47fd82 Update sk.po 2020-12-07 09:13:26 +01:00
Richard Kimberly Heck
6f433530c5 Fix bug #12033.
Silly mistake: Only considered the parent, not grandparents, etc.

(cherry picked from commit 742348262e)
2020-12-05 20:36:25 -05:00
Juergen Spitzmueller
cc23ada58a de.po 2020-12-05 13:48:14 +01:00
Pavel Sanda
cac8c51821 * Status 2020-12-04 21:26:30 +01:00
Pavel Sanda
d3d86bd474 Improve VCS error message when RCS is not installed.
User's report that it takes time to realize what package
is 'ci' part of, so we can give a hint for the initial
file registration.
2020-12-04 21:24:51 +01:00
Juergen Spitzmueller
d45e103dab Add empty line after last \bibitem in bibliography (#12041)
(cherry picked from commit 4a13a29042)
2020-12-03 16:02:02 +01:00
Juergen Spitzmueller
85aaa1f58d Polish translation fix (#12013)
(cherry picked from commit a58990abfd)
2020-12-02 15:50:47 +01:00
Juergen Spitzmueller
a16d704890 Fix tex4ht odt converter
Private message by Michal Hoftich (tex4ht head developer):

oolatex is not recommended way to use Tex4ht for the ODT conversion.
It is better to use

make4ht -f odt mwe.tex

make4ht fixes some issues in ODT files

This is candidate for stable.

(cherry picked from commit 17ebec693a)
2020-12-01 07:29:36 +01:00
Jean-Marc Lasgouttes
d418b6f4c8 Store correctly the window position with Wayland
To do this, hard-coded test for xcb had to be replaced with a call to
platformName(). Since this method does not exist in Qt4, we emulate
it.

Note that Qt5 uses xcb bindings for X11 system, while Qt4 relies on
older X11 bindings. We return platorm == "qt4x11" in this case.

Fixes bug #11746.

(cherry picked from commit 222a317dd2)
2020-11-30 13:32:49 -05:00
Richard Kimberly Heck
c9040100b5 Back to development 2020-11-30 13:29:22 -05:00
Richard Kimberly Heck
fd95d119c6 Minor ANNOUNCE fix. Will only matter if there is a 2.3.6.1... 2020-11-30 13:28:29 -05:00
Richard Kimberly Heck
b131816d40 Remerge strings. 2020-11-27 12:18:52 -05:00
Richard Kimberly Heck
25e18db0ce Prepare for 2.3.6 2020-11-27 12:15:22 -05:00
Pavel Sanda
1ae510b628 Erase white frame in fullscreen mode.
Backport 4eb791ff18.
2020-11-22 11:54:58 +01:00
Richard Kimberly Heck
f9f9fb661c Brazillian Portuguese translation from Georger 2020-11-05 09:51:10 -05:00
Juergen Spitzmueller
91526680c7 de.po 2020-11-04 07:15:55 +01:00
jpc
a128c373f9 Update status 2020-11-03 16:47:12 +01:00
jpc
a0ba861853 Update fr.po 2020-11-03 16:44:14 +01:00
Richard Kimberly Heck
9730223a1d Remerge strings. 2020-11-02 13:44:48 -05:00
Enrico Forestieri
21b81bfd1e Fix on-screen display of special math fonts
Make sure that the on-screen representation of the special math fonts
mathbb, mathds, mathfrak, mathcal, and mathscr matches the latex output.
2020-10-30 15:53:35 +01:00
Pavel Sanda
ea602d5866 * cs.po 2020-10-30 13:55:22 +01:00
Kornel Benko
ccbe2ab446 Update sk.po 2020-10-30 11:47:06 +01:00
Yuriy Skalko
c7e367cca0 Update ru.po 2020-10-30 09:34:08 +02:00
Scott Kostyshak
3611c09f39 CMake deb: support "python2 | python3" dependency
The latest debian-based distributions have moved away from
the "python" package dependency to "python2" and "python3".

(cherry picked from commit fe1cbc06c3)
2020-10-29 21:55:45 -04:00
Scott Kostyshak
012bca0b05 CMake deb: update python2 requirement
Synchronize with README: >= 2.7.

(cherry picked from commit 334552ade5)
2020-10-29 21:55:07 -04:00
Richard Kimberly Heck
3a546a1830 Remerge strings. 2020-10-29 17:57:02 -04:00
Richard Kimberly Heck
93ee185014 Backport changes to postats.py 2020-10-29 17:56:20 -04:00
Enrico Forestieri
d3d00723f0 Update it.po 2020-10-24 19:14:24 +02:00
Kornel Benko
a610ee422e Amend 0536193c: Remove requirement of revsymb4-1.sty.
Fixes #12005, reported and indicated a fix by 'ert'

(cherry picked from commit a0f0220348)
2020-10-15 12:22:50 +02:00
Richard Kimberly Heck
f75895180e Fix bug #11986
(cherry picked from commit 444285aca2)
2020-09-28 22:36:13 -04:00
Enrico Forestieri
b561dfaf2e Fix clipping for vector formats and when exporting from command line
This amends ea81faa9 that only took into account the postscript format
and did not consider that without GUI an image is not available even if
if it is actually cached. In this case we load the image for obtaining
its dimensions in order to correct the clipping bounding box.
2020-09-25 21:25:40 +02:00
Kornel Benko
155c779432 Gnumeric conversions to html: Remove wrong closing </p> flag
Now LyXHTML export for Spreadsheet.lyx is errorles, but stil we need a wrapper
to remove unneeded 'Ark' captions.

(cherry picked from commit 70725040db)
2020-09-24 16:42:47 +02:00
Juergen Spitzmueller
1cec06e1bd ru.po update from Yuriy 2020-09-19 08:46:04 +02:00