Looking for something similar to \LaTeX. It is correct in this section from my textbook. 
Asked
Active
Viewed 3.2k times
10
HanDuet
- 103
- 1
- 1
- 4
1 Answers
10
Since you say you're looking for a command similar to \LaTeX, you can define something like
\newcommand{\MATLAB}{\textsc{Matlab}\xspace}
Here, I have used the xspace package to prevent the \MATLAB command from "eating" spaces after it. Maybe there is a cleaner solution, but this definitely works fine. Just add also
\usepackage{xspace}
to the preamble.
Ondrian
- 1,536
-
4
-
1That is a good point! I did not notice any problems using the xspace package, however, if you do, or just want to play it safe, just omit
\xspacein the command definition and use\MATLAB{}every time. – Ondrian Feb 18 '16 at 20:26
\textsc{Matlab}to get the above output. – sodd Feb 18 '16 at 19:49