]> git.lyx.org Git - features.git/commit
Advanced search with format: Prepare latex for find
authorKornel Benko <kornel@lyx.org>
Fri, 12 Oct 2018 14:47:07 +0000 (16:47 +0200)
committerKornel Benko <kornel@lyx.org>
Fri, 12 Oct 2018 14:47:07 +0000 (16:47 +0200)
commit7a03fa6f1d4e4d7930fff68c549608515b9e8d76
tree002a43600775961dd97f1bada3d7c59adaa8cf4b
parentf5e6db717167ecbe9e5934c937467bf0fca90ba1
Advanced search with format: Prepare latex for find

Our findadv expects something like
prefix + 'search'
so that the regex (which is latexified too)
can work on 'search'
(In the source, the prefix is denoted by lead_as_string)

The latex output contains structs like
\foreignlaguage(abc}{xx\textbf{boldxx\textcolor{blue}{blue 1 blue 2} XX}}
which would never match the simple prefix.

Now the above is converted to
\foreignlaguage(abc}{xx}\\
\foreignlaguage(abc}{\textbf{boldxx}}
\foreignlaguage(abc}{\textbf{\textcolor{blue}{blue 1 blue 2}}}\\
\foreignlaguage(abc}{\textbf{ XX}}
Of course, more than one language or color in an inset can be searched for now.
src/lyxfind.cpp