I use newcommand
in my preambles for creating shortcuts. For every sentence/complicated-technical-long-word, I create a newcommand
such as:
\newcommand{\e}{some very long technical term\xspace}
And in the body I use \e
each time I want to write this term.
But I am not 100% happy with it.
Question 1 : Is there a better solution for this kind of job?
One problem of my solution: I don't want to have to use the character \
(because it not easy to type it with a French keyboard) so I am using the macro call in Emacs+Auctex (C-c Ret) which give me \es{} where the cursor is inside brackets. But I have no argument to give and I have to move the cursor manually each time.
Question 2: Is it possible to modify the macro call in Auctex (C-c Ret) to remove the brackets for some commands? (to obtain \es and not \es{})
M-/
(fordabbrev-expand
). – ShreevatsaR Aug 29 '17 at 15:42\gls
– user31729 Aug 29 '17 at 15:52C-c C-~
), or by settingTeX-insert-braces
tonil
. @ShreevatsaR Nice! Thanks :-) – Arch Stanton Aug 29 '17 at 16:16