Remove labels that appeared when copying text from lyx to texmacs

Hello,
I copied text directly from lyx to texmacs.
The mathematical equations are well recognized and the text is fairly well formatted. This avoids having to start all over again.
But after the copy, there appear many expressions of the type <\label |magicparlabel-…>.


Is there a way to remove them all at once? I tried the “find and replace” tool but it doesn’t work because the labels which are differents. It seems more complicated to implement. Thank you in advance for any help you may have.

I think you can do it with the structured search-and-replace tool. I tried it and I had to use the wildcard symbol inside a label tag filled with “magicparlabel”:

seasrch-and-replace-tag-wildcard

This is different from the help manual (see “Search and replace” in the help).

1 Like

Thanks for this solution.
How to type the wildcard symbol in this window ?

On Windows, where I tested the procedure, it is ctrl+1
For other OSs please see the help it may be, but I did not check it, that in the manual the shortcuts are the ones for the OS you are in; you search the help with F1, I used as a search keyword “search”.

Thanks a lot.
I’m on ubuntu 22.04 and CTRL 1 worked fine.