I am trying to define a macro in TeXstudio.

When I am typing "itemslide" nothing happens.. Only when I am typing "\itemslide" the text is replaced by the content of "LaTeX-Text".

What am I doing wrong?

Thank you for your help!


  • Works for me... Just in case this is the problem try pressing ok (as in to close the edit macro window) and then type \itemslide and press enter. If that does not work try pressing the run command from the edit macro window and see what happens – sab hoque Jan 8 at 12:27
  • Hey, \itemslide does work for me too. But shouldn't it also work by typing only itemslide without slash? – mrbela Jan 8 at 13:03
  • I saw this in the manual The "abbreviation" is a pseudo-command for the latex completer. If the pseudo-command is completed, the macro will be inserted instead. Note that the pseudo-command needs to start with a backslash ("\") not sure if that helps other than assert that \itemslide should work – sab hoque Jan 8 at 13:05
  • Ok, thanks. That helps a lot. So, what is the trigger for? – mrbela Jan 8 at 13:07
  • The manual says this about trigger: "Trigger" is a regular expression which triggers the inclusion of the macro: When the last written characters match this expression, they are removed and the macro is inserted/executed. and then after that it says – sab hoque Jan 8 at 13:14

Your Answer

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

Browse other questions tagged or ask your own question.