Jean-Marc Lasgouttes
d44c63e2c6
Set current cursor font when toggling emphasize
...
The change actually works for all font toggling with implicit selection.
Fixes bug #12450 .
2022-01-04 18:58:55 +01:00
José Matos
109ea2be4a
Add new placeholder $${python} to configure
...
This ensures that we use a consistent Python interpreter in LyX.
$${python} is replaced by the Python version found.
Users can apply this in preferences and use the same version defined by
LyX.
2022-01-04 00:21:34 +00:00
Scott Kostyshak
13a7269b9d
Change LFUN arg from "zoom" to "zoomlevel"
...
This change is just to be more specific, to help when grepping and
reading.
The idea is from Daniel
(https://www.lyx.org/trac/ticket/12420?replyto=11#comment:11 ).
Amends cc787967
(and thus 49a17aaa
).
2022-01-03 15:57:35 -05:00
José Matos
940d3ceeb9
Make layout2layout compatible with Python 2 and 3
2022-01-03 19:59:42 +00:00
Stephan Witt
11d42ac3df
Remove temporary code comment.
2022-01-03 10:44:02 +01:00
Stephan Witt
d432403430
#12434 add event handler for pinch-to-zoom gesture
2022-01-03 07:37:03 +01:00
Enrico Forestieri
d4cfa5204c
Fix bug #12447
...
Due to a thinko at 1fe75ae7
the code was not using the correct index.
2022-01-02 18:49:44 +01:00
Stephan Witt
df990b1027
Guard new code for builds with OS X 10.11 SDK and lesser (part 2).
2022-01-01 18:47:57 +01:00
Stephan Witt
718b735dfe
Guard new code for builds with OS X 10.11 SDK and lesser.
2022-01-01 18:46:32 +01:00
Stephan Witt
47c92834df
Correct white space.
2022-01-01 16:37:07 +01:00
Stephan Witt
2125863874
Qt6 QFontDatabase is a pure static class. Call the member functions directly.
2022-01-01 10:06:07 +01:00
Juergen Spitzmueller
64a60c72ea
GuiGraphics: disable "Read from file" button if the values do not differ
2021-12-31 14:32:59 +01:00
Juergen Spitzmueller
8f3fdafd9e
GuiGraphics: check more carefully whether we have a changed BB
2021-12-31 14:32:13 +01:00
Juergen Spitzmueller
ec722f3a48
GuiGraphics: read the BB values also for new graphics
...
that aren't in the cache yet.
2021-12-31 14:30:09 +01:00
Jean-Marc Lasgouttes
0789f2f2ae
Fix font inside footnote inset
...
An inset that resets its font (like Footnote) does not care at all
about enclosing font. Therefore the real starting point is the class
default font. This avoid cases where the footnote contents is forced
to \normalsize.
It turns out that the Greyedout note inset, did inherit font but was
declared as not doing it. This commmit changes the definition by
adding \normalfont\normalsize so that no inheritance happens.
Note that actually \normalfont resets everything but the font size.
This does not matter for footnote (which has its own font size) and
greyedout (which is fixed now), but may matter elsewhere. Also, I do
not know what the situation with HTML is.
2021-12-31 13:40:53 +01:00
Stephan Witt
77670bc998
Reduce the mix of python versions in configure.py in case of running it with python3
2021-12-31 13:40:22 +01:00
Stephan Witt
6372f5569e
Avoid python based lilypond-book detection if it's not needed - e.g. on Mac
2021-12-31 11:54:28 +01:00
Scott Kostyshak
4bdb1ca4c2
Add comment regarding fsanitize + Clang issue
...
We could not figure out the root issue, or at least not to the point
where we felt changing this code considering we could not trigger
any bug from a user perspective.
For now, we just add a comment in the code.
For more information, see our ML discussion here:
https://www.mail-archive.com/search?l=mid&q=20211227113249.53bf5a63%40admin1-desktop
2021-12-30 11:39:04 -05:00
Kornel Benko
011be4a959
Update sk.po
2021-12-29 19:14:41 +01:00
Juergen Spitzmueller
8a25af029b
de.po
2021-12-29 18:00:45 +01:00
Scott Kostyshak
cc787967f4
Change "Show Zoom Value" to "Show Zoom Level"
...
See discussion at #12420 .
Amends 49a17aaa
.
2021-12-29 11:45:01 -05:00
Scott Kostyshak
f40413db11
Reg tests for language switching
...
Use cases from #12352 . The files correspond to
mwe-remove-bottom.23.lyx and mwe-remove-top.23.lyx. The only
differences are that I changed to FreeSans and FreeSerif for the
fonts.
2021-12-29 10:38:16 -05:00
Juergen Spitzmueller
095e533be9
Fix language environment with environments at inset begin/end ( #12352 )
2021-12-29 16:07:40 +01:00
Stephan Witt
f22c5c3c3f
Remove unused local variable
2021-12-29 15:33:44 +01:00
Juergen Spitzmueller
0f2d711f34
Fix TOC filtering with slashes ( #12359 )
...
Seems the * wildcard does not match these.
2021-12-29 14:43:52 +01:00
Juergen Spitzmueller
9929916935
Use Noto Sans Tibetan rather than Serif
...
The sans is more complete and also seems to be more widely distributed.
2021-12-29 13:44:40 +01:00
Jean-Marc Lasgouttes
dbd33f6622
When row if empty, set endpos correctly.
2021-12-28 18:48:55 +01:00
Kornel Benko
4b02748b6d
Update sk.po
2021-12-28 17:35:18 +01:00
Juergen Spitzmueller
44b1afb975
Style
2021-12-28 09:42:31 +01:00
Juergen Spitzmueller
d1761d7652
Style
2021-12-28 09:42:31 +01:00
Scott Kostyshak
9ffca92930
Allow toggling of Zoom elements without buffer
...
The elements are shown without a buffer so it's nice to be able to
toggle without one as well.
2021-12-27 13:43:19 -05:00
Scott Kostyshak
49a17aaa5d
Change label "Show Zoom" to "Show Zoom Value"
2021-12-27 13:43:19 -05:00
Daniel Ramoeller
eae56b1194
Hide the zoom in the status bar from the status bar context menu
...
Fix for #12420 .
2021-12-27 13:43:19 -05:00
Jean-Marc Lasgouttes
7ab3c59f00
Typo
2021-12-27 19:38:10 +01:00
Scott Kostyshak
22cbc3b0cf
ctests: uninvert a DocBook export
...
The export now succeeds, likely due to Jürgen's improvements at
2eaf30c5
.
2021-12-27 11:17:29 -05:00
Scott Kostyshak
62993294f3
Invert two DocBook + LilyPond exports
...
This is due to an upstream issue:
https://gitlab.com/lilypond/lilypond/-/issues/6187
For ML discussion, see here:
https://www.mail-archive.com/search?l=mid&q=20211102011304.dmrcr7gjpxxwpd4o%40poole
2021-12-27 11:11:30 -05:00
Juergen Spitzmueller
a7905c5b96
Do not protect \\ as of LaTeX 2021/06/01
2021-12-27 16:32:12 +01:00
Scott Kostyshak
faa404f063
Reg test for protect: xymatrix in figure caption
...
Use case from #6243 .
2021-12-27 10:26:04 -05:00
Juergen Spitzmueller
6ac60832e5
Add FIXME
2021-12-27 12:09:02 +01:00
Juergen Spitzmueller
a5b7eeacaa
Remove remaining math cprotection test.
...
We'll see if someone comes up with a reproducible case, and if so,
whether ordinary protection works here as well.
See #6243
2021-12-27 11:52:25 +01:00
Juergen Spitzmueller
582fe0990f
\protect xymatrix in fragile context
...
(\cprotect'ion not needed then).
2021-12-27 11:42:30 +01:00
Juergen Spitzmueller
596b2d16ee
\protect substack in fragile context
...
(\cprotect'ion not needed then).
2021-12-27 11:37:59 +01:00
Juergen Spitzmueller
3e4c831f1e
Remove obsolete \cprotect'ion ( #6243 )
2021-12-27 10:24:58 +01:00
Jean-Marc Lasgouttes
542445d07d
When pasting text, keep line breaks when "parbreak is newline"
...
This is much easier for listings, ERT or Verbatim.
Fixes bug #8026 .
2021-12-26 20:22:01 +01:00
Thibaut Cuvelier
51e92a5a97
DocBook: more explicit comment.
2021-12-26 02:26:50 +01:00
Thibaut Cuvelier
db1a443a70
DocBook: update basic.xml for the latest MathML and DocBook changes.
2021-12-26 02:24:23 +01:00
Thibaut Cuvelier
4c27a7307e
Amend c734504d
to fix a very bad nullptr dereferencing...
2021-12-26 02:24:06 +01:00
Thibaut Cuvelier
81274c8da7
Remove code that has been commented out for a long time.
2021-12-26 02:14:49 +01:00
Scott Kostyshak
9d64a2f2f6
ctests: invert a docbook test for a cprotect case
...
The strange example file does not make sense for Docbook, as
described by Thibaut on the ML here:
https://www.mail-archive.com/search?l=mid&q=CAK0LPyiHCsUMo0ZCbFrRBRTCD7G-rhw-z8G1of2kFGebBLddtA%40mail.gmail.com
2021-12-23 21:37:31 -05:00
Thibaut Cuvelier
c734504d3b
DocBook: in InsetFloat, detect the presence of a caption by generating it.
...
This catches the case where the caption only contains a comment, as in export/export/latex/lyxbugs-resolved/cprotect/9313-comment-in-figure-float-caption. No duplicate work is performed to ensure the same level of performance as before.
2021-12-24 01:08:24 +01:00