If I launch the macro for the vector math accent, for example, then \vec{·} will be inserted and the cursor will automatically jump to · so that I can type in. It is just like Ctrl+Shift+F for \frac{·}{·}. In TexMaker the placeholder seems to be #INS#, but it doesn't work in TexStudio.
Asked
Active
Viewed 5,812 times
8
latex fan
- 520
-
1Oh ,I got it myself. It is %|. – Dec 22 '13 at 14:15
-
maybe you can add this ans answer and accept it so this question will no longer be "open" ;-) – Tobi Dec 22 '13 at 14:35
-
and first of all: Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Do us a favour and change your username to something more telling than "user1234". :-) – Tobi Dec 22 '13 at 14:35
1 Answers
12
Use %| to place the cursor or %<myname%> to set a placeholder with text. See also the cwl description in the manual.
Tim Hoffmann
- 11,159
-
1Why do you link to the documentation for cwl and not to the documentation for the macro syntax? – robertspierre Dec 10 '17 at 18:13
-
1No special reason. I'm not sure the documentation of the macro syntax existed back then. It's the better link nowadays. – Tim Hoffmann Dec 13 '17 at 09:40
-