Commit Graph

47083 Commits

Author SHA1 Message Date
Juergen Spitzmueller
d42a300dfe Quote file name to table style in LFUN_TABULAR_STYLE_INSERT
This might fix the woes with table styles on windows, where the path
to the system directory has blanks IIRC (C:\Program Files\...)
2024-11-18 10:23:31 +01:00
Juergen Spitzmueller
7016f0c676 Remove unused variables
Probably relicts from development
2024-11-18 10:11:41 +01:00
Juergen Spitzmueller
db3f127e0d de.po 2024-11-17 17:12:32 +01:00
Enrico Forestieri
094bfce437 Update it.po 2024-11-17 16:12:47 +01:00
Koji Yokota
b30ccafb46 Fix a wrong UTF-8 character in a comment 2024-11-16 00:50:02 +09:00
Kornel Benko
3fe6163d74 Update sk.po 2024-11-14 12:08:02 +01:00
Thibaut Cuvelier
4d4888aba8 Added mrow to InsetMathCases::mathmlize
Co-authored-by: Lorenzo Bertini <lorenzobertini97@gmail.com>
2024-11-13 20:08:09 +01:00
Juergen Spitzmueller
51f4fc7f67 Revert unintended change
This has only been done locally to test for the fallback
2024-11-13 09:29:37 +01:00
Juergen Spitzmueller
360bb1fa7c Implement support for classico font package (#13124)
This is only an alternative to the classico font we already support
(uop), hence no file format change.
2024-11-13 09:04:56 +01:00
Juergen Spitzmueller
833c372931 Fixup logic in LaTeXFonts::getUsedFont()
Allow for unavailable switchdefault fonts fall back to AltFonts

Prerequisite to implement #13124
2024-11-13 09:02:49 +01:00
Thibaut Cuvelier
1381e3e575 docbook2epub: make the output of the parameters easier to read. 2024-11-11 23:50:43 +01:00
Thibaut Cuvelier
637ae9528f docbook2epub: create the OEBPS and META-INF folders that Saxon seems unable to create. 2024-11-11 23:46:27 +01:00
Scott Kostyshak
92b656c17b Revert "Amend a83159f0: Use logical operator ||."
This reverts commit 48c069fa8a.

The commit unintentionally changed behavior. See #13116.
2024-11-11 21:32:18 +01:00
Juergen Spitzmueller
7bf14813d7 Introduce dark/light mode preference (#12224)
This requires Qt 6.8 and only works on Win and Mac.
2024-11-10 10:42:20 +01:00
Scott Kostyshak
25cc10a04c ctests: uninvert some three systemF tests
These Astronomy_%26_Astrophysics tests now succeed:

  export/examples/Articles/Astronomy_%26_Astrophysics_dvi3_systemF
  export/examples/Articles/Astronomy_%26_Astrophysics_pdf4_systemF
  export/examples/Articles/Astronomy_%26_Astrophysics_pdf5_systemF
2024-11-09 15:13:19 +01:00
Kornel Benko
f784f3fe6f Update sk.po 2024-11-07 14:18:12 +01:00
Kornel Benko
695b2f485c Cmake tests: Add test for possible wrong used constants in our ui-files 2024-11-07 14:16:03 +01:00
Juergen Spitzmueller
d75ab6d6f0 One more Qt enum fix 2024-11-07 12:38:19 +01:00
Juergen Spitzmueller
9ffacb341d Fix spacing problems in previews with math macros (#13120)
This occurs on the legacy path when no cropping tools are available.
2024-11-06 18:26:14 +01:00
Jean-Marc Lasgouttes
b40aa80517 Reorganize file list in Makefile
The separation between cpp files and .h files was only necessary for
the monolithic build feature.

Moreover, try to move the stuff in lyx_SOURCES to liblyxcore_a_SOURCES.
Two issues though:

- Box::contains creates a link error, so put all the code in Box.h

- Compare::Compare is an issue too, and I am not sure how to fix it.
  For now, it is thus kept in lyx_SOURCES.

Moreover, version.{cpp,h} are moved to lyx_SOURCES to avoid rebuilding
liblyxcore.a at every commit.
2024-11-05 15:11:11 +01:00
Kornel Benko
c5d6f2eae9 Amend d86dbf66 and 159e8f2d for cmake build. 2024-11-04 20:18:14 +01:00
Richard Kimberly Heck
e1bbb57f62 Fix copy and paste error 2024-11-04 13:37:02 -05:00
Jean-Marc Lasgouttes
8c43a134fd With Qt 5.9, we need to include <functional>
Also remove 'using' statements (to be avoided in header files) and
refer to std::xxx instead of lyx:xxx.
2024-11-04 18:25:31 +01:00
Jean-Marc Lasgouttes
d86dbf6675 LYX_BEGIN_MUTE_GCC_WARNING: disable for gcc <= 7
I do not know until which version gcc has complained when trying to
mute a warning that it does not support. Recent versions do not do
that.

For now let's just do gcc 7, the limit should be higher.
2024-11-04 17:40:15 +01:00
Jean-Marc Lasgouttes
159e8f2dde Re-instate support for Qt 5.9.4
It was a bit overkill to require support for Qt 5.12 at 6ba2b5c5 and
c39d5b76. Revert partly these commits.
2024-11-04 17:22:21 +01:00
Scott Kostyshak
0bd1951184 ctests: update log 2024-11-04 13:43:35 +01:00
Juergen Spitzmueller
3a040ecdf1 Merge branch 'master' of git.lyx.org:lyx 2024-11-04 12:07:12 +01:00
Juergen Spitzmueller
7e161a9d5d Fix endless loop in lyx2lyx reversion routine 2024-11-04 12:06:18 +01:00
Jean-Marc Lasgouttes
2c694ccc2b Fix search for a good c++ compiler
Bash evaluates "c++{17,14}" as "c++17 c++14", but "c++-{17}" as "c++{17}".
2024-11-04 12:01:18 +01:00
Scott Kostyshak
1ef2f135d2 ctests: update log 2024-11-04 10:40:53 +01:00
Thibaut Cuvelier
cc2c3e648a MathStream: add missing spaces after commas. 2024-11-04 01:22:22 +01:00
Thibaut Cuvelier
3d560f9043 lyx2lyx for format 631: the new tag was inserted one line too late in the header and thus detected as part of the body when LyX parses the document. 2024-11-04 01:14:04 +01:00
Thibaut Cuvelier
c8fe57580a Add a missing subscript in lyx2lyx. 2024-11-04 00:54:03 +01:00
Juergen Spitzmueller
3e6ca9b884 More Qt enum fixes 2024-11-03 06:02:41 +01:00
Thibaut Cuvelier
08d316491f Fix two typos in comments 2024-11-03 03:31:45 +01:00
Juergen Spitzmueller
11cbc3c4a7 Fix AboutLyX layout
* remove wrong (sub)namespaces. This are inserted by newer versions of
  designer, although they are wrong
* add vertical spacer
* make horizontal spacer expand
2024-11-02 14:39:59 +01:00
Pavel Sanda
caff99419a Move header include to cpp. 2024-11-01 20:04:43 +01:00
Thibaut Cuvelier
f6405ef853 Fix a tautological condition. 2024-11-01 17:57:06 +01:00
Scott Kostyshak
24a709ce22 Update tex2lyx tests
From what I understand, the changes are expected.
2024-11-01 17:10:01 +01:00
Juergen Spitzmueller
561aa8bb32 Fix loading order of fancyhdr (#13118)
This must be loaded after geometry (amends ca4fc01847)
2024-11-01 14:49:29 +01:00
Pavel Sanda
a7845b561e Header not needed anymore 2024-10-31 21:32:42 +01:00
Pavel Sanda
a8afca4de0 Header not needed anymore. 2024-10-30 20:29:54 +01:00
Jean-Marc Lasgouttes
e30758166e Revert "Remove workaround that is not needed anymore with Qt 5.12"
We want to support Qt 5.9 for now.

This reverts commit 8837f8ca8c.
2024-10-30 19:31:59 +01:00
Kornel Benko
7d8c1fcf64 Cmake url tests: try to check also some modified urls
If the url contains 'ctan', try to determine the correct url depending
of the components to deside if using 'https://www.ctan.org' or rather
https://mirrors.ctan.org.
Without 'ctan' try to check https:// instead of ftp:// or http://
2024-10-30 11:15:47 +01:00
Thibaut Cuvelier
110e654b67 InsetMathFont: harden the new switches against unexpected values. 2024-10-30 01:58:54 +01:00
Pavel Sanda
87fb63220a File removed at 1c458dc121. 2024-10-29 19:58:19 +01:00
Thibaut Cuvelier
73c19cae41 Amend 7feffb89: restore the meaning of the elements in the QComboBox.
The order is not user-friendly, but correct. Before this patch, the elements in the UI didn't correspond to the implemented behaviour. The problem is the order: the first element is always MathML, the second HTML, etc. I think we should rather use some `userData` in QComboBox items to decouple the order from the semantics.
2024-10-29 04:31:41 +01:00
Thibaut Cuvelier
5c17e07bd1 Math: support all font combinations in HTML.
This code cannot yet be triggered, we need nesting first.
2024-10-29 04:24:01 +01:00
Thibaut Cuvelier
78ce5ebc45 Math: use the new MathFontInfo class to determine HTML and MathML attributes. 2024-10-29 04:24:01 +01:00
Thibaut Cuvelier
9a81bb36f4 Math: add a structure to hold font information.
It will allow to merge a lot of code for MathML and HTML: same parsing, slightly different outputs. The refactoring also shows clearly what parts are missing in HTML (while being easily fixable). The change is a prerequisite for implementing font nesting (although it is not done yet).

The new class is not yet used within InsetMathFont; it will come in the next commit.

Open question: should we use InsetMath::mode_type somewhere? I believe so, to determine whether the current default is italics or not in MathML.
2024-10-29 04:24:01 +01:00