# How to get “LaTeX” symbol in document

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.

-
You mean \LaTeX ? –  Yiannis Lazarides Dec 22 '10 at 4:18
@Yiannis, thanks, that is exactly what I was looking for. Add that as an answer and I will accept. I tried that but with the wrong capitalization. –  sixtyfootersdude Dec 22 '10 at 4:34
LyX does this automatically when you type in either LyX or LaTeX. –  Dave Jarvis Dec 22 '10 at 14:12

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\ 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.

-
or simply \makeatletter\g@addto@macro{\TeX}{\xspace}\makeatother for both –  Herbert Dec 22 '10 at 6:33
Or \expandafter\def\expandafter\TeX\expandafter{\TeX\xspace} or \edef\TeX{\TeX\noexpand\xspace} or ... –  TH. Dec 22 '10 at 10:29
There is also the hologo package for typesetting TeX-related logos:
\hologo{LaTeX}