0

I haven't been able to figure out in TexStudio how to set a macro so that every time I type:" $ " I will get: " $$ " with the cursor in the middle, any ideas? Also, how could I set a translation macro, so that when I type: " [ " I get: " {} " with the cursor in the middle and vice versa, i.e. " { " --> " [] " ?

Thank you for your time and insights!

  • Welcome to TeX.SX! Your questions are quite specific for a particular TeX-Tool. Some users here might use TeXStudio, but if you get no answer in reasonable time, try the discussion forum for TeXStudio. – gernot Sep 15 '16 at 23:44
2

You have to create a macro with corresponding trigger. Triggers are regular expressions, so you have to escape $ and [ if you want to use them literally.

For example, here is the code for your $ question.

enter image description here

The others work likewise.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.