Re: LyX -- search & replace in math

2018-10-27 Thread Bernt Lie
$p$... either Ctrl+m (in-line) or Ctrl+shift+m (displayed)... then p, then 
Space to get out of math mode.

$\cal{M}$... same as above to enter math mode... then \cal + Space to get into 
the {} bracket... then M, then Space to get out of the {} bracket, followed by 
Space to get out of math mode.

-B

Get Outlook for Android<https://aka.ms/ghei36>


From: lyx-users@lists.lyx.org  on behalf of Kornel 
Benko 
Sent: Saturday, October 27, 2018 6:08:24 PM
To: lyx-users@lists.lyx.org
Subject: Re: LyX -- search & replace in math

Am Samstag, 27. Oktober 2018 15:33:56 CEST schrieb Bernt Lie :
>   *   Since they _are_ different, depending of the 'Ignore format', why would 
> one expect to behave the same? That does of course not mean, that there are 
> no errors in the code.
>
> That is reasonable.
>
>
>   *   If you check "Ignore format", the searching is done on text which would 
> be exported as normal text. The other case is searching on text which would 
> be suitable as input for latex.
>
> This explanation is not very clear. In a text document, I checked “Ignore 
> format”, and when searching, LyX found none of the expressions I searched for 
> [replace $p$ by $\mathfrak{p}$]. When I unchecked “Ignore format”, LyX worked 
> as expected.

How did you entered $p$?
(Expected is:
Alt-x math-mode  p
)
> [Still, it is not clear what is meant by “format”.]

It means all format info, like
\textbf, \texcolor{blue}, \uline etc.

> Next, I tested this on a much longer document (close to 700 pages). With 
> unchecking “Ignore format” and searching for $\cal{M}$, LyX skipped this 
> LaTeX code in a table at the beginning of the document (a “nomenclature” 
> table), but found this code in a paragraph in the middle of the document – 
> and also found several subsequent occurrences.
>
> Finally, I searched for the same LaTeX string [$\cal{M}$], but this time with 
> *checked* “Ignore format”. Contrary to in the test document (searching for 
> $p$), this time, LyX found at least one occurrence – but not the first one 
> found with unchecked “Ignore format”.

Yes, we know there are deficiencies :(
There is work in progress for 2.4.0 version.

> --
> To summarize:
>
>   *   Searching for $\cal{M}$ in *math*, and with unchecked “Ignore format” 
> did not find occurrences in table cells, but hopefully found occurrences in 
> text flows.
>   *   With checked “Ignore format”, LyX sometimes found LaTeX math code, and 
> sometimes not.

Again: How do you enter $\cal{M}$ ?

Kornel


Re: LyX -- search & replace in math

2018-10-27 Thread Kornel Benko
Am Samstag, 27. Oktober 2018 15:33:56 CEST schrieb Bernt Lie :
>   *   Since they _are_ different, depending of the 'Ignore format', why would 
> one expect to behave the same? That does of course not mean, that there are 
> no errors in the code.
> 
> That is reasonable.
> 
> 
>   *   If you check "Ignore format", the searching is done on text which would 
> be exported as normal text. The other case is searching on text which would 
> be suitable as input for latex.
> 
> This explanation is not very clear. In a text document, I checked “Ignore 
> format”, and when searching, LyX found none of the expressions I searched for 
> [replace $p$ by $\mathfrak{p}$]. When I unchecked “Ignore format”, LyX worked 
> as expected.

How did you entered $p$?
(Expected is:
Alt-x math-mode  p
)
> [Still, it is not clear what is meant by “format”.]

It means all format info, like
\textbf, \texcolor{blue}, \uline etc.

> Next, I tested this on a much longer document (close to 700 pages). With 
> unchecking “Ignore format” and searching for $\cal{M}$, LyX skipped this 
> LaTeX code in a table at the beginning of the document (a “nomenclature” 
> table), but found this code in a paragraph in the middle of the document – 
> and also found several subsequent occurrences.
> 
> Finally, I searched for the same LaTeX string [$\cal{M}$], but this time with 
> *checked* “Ignore format”. Contrary to in the test document (searching for 
> $p$), this time, LyX found at least one occurrence – but not the first one 
> found with unchecked “Ignore format”.

Yes, we know there are deficiencies :(
There is work in progress for 2.4.0 version.

> --
> To summarize:
> 
>   *   Searching for $\cal{M}$ in *math*, and with unchecked “Ignore format” 
> did not find occurrences in table cells, but hopefully found occurrences in 
> text flows.
>   *   With checked “Ignore format”, LyX sometimes found LaTeX math code, and 
> sometimes not.

Again: How do you enter $\cal{M}$ ?

Kornel


signature.asc
Description: This is a digitally signed message part.


RE: LyX -- search & replace in math

2018-10-27 Thread Bernt Lie
  *   Since they _are_ different, depending of the 'Ignore format', why would 
one expect to behave the same? That does of course not mean, that there are no 
errors in the code.

That is reasonable.


  *   If you check "Ignore format", the searching is done on text which would 
be exported as normal text. The other case is searching on text which would be 
suitable as input for latex.

This explanation is not very clear. In a text document, I checked “Ignore 
format”, and when searching, LyX found none of the expressions I searched for 
[replace $p$ by $\mathfrak{p}$]. When I unchecked “Ignore format”, LyX worked 
as expected.

[Still, it is not clear what is meant by “format”.]

Next, I tested this on a much longer document (close to 700 pages). With 
unchecking “Ignore format” and searching for $\cal{M}$, LyX skipped this LaTeX 
code in a table at the beginning of the document (a “nomenclature” table), but 
found this code in a paragraph in the middle of the document – and also found 
several subsequent occurrences.

Finally, I searched for the same LaTeX string [$\cal{M}$], but this time with 
*checked* “Ignore format”. Contrary to in the test document (searching for 
$p$), this time, LyX found at least one occurrence – but not the first one 
found with unchecked “Ignore format”.
--
To summarize:

  *   Searching for $\cal{M}$ in *math*, and with unchecked “Ignore format” did 
not find occurrences in table cells, but hopefully found occurrences in text 
flows.
  *   With checked “Ignore format”, LyX sometimes found LaTeX math code, and 
sometimes not.

-B

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Kornel Benko<mailto:kor...@lyx.org>
Sent: Saturday, October 27, 2018 14:17
To: lyx-users@lists.lyx.org<mailto:lyx-users@lists.lyx.org>
Subject: Re: LyX -- search & replace in math

Am Samstag, 27. Oktober 2018 11:08:48 CEST schrieb Bernt Lie :
> ...also... finds different symbols depending on whether I check "Ignore 
> format" or not...
>
> This makes me doubht whether I can trust the search-replace functionality in 
> my 600+ page lecture notes...
>

Since they _are_ different, depending of the 'Ignore format', why would one 
expect
to behave the same?
That does of course not mean, that there are no errors in the code.

If you check "Ignore format", the searching is done on text which would be 
exported as
normal text.
The other case is searching on text which would be suitable as input for latex.

   Kornel




Re: LyX -- search & replace in math

2018-10-27 Thread Kornel Benko
Am Samstag, 27. Oktober 2018 11:08:48 CEST schrieb Bernt Lie :
> ...also... finds different symbols depending on whether I check "Ignore 
> format" or not...
> 
> This makes me doubht whether I can trust the search-replace functionality in 
> my 600+ page lecture notes...
> 

Since they _are_ different, depending of the 'Ignore format', why would one 
expect
to behave the same?
That does of course not mean, that there are no errors in the code.

If you check "Ignore format", the searching is done on text which would be 
exported as
normal text.
The other case is searching on text which would be suitable as input for latex.

Kornel



signature.asc
Description: This is a digitally signed message part.


RE: LyX -- search & replace in math

2018-10-27 Thread Bernt Lie
...also... finds different symbols depending on whether I check "Ignore format" 
or not...

This makes me doubht whether I can trust the search-replace functionality in my 
600+ page lecture notes...

-B

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Bernt Lie
Sent: Saturday, October 27, 2018 13:06
To: Scott Kostyshak ; lyx-users@lists.lyx.org
Subject: RE: LyX -- search & replace in math

...PS...

Doesn't fint symbols in Table Cells!!!??? Even if I place the cursor in the 
same cell as the symbol...

-B

-Original Message-
From: Bernt Lie 
Sent: Saturday, October 27, 2018 13:01
To: Bernt Lie ; Scott Kostyshak ; 
lyx-users@lists.lyx.org
Subject: RE: LyX -- search & replace in math

...doesn't work perfectly, though...

If I have text with $p$ and $\mathfrak{p}$, then if I try to replace 
$\mathfrak{p}$ with $p$, everything is ok. 

HOWEVER, if I try to replace $p$ with $\mathfrak{p}$, then the latter becomes 
$\mathfrak{\mathfrak{p}}$...

In an ideal system, I guess $\mathfrak{\mathfrak{p}}$ should be simplified to 
$\mathfrak{p}$, etc. for similar cases.

-Bernt



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Bernt Lie
Sent: Saturday, October 27, 2018 12:53
To: Scott Kostyshak ; lyx-users@lists.lyx.org
Subject: RE: LyX -- search & replace in math

Hi Scott,

I have tested possibilities. What I need to do, works if I *check*:

* Case sensitive (standard menu)
* Ignore format (settings menu)
* Search only in maths (settings menu)

Thanks for tip!
-B

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Scott 
Kostyshak
Sent: Friday, October 26, 2018 20:28
To: lyx-users@lists.lyx.org
Subject: Re: LyX -- search & replace in math

On Fri, Oct 26, 2018 at 06:23:42PM +, Bernt Lie wrote:
> I use Windows 10, 64bit latest version with LyX 2.3.1.
> 
> Question:
> * I want to replace symbol $l$ in equations with symbol $\ell$. 
> * How can I restrict the search to *equations*, and avoid all letters 
> "L" in the document?

Hi Bernt,

Go to Edit > Find & Replace (Advanced), and under the Settings tab of the panel 
that pops up, see the options "Ignore format" (I guess you want unchecked), or 
maybe only "Search only in maths" is relevant for your case.

Scott


RE: LyX -- search & replace in math

2018-10-27 Thread Bernt Lie
...PS...

Doesn't fint symbols in Table Cells!!!??? Even if I place the cursor in the 
same cell as the symbol...

-B

-Original Message-
From: Bernt Lie 
Sent: Saturday, October 27, 2018 13:01
To: Bernt Lie ; Scott Kostyshak ; 
lyx-users@lists.lyx.org
Subject: RE: LyX -- search & replace in math

...doesn't work perfectly, though...

If I have text with $p$ and $\mathfrak{p}$, then if I try to replace 
$\mathfrak{p}$ with $p$, everything is ok. 

HOWEVER, if I try to replace $p$ with $\mathfrak{p}$, then the latter becomes 
$\mathfrak{\mathfrak{p}}$...

In an ideal system, I guess $\mathfrak{\mathfrak{p}}$ should be simplified to 
$\mathfrak{p}$, etc. for similar cases.

-Bernt



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Bernt Lie
Sent: Saturday, October 27, 2018 12:53
To: Scott Kostyshak ; lyx-users@lists.lyx.org
Subject: RE: LyX -- search & replace in math

Hi Scott,

I have tested possibilities. What I need to do, works if I *check*:

* Case sensitive (standard menu)
* Ignore format (settings menu)
* Search only in maths (settings menu)

Thanks for tip!
-B

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Scott 
Kostyshak
Sent: Friday, October 26, 2018 20:28
To: lyx-users@lists.lyx.org
Subject: Re: LyX -- search & replace in math

On Fri, Oct 26, 2018 at 06:23:42PM +, Bernt Lie wrote:
> I use Windows 10, 64bit latest version with LyX 2.3.1.
> 
> Question:
> * I want to replace symbol $l$ in equations with symbol $\ell$. 
> * How can I restrict the search to *equations*, and avoid all letters 
> "L" in the document?

Hi Bernt,

Go to Edit > Find & Replace (Advanced), and under the Settings tab of the panel 
that pops up, see the options "Ignore format" (I guess you want unchecked), or 
maybe only "Search only in maths" is relevant for your case.

Scott


RE: LyX -- search & replace in math

2018-10-27 Thread Bernt Lie
...doesn't work perfectly, though...

If I have text with $p$ and $\mathfrak{p}$, then if I try to replace 
$\mathfrak{p}$ with $p$, everything is ok. 

HOWEVER, if I try to replace $p$ with $\mathfrak{p}$, then the latter becomes 
$\mathfrak{\mathfrak{p}}$...

In an ideal system, I guess $\mathfrak{\mathfrak{p}}$ should be simplified to 
$\mathfrak{p}$, etc. for similar cases.

-Bernt



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Bernt Lie
Sent: Saturday, October 27, 2018 12:53
To: Scott Kostyshak ; lyx-users@lists.lyx.org
Subject: RE: LyX -- search & replace in math

Hi Scott,

I have tested possibilities. What I need to do, works if I *check*:

* Case sensitive (standard menu)
* Ignore format (settings menu)
* Search only in maths (settings menu)

Thanks for tip!
-B

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Scott 
Kostyshak
Sent: Friday, October 26, 2018 20:28
To: lyx-users@lists.lyx.org
Subject: Re: LyX -- search & replace in math

On Fri, Oct 26, 2018 at 06:23:42PM +, Bernt Lie wrote:
> I use Windows 10, 64bit latest version with LyX 2.3.1.
> 
> Question:
> * I want to replace symbol $l$ in equations with symbol $\ell$. 
> * How can I restrict the search to *equations*, and avoid all letters 
> "L" in the document?

Hi Bernt,

Go to Edit > Find & Replace (Advanced), and under the Settings tab of the panel 
that pops up, see the options "Ignore format" (I guess you want unchecked), or 
maybe only "Search only in maths" is relevant for your case.

Scott


RE: LyX -- search & replace in math

2018-10-27 Thread Bernt Lie
Hi Scott,

I have tested possibilities. What I need to do, works if I *check*:

* Case sensitive (standard menu)
* Ignore format (settings menu)
* Search only in maths (settings menu)

Thanks for tip!
-B

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Scott 
Kostyshak
Sent: Friday, October 26, 2018 20:28
To: lyx-users@lists.lyx.org
Subject: Re: LyX -- search & replace in math

On Fri, Oct 26, 2018 at 06:23:42PM +, Bernt Lie wrote:
> I use Windows 10, 64bit latest version with LyX 2.3.1.
> 
> Question:
> * I want to replace symbol $l$ in equations with symbol $\ell$. 
> * How can I restrict the search to *equations*, and avoid all letters 
> "L" in the document?

Hi Bernt,

Go to Edit > Find & Replace (Advanced), and under the Settings tab of the panel 
that pops up, see the options "Ignore format" (I guess you want unchecked), or 
maybe only "Search only in maths" is relevant for your case.

Scott


Re: LyX -- search & replace in math

2018-10-26 Thread Scott Kostyshak
On Fri, Oct 26, 2018 at 06:23:42PM +, Bernt Lie wrote:
> I use Windows 10, 64bit latest version with LyX 2.3.1.
> 
> Question:
> * I want to replace symbol $l$ in equations with symbol $\ell$. 
> * How can I restrict the search to *equations*, and avoid all letters 
> "L" in the document?

Hi Bernt,

Go to Edit > Find & Replace (Advanced), and under the Settings tab of
the panel that pops up, see the options "Ignore format" (I guess you
want unchecked), or maybe only "Search only in maths" is relevant for
your case.

Scott


signature.asc
Description: PGP signature


LyX -- search & replace in math

2018-10-26 Thread Bernt Lie
I use Windows 10, 64bit latest version with LyX 2.3.1.

Question:
* I want to replace symbol $l$ in equations with symbol $\ell$. 
* How can I restrict the search to *equations*, and avoid all letters 
"L" in the document?

-B