Looking for something similar to \LaTeX. It is correct in this section from my textbook. The way my textbook has it is what I'm looking for:

  • 8
    Use \textsc{Matlab} to get the above output. – sodd Feb 18 '16 at 19:49

Since you say you're looking for a command similar to \LaTeX, you can define something like


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


to the preamble.

  • 4
    ...and also read Drawbacks of xspace. – Werner Feb 18 '16 at 20:17
  • 1
    That 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 \xspace in the command definition and use \MATLAB{} every time. – Ondrian Feb 18 '16 at 20:26

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.