Re: search math macros

2024-01-25 Thread Kornel Benko
Am Wed, 24 Jan 2024 11:05:38 -0500
schrieb Richard Kimberly Heck :

> On 1/24/24 03:09, Kornel Benko wrote:
> > Am Mon, 22 Jan 2024 17:35:25 -0500
> > schrieb Richard Kimberly Heck :
> >  
> >> On 1/22/24 16:27, Michael Dean Pugh wrote:  
> >>> I've been using LyX for a number of years.  Because I was reusing a
> >>> lot of math macros, I started putting them in a separate file and
> >>> loading that file at the beginning of each document with an input
> >>> statement.  Over time, the list has grown and I wanted to search for a
> >>> macro to see how I had defined it (probably because I had since found
> >>> a better way).  But no configuration in Advanced Search that I have
> >>> tried will allow me to search math macros.  Am I missing something or
> >>> is this a feature that might be added in the future?  
> >> OK, this is a bit weird: If you USE the macro, then the definition will
> >> be found. So use it temporarily.
> >>
> >>
> >> I think I understand why this happens, but it is a bit of a long story,
> >> and not a terribly interesting one. I'm not sure it is even possible to
> >> fix this.
> >>
> >>
> >> Riki
> >>  
> > I think the reason is that the macro definitions are not part of any latex 
> > output.  
> 
> Yes, that's what I assumed. Though what's odd is that the definition IS 
> found if it is used. What's not found is the actual usage, at least in 
> my testing.
> 
> Riki
> 
> 

Ouch. Should have been exactly reversed (fading memory).

Kornel


pgpUfuxcktOmr.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: search math macros

2024-01-24 Thread Richard Kimberly Heck

On 1/24/24 03:09, Kornel Benko wrote:

Am Mon, 22 Jan 2024 17:35:25 -0500
schrieb Richard Kimberly Heck :


On 1/22/24 16:27, Michael Dean Pugh wrote:

I've been using LyX for a number of years.  Because I was reusing a
lot of math macros, I started putting them in a separate file and
loading that file at the beginning of each document with an input
statement.  Over time, the list has grown and I wanted to search for a
macro to see how I had defined it (probably because I had since found
a better way).  But no configuration in Advanced Search that I have
tried will allow me to search math macros.  Am I missing something or
is this a feature that might be added in the future?

OK, this is a bit weird: If you USE the macro, then the definition will
be found. So use it temporarily.


I think I understand why this happens, but it is a bit of a long story,
and not a terribly interesting one. I'm not sure it is even possible to
fix this.


Riki


I think the reason is that the macro definitions are not part of any latex 
output.


Yes, that's what I assumed. Though what's odd is that the definition IS 
found if it is used. What's not found is the actual usage, at least in 
my testing.


Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: search math macros

2024-01-24 Thread Kornel Benko
Am Mon, 22 Jan 2024 17:35:25 -0500
schrieb Richard Kimberly Heck :

> On 1/22/24 16:27, Michael Dean Pugh wrote:
> > I've been using LyX for a number of years.  Because I was reusing a 
> > lot of math macros, I started putting them in a separate file and 
> > loading that file at the beginning of each document with an input 
> > statement.  Over time, the list has grown and I wanted to search for a 
> > macro to see how I had defined it (probably because I had since found 
> > a better way).  But no configuration in Advanced Search that I have 
> > tried will allow me to search math macros.  Am I missing something or 
> > is this a feature that might be added in the future?  
> 
> OK, this is a bit weird: If you USE the macro, then the definition will 
> be found. So use it temporarily.
> 
> 
> I think I understand why this happens, but it is a bit of a long story, 
> and not a terribly interesting one. I'm not sure it is even possible to 
> fix this.
> 
> 
> Riki
> 

I think the reason is that the macro definitions are not part of any latex 
output.
Since ADV-Find is using (mostly) unchanged output created for latex, the defs 
are neither
in the search buffer, nor in searched buffer.
Sure, it can be fixed, but needs more work.

Kornel


pgpFbXcOCyhIR.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: search math macros

2024-01-22 Thread Richard Kimberly Heck

On 1/22/24 16:27, Michael Dean Pugh wrote:
I've been using LyX for a number of years.  Because I was reusing a 
lot of math macros, I started putting them in a separate file and 
loading that file at the beginning of each document with an input 
statement.  Over time, the list has grown and I wanted to search for a 
macro to see how I had defined it (probably because I had since found 
a better way).  But no configuration in Advanced Search that I have 
tried will allow me to search math macros.  Am I missing something or 
is this a feature that might be added in the future?


OK, this is a bit weird: If you USE the macro, then the definition will 
be found. So use it temporarily.



I think I understand why this happens, but it is a bit of a long story, 
and not a terribly interesting one. I'm not sure it is even possible to 
fix this.



Riki

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


search math macros

2024-01-22 Thread Michael Dean Pugh
I've been using LyX for a number of years.  Because I was reusing a lot of math 
macros, I started putting them in a separate file and loading that file at the 
beginning of each document with an input statement.  Over time, the list has 
grown and I wanted to search for a macro to see how I had defined it (probably 
because I had since found a better way).  But no configuration in Advanced 
Search that I have tried will allow me to search math macros.  Am I missing 
something or is this a feature that might be added in the future?

Thanks!
Mike Pug
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users