Jean-Marc Lasgouttes
bc624cc780
Do not pass a vector by value to getArgInset
...
Instead of passing the vector by value so that stuff can be added to
it in the function, add required elements of arguments to a second vector.
While we are at it, simplify the code a bit by using a range-for and
auto keyword.
Spotted by Coverity scan
2024-10-01 13:06:37 +02:00
Juergen Spitzmueller
7e49ae7b13
Add support for language options ( #8034 )
...
File format change.
Note that this cannot be properly reverted to LyX 2.4, so any options
will simply vanish on reversion or roundtrip
2024-08-23 15:52:34 +02:00
Juergen Spitzmueller
8659924abd
\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.
2024-06-22 13:38:47 +02:00
Juergen Spitzmueller
2d95f8fc16
Amend 207eaeee90
...
The upstream encoding needs to be updated after this routine
(see comment in OutputParams.h:183ff.)
2024-05-16 07:33:29 +02:00
Juergen Spitzmueller
ed62816eb6
Handle URL escaping in beamer frames
...
File format change -- this introduces the first LyX 2.5 format and
hence sets up the lyx2lyx machinery
2024-05-13 07:26:41 +02:00
Juergen Spitzmueller
207eaeee90
Introduce NeedCProtect -1 layout option
...
It turns out beamer frame does not allow \cprotect and errors if it is
used. Hence we need to prevent it in this context entirely.
2024-05-12 07:52:16 +02:00
Jean-Marc Lasgouttes
1599c503df
Pass a two parameters parameter by reference
...
Note that there is also a vector parameter that is passed by value.
However it is modified as a local copy and I do not want to change
this now.
Spotted by coverity.
2024-01-12 15:55:45 +01:00
Juergen Spitzmueller
1aa131de87
Output added par break marker inside argument for commands ( #13014 )
2023-12-19 15:48:07 +01:00
Juergen Spitzmueller
c549a2b59c
At end of children, language needs to be reset
...
This amends 243b0ef90c
2023-07-18 15:27:17 +02:00
Juergen Spitzmueller
b397c78b70
Move comment to where it belongs
2023-07-16 16:46:02 +02:00
Juergen Spitzmueller
243b0ef90c
If language needs to be reset at the end of footnotes or floats
...
then do reset it only after footnotes or floats. \selectlanguage at
the end of environments might produce spurious vertical space
(see https://marc.info/?l=lyx-devel&m=168872369617866 )
2023-07-16 16:31:31 +02:00
Juergen Spitzmueller
8c6db95135
Add missing empty line (par break) between pars with differing line spacing ( #12638 )
2023-02-09 17:23:18 +01:00
Juergen Spitzmueller
0bb25ee3cd
\R and \L are not defined in babel with Xe/LuaTeX
2022-12-23 10:07:41 +01:00
Kornel Benko
62ab563c25
FindAdv: Use private variable for_search
...
Using the new inline statements
find_effective(), find_with_non_output(), find_with_deleted(),
find_set_feature(), find_add_feature() and find_clean_features()
makes the code a slightly better readable.
2022-05-09 22:11:38 +02:00
Kornel Benko
c2229d388b
Find: Renamend for_searchAdv to for_serach in src/OutputParams.h
...
Since this variable is used by quick find too, the naming was misleading
2022-04-12 18:02:12 +02:00
Kornel Benko
498a5cd487
FindAdv: Added possibility to search also in deactvated branches
...
To include content of deactivated branches to the searched region
one has to use the lyx-funcion
search-ignore non-output-content true
2022-03-10 10:51:02 +01:00
Thibaut Cuvelier
997f0621c5
Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages.
2022-03-01 16:05:42 +01:00
Juergen Spitzmueller
0d7d8c37e3
Fix language direction switch issue
...
reported at https://marc.info/?l=lyx-users&m=164538003727435&w=2
2022-02-21 09:49:32 +01:00
Juergen Spitzmueller
cc4ed5e04b
Do not try to pop from an empty stack
2022-02-04 17:23:52 +01:00
Juergen Spitzmueller
095e533be9
Fix language environment with environments at inset begin/end ( #12352 )
2021-12-29 16:07:40 +01:00
Juergen Spitzmueller
8d09fb5bf0
Support non-default styles in multirow
2021-01-23 14:53:51 +01:00
Juergen Spitzmueller
5979a01b1d
Allow paragraph and line breaks in multirow ( #12083 )
2021-01-23 14:24:54 +01:00
Kornel Benko
961e393b95
FindAdv: Make search for text in deleted regions configurable.
...
The function call 'search-ignore deleted false'
makes findadv to search also deleted parts,
while 'search-ignore deleted true' will omit these parts.
2021-01-22 21:11:28 +01:00
Kornel Benko
469b43c791
FindAdv: Do not search in deleted text.
2021-01-22 17:03:54 +01:00
Kornel Benko
a7590d33e3
FindAdv: Add handling of regex char '^' at start also for search with disabled format
...
lyxfind.cpp:
handle \mathcircumflex inside regex
output_latex.cpp:
don't mark extra end of parameters if no options involved
2021-01-14 14:44:21 +01:00
Juergen Spitzmueller
11740f6fc0
Amend dc174db6c1973d1/lyxgit ( #12057 )
2020-12-27 14:00:30 +01:00
Juergen Spitzmueller
4a13a29042
Add empty line after last \bibitem in bibliography ( #12041 )
2020-12-03 07:46:39 +01:00
Yuriy Skalko
7ca2f2b58d
Use range-based loops
2020-11-21 20:32:16 +02:00
Richard Kimberly Heck
2945bc356e
whitespace
2020-11-02 11:38:52 -05:00
Yuriy Skalko
dbe35af542
Simplify with std::map::insert
2020-11-01 22:22:27 +02:00
Yuriy Skalko
7f40bb2b2d
Clean output_latex
2020-10-16 08:02:51 +03:00
Richard Kimberly Heck
1ff2de387d
Whitespace
2020-10-13 18:26:13 -04:00
Richard Kimberly Heck
28ae543a2a
Fix signed-ness warnings
2020-10-13 18:24:03 -04:00
Yuriy Skalko
fe85162a29
Refactoring
2020-10-05 14:55:00 +02:00
Yuriy Skalko
715b8cda54
Refactoring based on cppcheck suggestions
2020-10-03 13:39:51 +02:00
Juergen Spitzmueller
0bddf448ef
Prevent outputting \maketitle within an inset embedded in title.
...
Amends [e4ef8ddc0f8202/lyxgit]
2020-07-04 10:54:20 +02:00
Juergen Spitzmueller
e4ef8ddc0f
Properly fix handling of title layouts within insets ( #11787 )
2020-07-03 16:20:38 +02:00
Jean-Marc Lasgouttes
fc5b22a2f1
Get rid of lyx::next uses for RandomAccessList
...
These uses are inefficient (a loop really) and require that pit_type
is ptrdiff_t.
Instead, RandomAccesslist::constIterator is renamed to iterator_at and
a version adding a non-const iterator is added. Additionally, the
method retirns end() when position is equal to the size of the
container (see #11861 ).
lyx::next and lyx::prev are removed, and std::prev is used in the few
places where the code requires it (for no good reason IMO).
2020-05-14 10:35:49 +02:00
Jean-Marc Lasgouttes
c756749991
Revert "Get rid of lyx::next uses for RandomAccessList"
...
This is not ready (see #11861 ).
This reverts commit 6d97e39934
.
2020-05-13 10:45:25 +02:00
Jean-Marc Lasgouttes
6d97e39934
Get rid of lyx::next uses for RandomAccessList
...
These uses are inefficient (a loop really) and require that pit_type
is ptrdiff_t.
Instead, RandomAccesslist::constIterator is renamed to iterator_at and
a version adding a non-const iterator is added.
lyx::next and lyx::prev are removed, and std::prev is used in the few
places where the code requires it (for no good reason IMO).
2020-05-12 17:29:21 +02:00
Richard Kimberly Heck
16e7f26cec
requires is a keyword in C++2a
2020-05-03 02:18:17 -04:00
Richard Kimberly Heck
9d36f720a5
Revert "Fix bug reported by Kornel."
...
This reverts commit 438f15da21
.
Revert "Track whether we have warned about mixing layouts across e.g. branches."
This reverts commit 861c6167ca
.
Revert "Track whether title has been issued via OutputParams."
This reverts commit b536759c07
.
There are massive complications here, and I don't have time to fix them all
right now.
2020-03-20 17:19:19 -04:00
Richard Kimberly Heck
438f15da21
Fix bug reported by Kornel.
...
The old code was actually wrong. Obviously, this should be set only
if we actually do issue the title command.
2020-03-20 15:25:47 -04:00
Richard Kimberly Heck
861c6167ca
Track whether we have warned about mixing layouts across e.g. branches.
2020-03-17 01:54:47 -04:00
Richard Kimberly Heck
b536759c07
Track whether title has been issued via OutputParams.
...
When branches are used in the title, we may need to track whether
we've issued the title across branch insets. So we put the relevant
variables into OutputParams.
2020-03-17 01:50:28 -04:00
Richard Kimberly Heck
7af6575cf6
Fix bug #11787 .
...
Make sure we are actually at the end of the document before issuing
\maketitle because we are at the end of the document.
2020-03-17 01:39:07 -04:00
Stephan Witt
fc790bc1f5
Add missing check for nullptr on check of language encoding of next paragraph.
2020-02-18 09:03:20 +01:00
Juergen Spitzmueller
c77999a5f3
Add buffer param to opt-out fragile content movement
...
Fixes #11714
File format change
2020-01-10 10:21:09 +01:00
Juergen Spitzmueller
ada07d0bf1
Amend dc174db6c1
2019-12-30 13:25:49 +01:00
Juergen Spitzmueller
38ca174819
Fix crash
2019-12-26 16:36:25 +01:00