How to create a TeXstudio macro to remove extra brackets? #1884
-
This question is the same I made at the TeXStackExchange Forum in: I have a software to write mathematical expressions that let me quite faster type while teaching. This software have a LaTeX translation tool that works fine, but it adds as many brackets as it wants. I have been using the replace tool of TeXstudio with regular expressions ( I would like to have a TeXstudio macro to perform all replacements, but I got some difficult The following links helped me to create the macro as far as I could.
The following figure shows the Find/Replace syntax that works and the macro version I tried without success. The Find syntax I don't know what I should do with the " The operation performed by Find and Replace works as expected. But when applying the macro I get A MWE follows, this MWE don't need to be executed.
The SCRIPT I'm trying to create is:
I also tried using a fixed string with
and also some variations like Edit The regexp in Find syntax |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
seems to work. scope is optional and can be left out if it is all. ... and you javascript regex misses the brackets |
Beta Was this translation helpful? Give feedback.
seems to work.
scope is optional and can be left out if it is all.
The cursor needs to be set differently in txs4.x , see manual.
... and you javascript regex misses the brackets
()
.