# newcommand for creating shortcut?


\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{})

• Don't use such shortcuts -- you gain not much by them – user31729 Aug 29 '17 at 15:38
• @ChristianHupfer What if you have to write 50 times Deoxyribonucleotide in an article (not my case, an example)... – ppr Aug 29 '17 at 15:41
• @ppr I think Christian suggests you can use your editor facilities for easing typing, e.g. in Emacs that you're using, type Deo and hit M-/ (for dabbrev-expand). – ShreevatsaR Aug 29 '17 at 15:42
• This is something for glossaries, using \gls – user31729 Aug 29 '17 at 15:52
• AUCTeX's manual says the insertion of the braces can be avoided by entering LaTeX-math-mode (C-c C-~), or by setting TeX-insert-braces to nil. @ShreevatsaR Nice! Thanks :-) – Arch Stanton Aug 29 '17 at 16:16

## 1 Answer

As mentioned in the comments, it is probably best to use your editor's facilities. Anyway here is one possible, more general, solution to your question 1. It might not be pretty as I'm not actually professional TeX user.

If you use XeLaTeX or LuaLaTeX you could define one of the unused character, that don't have any special use in latex, to be a second control character. For example in Finnish/Swedish keyboard there is a currency sign (¤) shift+4 that I have never heard anyone using anywhere. It is in more convenient place than backslash.

%\RequirePackage{luatex85}%currently required when using luatex and standalone
\documentclass[varwidth=160mm]{standalone}

\catcode\¤=0%defines ¤ to be a control character

\def\deo{Deoxyribonucleotide}
¤def¤lsaa{Lentokonesuihkuturbiinimoottoriapumekaanikkoaliupseerioppilas}
¤def¤gtov{Grundstücksverkehrsgenehmigungszuständigkeitsübertragungsverordnung}

\begin{document}
¤deo

\lsaa

¤gtov
\end{document}
`

I don't know if this is possible to achieve with pdflatex. Maybe you could redefine one of the rarely used ascii characters without bad consequences.