8

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.

3
  • 1
    Oh ,I got it myself. It is %|.
    – user43089
    Dec 22, 2013 at 14:15
  • maybe you can add this ans answer and accept it so this question will no longer be "open" ;-)
    – Tobi
    Dec 22, 2013 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, 2013 at 14:35

1 Answer 1

12

Use %| to place the cursor or %<myname%> to set a placeholder with text. See also the cwl description in the manual.

3
  • 1
    Why do you link to the documentation for cwl and not to the documentation for the macro syntax? Dec 10, 2017 at 18:13
  • 1
    No special reason. I'm not sure the documentation of the macro syntax existed back then. It's the better link nowadays. Dec 13, 2017 at 9:40
  • New working link Mar 23, 2023 at 21:40

You must log in to answer this question.