Commit Graph

45326 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
17e60e2e85 Fix crash with info inset and dialogs
See the thread
  2.4 Crash (was: Updated LaTeXConfig.lyx (bxjsclasses added))
on lyx-devel (26/01/2023).

The backtrace imply a problem like:
1/ metrics are computed for some info inset
2/ the info inset is regenerated (and thus the paragraph it held is now invalid)
3/ We draw the inset and because of the new (disabled by default)
   bookmark display code, we access the id() of the invalid paragraph.
4/ boom!

To fix the issue, introduce a new boolean member that indicates when
the Row object of the metrics should not be used. In this case, the
draw() method returns early.
2023-02-06 21:34:08 +01:00
Jean-Marc Lasgouttes
04ece4f0d6 Remove space between button and text with inlines collapsible insets
Typically there are two sources of spacing:
* the button has two pixels added to the left and to the right
* the frame around the text also has 2 pixels to the left and to the right

Note that this value of two pixels is given here for simplicity, but
these are parameterized by methods like textOffset or leftOffset.

What we want to remove is the space after the button and the space
before the frame. This is done in 3 places

In dimensionCollapsed(), the extra space is removed from the dimension
after its computation

In metrics(), the space avoided before the frame is removed from width.

In draw, the whome text inset is drawn with a negative offset.

Fixes #12335.
2023-02-06 20:28:37 +01:00
Juergen Spitzmueller
fb37682d74 Check whether we have a selection before issuing warning (#12655) 2023-02-06 11:47:14 +01:00
Juergen Spitzmueller
34b2b3b45f Remove acknowledgement theorems from docs 2023-02-05 14:38:51 +01:00
Juergen Spitzmueller
af2ebaf186 Re-fix translation 2023-02-05 12:16:18 +01:00
Juergen Spitzmueller
5403302a95 de.po 2023-02-05 12:14:41 +01:00
Juergen Spitzmueller
6e5b3a1e31 Properly fix acknowledgment issue part 2/2
Remove acknowledgment theorem types

As we have learned, these shouldn't have been added from the get go.

Documents having it get a local layout definition.
2023-02-05 12:07:37 +01:00
Juergen Spitzmueller
0ab6a5c6d6 Add forgotten case 2023-02-05 09:34:04 +01:00
Juergen Spitzmueller
97a5433bed Update tex2lyx tests 2023-02-04 17:48:57 +01:00
Juergen Spitzmueller
ac6314b834 Properly fix acknowledgment issue part 1/2
Bump file format and convert/revert styles to unique spelling
2023-02-04 17:47:52 +01:00
Pavel Sanda
6746949f39 * cs.po 2023-02-03 23:41:17 +01:00
Pavel Sanda
0683fedaec * cs.po - start working on 2.4 translations 2023-02-03 23:35:42 +01:00
Pavel Sanda
e635062479 * cs.po import 2.3 & remerge 2023-02-03 22:05:16 +01:00
Jean-Marc Lasgouttes
2712c9807e Update to boost 1.81 2023-02-02 10:56:46 +01:00
Kornel Benko
168cbee9ac Update sk.po 2023-02-02 10:16:03 +01:00
Juergen Spitzmueller
9c33b588ba Fix typos 2023-02-01 19:05:32 +01:00
Juergen Spitzmueller
e8e3146e25 Amend ce7eb7734b
When a style is defunc'ed, defunc the obsoleted variant as well
2023-02-01 18:16:33 +01:00
Juergen Spitzmueller
ce7eb7734b Disambiguate Acknowledgment[[credits]] and Acknowledgment[[theorem]] 2023-02-01 16:24:16 +01:00
Juergen Spitzmueller
77fbd7be69 Amend 8d47ffd200
the AEA layout includes and modifies AMS extended
2023-02-01 12:55:37 +01:00
Jean-Marc Lasgouttes
418fd911f8 Revert "Extended comment and indentation for source code"
This was pushed by mistake. A different version of this patch will
eventually be committed.

This reverts commit 439c099124.
2023-02-01 00:12:14 +01:00
Jean-Marc Lasgouttes
1081893e97 Fixup 0fed10e4: make sure redraw happens as needed
This commit had had an additional not documented change: redraws
happen only when they are needed. This did not help fix the bug, but
looked smart on first sight. Alas, I find that these smart changes
added because "why not?" tend to come back to haunt me eventually.

In particular this case, the problem was that the code tested whether
the offset of anchor paragraph had changed, but not whether the
paragraph itself had changed. This means that, when switching from one
section to another with the outliner, the view was not updated.
2023-02-01 00:09:49 +01:00
Daniel Ramoeller
439c099124 Extended comment and indentation for source code
- automatically inherit indentation from previous block
- (un)indent blocks
- (un)comment blocks
- add feature to show tabs and spaces
2023-02-01 00:09:49 +01:00
Pavel Sanda
60d0cc2611 * lib/layouttranslations
Revert part of the update. It needs manual check for the rest.
2023-01-31 20:59:00 +01:00
jpc
b89e66ae36 Update fr.po 2023-01-31 17:20:23 +01:00
Kornel Benko
64fd4a7b41 Update sk.po 2023-01-31 11:59:22 +01:00
Juergen Spitzmueller
8d47ffd200 Acknowledgement > Acknowledgment 2023-01-31 07:39:27 +01:00
Juergen Spitzmueller
faaa911370 de.po 2023-01-31 06:02:31 +01:00
Scott Kostyshak
4b8b5bc252 ctests: uninvert JSS exports
The Journal of Statistical Software exports now succeed. An update
must have fixed the core issue.
2023-01-30 20:59:08 -05:00
Scott Kostyshak
795d5c408d Fix more ja documents for LuaTeX/XeTeX + systemF
I used the following command inside the ja directories, and
confirmed the diff manually:

  git ls-files -z | xargs -0 sed -i -e 's/\\font_typewriter "default" "default"/\\font_typewriter "default" "IPAGothic"/'

These changes are consistent with 6656dd22.
2023-01-30 13:36:58 -05:00
Scott Kostyshak
479825fe09 Fix Embedded Objects comp with LuaTeX (systemF)
Thanks to Jürgen.
2023-01-30 12:22:25 -05:00
Scott Kostyshak
4e9f660411 ctests: uninvert ja XeLaTeX exports that work now
These exports now work thanks to the font fix at 6656dd22.
2023-01-30 11:55:22 -05:00
Juergen Spitzmueller
2371bfdf15 Fix font combos with Qt6 (#12630)
Use CategorizedCombos methods to properly access the model
2023-01-30 08:46:36 +01:00
Juergen Spitzmueller
b260ff8b27 Allow to hide categories in CategorizedCombo
font combos do not need that
2023-01-30 08:45:58 +01:00
Scott Kostyshak
6656dd2275 Set typewriter fonts for ja docs
This fixes compilation with system fonts and LuaTeX for the Intro
and Customization manuals, although Embedded Objects still has an
error due to some preamble code.

Thanks to Jürgen.
2023-01-29 23:30:36 -05:00
jpc
203bd35c5b Update French Customization manual for 2.4 2023-01-29 18:33:50 +01:00
Enrico Forestieri
d213df2f2e Amend 891ba726
Avoid an assertion when the cursor is at the start of a math hull.
2023-01-29 18:32:23 +01:00
Juergen Spitzmueller
255f3c72fa Update module descriptions 2023-01-28 18:26:59 +01:00
Juergen Spitzmueller
1b42d800a3 fix glitch in index reversion 2023-01-28 17:06:35 +01:00
Juergen Spitzmueller
729af37dfe de/Additional: finish revision 2023-01-28 16:26:38 +01:00
Juergen Spitzmueller
7eafea43e3 Additional.lyx: further fixes #7 (last one) 2023-01-28 16:18:48 +01:00
Juergen Spitzmueller
b66a6dba43 lyx2lyx: fix convert_totalheight method
This didn't account for float values
2023-01-28 10:16:54 +01:00
Enrico Forestieri
07150cd928 Amend 16e67d4e
A docstring is not 0-terminated...
2023-01-27 21:10:02 +01:00
Enrico Forestieri
16e67d4ebb Fix bug #12633
Avoid recursion when validating a macro that is defined recursively.
This avoids a crash but the latex engine will choke on it, of course.
2023-01-27 20:34:24 +01:00
Scott Kostyshak
168af93020 ctests: comment out the new XHTML validate tests
These new checks found issues that are difficult to fix.
2023-01-26 21:42:06 -05:00
Pavel Sanda
5aaefca279 * english LaTeXConfig.lyx update from Koji 2023-01-26 01:27:01 +01:00
Pavel Sanda
c4c9ef396b * ja.po from Koji + remerged 2023-01-26 01:11:22 +01:00
Pavel Sanda
4b5a6deb15 * UserGuide.lyx from Koji 2023-01-26 01:02:28 +01:00
Pavel Sanda
2b514a9215 * Tutorial.lyx from Koji 2023-01-26 01:01:40 +01:00
Pavel Sanda
2bf401e597 * Shortcuts.lyx from Koji 2023-01-26 01:00:12 +01:00
Pavel Sanda
6b7737ad29 * MergedManuals.lyx from Koji 2023-01-26 00:59:18 +01:00