LyX archives created after importing a LaTeX document may not
include bibliography style and catalog files. This is because
tex2lyx does not remove extensions, but the lyxpak script
expects files without extensions. So, teach lyxpak to also take
possible extensions into account.
Fixes#13129
This might fix the woes with table styles on windows, where the path
to the system directory has blanks IIRC (C:\Program Files\...)
(cherry picked from commit d42a300dfe26f3c4bab7e88423a1a14a4a56f542)
This is only an alternative to the classico font we already support
(uop), hence no file format change.
(cherry picked from commit 360bb1fa7cd8819d299282939ff51582ea3eb825
amendment from 51f4fc7f67a6c is included)
* remove wrong (sub)namespaces. This are inserted by newer versions of
designer, although they are wrong
* add vertical spacer
* make horizontal spacer expand
(cherry picked from commit 11cbc3c4a765f93268a662846d7082b089b3782b)
This now only loads the package until it has the version information
and then ends the package input.
This way, we do not need to care about package peculiarities (having
to be loaded after \documentclass or internal dependencies which, if
not given, might break the whole configuration, see #13112)
Use the real ascent of glyph 'x' as LyX 2.3.x did.
It can make a difference at least on Windows with many fonts.
Fixes bug #13100.
(cherry picked from commit 194b53ef9d2896664772a12c0038eedd717daec3)
as it might end up in a moving argument (\lstlistlistingname in book
classes).
See https://marc.info/?l=lyx-devel&m=172812937932740
(cherry picked from commit a16e4b206a429ad2ef562446b2e535779e4905e5)
Initializing clientName at declaration time is not a good idea.
Spotted by Coverity scan.
(cherry picked from commit 3d323412ad5b4d47774de43f985202f20cabd156)
The position of the cursor should not be decreased if it is already at
the start of the paragraph. This can lead to a crash when trying to
display the caret.
(cherry picked from commit 16be88ca18719a98a555ced268431ca1040658b7)
Since the platform is selected at run time (e.g. xcb vs. Wayland), it
is not a good idea to decide at compile time what code is run. Another
example is on macOS, where having xcb libraries available will lead to
lauching the Xquartz whenever LyX is running.
With this patch, things are separated:
- the code is run when run-time platform is "xcb".
- the support code is compiled in when xcb header and libraries are
available.
The cmake code is courtesy of Kornel Benko.
Fixes ticket #13086.
(cherry picked from commit 18c310a8cf60ebc8cab27aeea6fc0a6e1fcc7fcc)
(cherry picked from commit f1fddd86efa22ac9342de723f5ca724f252f8cbe)
(cherry picked from commit 3bc4554e5762c3484477e1c590632756e3f310ad)
(cherry picked from commit 8c14748e782d93870a7328df383403fb37da936f)
Instead of baking our own support for -geometry command line option on
Windows (Qt only does that for Xcb), use the fact that Qt 5 provides
the equivalent -qwindowgeometry flag.
All we need to do is to replace the -geometry option with -qwindowgeometry.
This is part of the effort in ticket #13086 to get rid of the
compile-time QPA_XCB define.
(cherry picked from commit ce9de28f06eb770ae440992fb8ca8b98a07c1cfd)
Each buffer now has an id which is increased when it is marked dirty
(or when one of its relatives is marked dirty).
This can be a big win since updateMacros is very expensive.
(cherry picked from commit 999fb37ebb1aecfda9889fa6a2b2fbb15133f2aa)
(cherry picked from commit fe1a3b57df2cd6adf1bd4752d05b1aae40a4e5b7)
It makes reload more robust and is in any case good enough to avoid
crash in #139091.
Fixes bug #13091.
(cherry picked from commit 52ec69a1af7f8c860d6f1d6ed6337db58d5ce163)
That module was a wrapper over the popen module and it was scheduled to
be removed in Python 3.11.
This code is also compatible with Python 2.
(cherry picked from commit d06a034578da4b20fb26e53ff983a77ca90bd07c)