Il 04/06/2011 08:13, Enrico Forestieri ha scritto:
On Sat, Jun 04, 2011 at 12:13:03AM +0200, Tommaso Cucinotta wrote:
whilst when searching for \alpha on
the right cell:
\begin{align*}
& \alpha
\end{align*}
then it is not found, but this last case is somewhat unusual (I
think) for this kind of functionality.
So, I'm not figuring out how to reproduce this problem.
Ok, I can confirm this behavior and thought that it was a bug.
This only shows that there is a fundamental misunderstanding of what
"ignore format" does.
When it's on (default), comparison is made on the basis of textual
export only, so any formatting is lost (including char and paragraph
styles, environments, etc.). When you activate it, the comparison is
made on the basis of the latex export, so any of those details will
affect the matching process (e.g., boldface matches only boldface, etc.,
but also their nesting counts, e.g., boldface in bullet point won't
match boldface in numbered item, etc.). Any hint for improving
documentation is appreciated.
In the above example, if we really want to search for any align*
environment containing a \alpha in the right cell, then we should use
regular expressions and search for something like:
\begin{align*}
\regex{.*} & \regex{.*}\alpha\regex{.*}
\begin{align*}
(this is how the latexified version would look like -- actually, you can
type those ".*" regexps in the "Find:" box by using "Insert->Regular
Expression->Anything").
This would match the whole align* inset (and it does, in the sample.lyx
file in #7596).
T.