120 Commits

Author SHA1 Message Date
Pavel Sanda
3a68177562 Fix regression introduced via #12819.
Cherry-pick e322ef153.
2024-08-20 09:32:03 +02:00
Enrico Forestieri
e4ed568921 Update status.24x 2024-08-18 23:00:02 +02:00
Juergen Spitzmueller
7955854269 Document recent commits 2024-08-18 18:34:29 +02:00
Richard Kimberly Heck
3f7569edcd Add temporary directory to About LyX dialog
(cherry picked from commit e7af6afb01183e2fdf798dd401499839ba0a195a)
2024-08-17 19:37:37 -04:00
Juergen Spitzmueller
092911880a Disable valign widget in tabularx tables
See https://marc.info/?l=lyx-users&m=172363857509065&w=2

(cherry picked from commit c993485782a1f47c6eafc9335c8905b3def7e083)
2024-08-15 07:32:04 +02:00
Juergen Spitzmueller
b6cd31e99a Properly escape special characters (!, @, |) in nomenclature output 2024-08-12 18:22:57 +02:00
Richard Kimberly Heck
c13b5922c0 Restore obvious shortcut
(cherry picked from commit 337a94a425b02b5fb685740f9f636c1696600e83)
2024-08-06 14:51:12 -04:00
Juergen Spitzmueller
7ec52ec846 Add plt as gnuplot extension (#11148)
This seems to be the common one on Windows

(cherry picked from commit f2e6a9b4aed4125284712ff041b6443e0ba01c57)
2024-08-06 11:38:11 -04:00
Richard Kimberly Heck
1ddd148b06 Fix bug with display of reference tooltips.
Previously, the tooltip was assigned during updateBuffer. But then
we could not determine the value for forward references.

(cherry picked from commit b494286a9c271b1f39d6248d977d2ef14a71f64c)
2024-08-06 11:35:20 -04:00
Richard Kimberly Heck
91b085d5ad Use the old-style sorts of label strings in the TOC.
There are several reasons to do it this way, among which is odd
behavior of the TOC filter if we put anything else there. This also
allows for filtering of the references themsevles in a natural way.

The change, I think, was really an unintended consequence of other
changes connected to showing formatted references in the work area.

(cherry picked from commit 1de4645286e5e51d2e5f6084ee53f3fcb463475d)
2024-08-05 18:23:25 -04:00
Juergen Spitzmueller
366efa9e61 Oops 2024-08-05 13:43:51 +02:00
Juergen Spitzmueller
cb3d88e22c update status 2024-08-05 13:20:23 +02:00
Juergen Spitzmueller
451f3b2784 Consider masked modifiers (~S etc.) when writing to bind file
Fixes #12973

(cherry picked from commit eb1ac06a9ad9bafd50c26fb951dd38a8d970c199)
2024-07-29 18:14:45 +02:00
Richard Kimberly Heck
f6074c329a Status 2024-07-27 11:19:19 -04:00
Jean-Marc Lasgouttes
73bfef16f3 Make scrolling-by-selection smoother
This trivial patch makes scrolling-by-selection smoother by dividing
the step size and the time between steps by 8 when generating
synthetic events in work area.

The scrolling speed is unchanged, but the result is visually better.

(cherry picked from commit 1cc1f0ba27d1846ba244507529d4795ecfa29a39)
2024-07-25 18:20:38 +02:00
Jean-Marc Lasgouttes
2baa292314 Do not export the content of InsetMathBoxed as text in MathML
\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

(cherry picked from commit 1186d90edf9a6702573f296d5642c5e61ceaaedf)
2024-07-24 18:26:53 +02:00
Jean-Marc Lasgouttes
b29b3eb1fc Fix crash when generating MathML with InsetMathBox
Instead of generating code and parsing it to add <mtext>...</mtext> at
the right spots, this commit honors the text mode setting that was
already present in the codebase to generate it automatically.

This is the work of two helper methods in MathMLStream:

* beforeText() notices when the stream is in text mode and that a
  <mtext> has not yet been generated. In this case it inserts it, so
  that raw text can be emitted afterwards.

* beforeTag() checks whether a <mtext> needs to be closed at this
  point, and does it if needed.

To make this work, the code now tracks the nesting level in the
stream, and compares it the what the level was when text mode has been
enabled using the SetMode helper function.

In order to avoid later bugs, member os() that allows to access the
underlying stream of MathMLStream is removed. This required many <<
operators to become friends of MathMLStream.

In InsetMathBox, rename splitAndWrapInMText() to mathmlizeHelper(),
which is not just a method that sets text mode inside a <mrow>
element.

In InsetMathFont and InsetMathHull, the explicit generation of nesting
in <mtext>...</mtext> can be removed now.

Fixes bug #13069.

(cherry picked from commit 216a6fb348dedac3230f651287a0ccfb48b88818)
2024-07-22 22:08:58 +02:00
Jean-Marc Lasgouttes
2999061e38 Remove alpha component of system colors
When using system colors it may happen (on windows 11 in particular)
that the background color is actually translucid. This is not
something we are prepared to handle and it creates ghosts on screen.

The fix is easy: the alpha channel of the colors is set to 255.

Fixes bug #13084.

(cherry picked from commit 095bb18331f8eb4653691a64520d89d4a2d60fc4)
2024-07-22 15:55:46 -04:00
Juergen Spitzmueller
4a796889e9 tex2lyx: Fix two bugs in nomencl import
* The comment character % is made active to serve as an escape char
* quotation marks need to be escaped

(cherry picked from commit 5bc4c11fd601773a7ffba850524afa03eafe13f9)
2024-07-22 19:03:10 +02:00
Jean-Marc Lasgouttes
0867aaf5c5 Fixup f4364c75: remove two more Update::SinglePar instances
They do not do what the author(s) of these lines thought it would do,
and can create crashes.

(cherry picked from commit 485f5afc21ba553fd16465231de7570b0c631298)
2024-07-20 23:50:48 +02:00
Pavel Sanda
5ba197d2f6 * status.24x 2024-07-19 23:52:04 +02:00
Jean-Marc Lasgouttes
e57ccede18 Fix faulty undo recording
The recordUndo() call is very wrong, since we may be inserting over a
selection covering several paragraphs (undo itself works at paragraph
granularity).

recordUndoSelection() is the right operation in this case. It is
equivalent to recordUndo() when there is no selection.

(cherry picked from commit 82f387dabc2b18de6a9917192f4304e92bff8bc1)
2024-07-18 23:40:39 +02:00
Pavel Sanda
de2970a7d0 * status.24x 2024-07-17 16:06:47 +02:00
Juergen Spitzmueller
f8949079ef Fix crash when attempting to search in selection that contains only math
(cherry picked from commit cca68d0614269edfc256db82b3849afde4640dd7)
2024-07-15 18:22:13 +02:00
Jean-Marc Lasgouttes
2882bed1ab Add explicit check for EGREP in configure.ac
It is used in lib/Makefile.am and we were relying some autoconf macros
to define it as a side-effect. This is not the case anymore as of
autoconf 2.72.

(cherry picked from commit 31cde7247638a50c2302744984732064505b7d85)
2024-07-15 17:46:07 +02:00
Juergen Spitzmueller
d15f4fe5ec GuiTabular: add missing connections
(cherry picked from commit 2bf3124f25bd7f71ad37adcf710b66dfb52192ff)
2024-07-14 19:09:21 +02:00
Juergen Spitzmueller
070a71a603 document performance fixes 2024-07-05 18:56:59 +02:00
Richard Kimberly Heck
46d1d6e0d3 Remove setBuffer call in Cursor::push.
This is potentially slow. It also should be unnecessary after
some of JMarc's recent commits. See bug #13050.

(cherry picked from commit 66cfc6af3c764b6923aae6c134c43c2155317c6a)
2024-07-05 12:28:40 +02:00
Enrico Forestieri
3581286f12 Update format in lyxrc.dist
(cherry picked from commit 1dd0bf3253a7d6abd5f4b13fe46e9a4d83887b5e)
2024-07-03 21:09:21 +02:00
Enrico Forestieri
94004da71f Avoid bogus warnings when configuring for Qt6
Recent versions of qmake complain loudly when the locale
does not explicitly specify the utf8 codeset. Specifically,
the configure script exports LC_ALL=C and that implies the
ascii codeset. Previously, this was silently changed to utf8,
whereas now we get a warning for each qmake invocation.
So, explicitly set utf8 before calling qmake.
2024-07-03 21:02:51 +02:00
Juergen Spitzmueller
e6a0bfb43d Document fix of #12954 2024-07-03 09:56:25 +02:00
Richard Kimberly Heck
78a26c7954 Begin 2.4.2 development. 2024-07-02 15:38:49 -04:00
Enrico Forestieri
f9692776fb Update it.po 2024-06-28 22:45:02 +02:00
Pavel Sanda
96606d9294 * typo 2024-06-27 20:16:04 +02:00
Richard Kimberly Heck
ef32b6421c Status 2024-06-27 12:41:44 -04:00
Richard Kimberly Heck
7d9a8b00f9 Revert "Add temporary directory to About LyX dialog"
This introduced a new string, which is not for 2.4.1.

This reverts commit 5b51bab39b31207dd16e31651ffecbec052272d4.
2024-06-25 13:38:58 -04:00
Richard Kimberly Heck
5b51bab39b Add temporary directory to About LyX dialog
(cherry picked from commit e7af6afb01183e2fdf798dd401499839ba0a195a)
2024-06-25 11:33:28 -04:00
Richard Kimberly Heck
ef2bd091d7 More translation status 2024-06-25 10:54:41 -04:00
Richard Kimberly Heck
c88a08ad42 Transation status 2024-06-24 17:10:47 -04:00
Pavel Sanda
5c6672ac15 Add status comment 2024-06-24 22:43:17 +02:00
Juergen Spitzmueller
59648b5d35 \cprotect amendment
\cprotect'ed insets do not need forced local font switch; in fact files
with this break in compilation. E.g. a caption with an URL containing
the char '#' and caption text set to a secondary language.

(cherry picked from commit 8659924abd7026aa97a36bd99efeb11705ff7190)
2024-06-22 20:03:56 +02:00
Juergen Spitzmueller
234dc0b6b2 Correct status entry 2024-06-15 19:33:26 +02:00
Richard Kimberly Heck
0c8988f4dd Add status 2024-06-15 13:32:17 -04:00
Juergen Spitzmueller
6b3782e07b Prevent division by zero
Fixes crash reported at
https://marc.info/?l=lyx-users&m=171842978728676

(cherry picked from commit 0fc8ee5ace22c11175cb93f5b6f7310cc4d646c1)
2024-06-15 12:05:48 -04:00
Udi Fogiel
d527a07731 fix a typo 2024-06-10 02:20:25 +03:00
Udi Fogiel
0681b32093 document recent fixes 2024-06-10 02:18:02 +03:00
Richard Kimberly Heck
3c909daeea Merge branch '2.4.x' into 2.4.1-devel 2024-06-09 13:13:12 -04:00
Richard Kimberly Heck
e01397f1db Status 2024-06-07 15:59:38 -04:00
Juergen Spitzmueller
d4bd0f9b1e Strip quotes from PackageOptions. Amends a77c84a0b4d5
(cherry picked from commit 1449fbf9ae3ecc70fbc7299f8901ecc31cdff1ab)
2024-06-06 19:00:34 +02:00
Jean-Marc Lasgouttes
13a6be1f9c Do not draw appendix lines below en of document
This bug is pretty old, but it was not visible because the grey area
below the document would overwrite it.

It would be better to close the frame at the end of the document, but
this is for later.

(cherry picked from commit 7acfbe0fccc729dcf5d910a4049b25e9943329fc)
(cherry picked from commit c96d3a03400893f440dca7e68ed87bd70bea0b39)
2024-06-06 18:18:02 +02:00