Remove the braces in Lyx file converted from latex file

Dr Eberhard Lisse nospam at lisse.NA
Tue Mar 3 12:03:18 UTC 2020


I have been through this (curly removal) before.

While Perl can remove braces easily and quick and dirty as in


this will remove ANY and ALL curlies.

If the LyX document contains other curlies they will also go. So you 
might need to copy the formula from the LyX file into a buffer, remove 
the curies and then paste again.

Writing a Regular Expression to do this intelligently (ie working from
the outside braces to the inside) is extremely difficult.

Never mind how the LyX code actually looks like. (I.e. who are the 
curlies represented there)


can you post a minimal working example LyX file here? A line of text or 
two and one single imported math formula.

greetings, el

On 01/03/2020 02:11, Richard Kimberly Heck wrote:
> On 2/28/20 10:52 AM, zhao_yunsong at wrote:
>> Hello there
>> I have a lyx file converted from a LaTeX file.
>> But in the formula of the lyx file, there are a lot of paired braces,
>> as is shown blow.  Is it possible to delete them quickly.
>> Thanks!
> The easiest way, I think, would be to open the LyX file in a text
> editor and delete them there.  A quick and dirty Perl script might
> work, too.
> Riki

If you want to email me, replace nospam with el

More information about the lyx-users mailing list