[Tex/LaTex] How to get “LaTeX” symbol in document

symbols

I want to get that fancy LaTeX symbol to put in one of my documents but I cannot find it anywhere. All searching for things like latex symbol have not resulted in the symbol but other symbols.

Best Answer

You simply type \LaTeX. One problem with this is that if you type it a lot of times in your text you will need to type \LaTeX\␣¹ (i.e., followed by \ and an actual space) to force a space after it.

Also personally I find the capitalization of L and T leads to typing errors, so I redefine the command as follows:

\newcommand{\latex}{\LaTeX\xspace}
\newcommand{\tex}{\TeX\xspace}

\xspace is from the xspace package. Additionaly, writing \LaTeX{} adds the space after.


¹ is used here to represent a normal space "", which wouldn’t show up at the end of Markdown code markup.