TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
up vote 57 down vote accepted

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:


\xspace is from the xspace package.

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

share|improve this answer
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
Why is the extra slash needed to force a space? – 8128 Jan 28 '14 at 22:49
@fluteflute It is the way TeX is designed. Imagine if you needed to type \LaTeX. then the space would be a problem. – Yiannis Lazarides Jan 29 '14 at 2:36

There is also the hologo package for typesetting TeX-related logos:

\Hologo{LaTeX}  % to be used at the beginning of a sentence (no difference in this case)

While the syntax is a bit more verbose, it has the advantages that you don't have to think about trailing spaces and that it works correctly inside PDF bookmarks.

share|improve this answer

Use the following

% !Mode:: "TeX:UTF-8"



The output looks like

LaTeX Logo.

Notice that there are three capital letters in the command.

share|improve this answer
Welcome :) Whilst this is correct, and it was good of you to include a picture, I'm not sure it really adds anything to this over 5 year old question. This answer has already been given in the accepted answer, which also goes on to include warnings about space after the command being gobbled and advice on how to deal with that. I see you're new, so I'm gonna give you the golden rule (in my opinion), Stackexchange is not a discussion forum, we very rarely want the same answer twice unless they really differ in their presentation, or their level of explanation or their quality, and even then ... – Au101 Mar 9 at 3:53
I am afraid I can not agree. This way is simpler than others, no packages required, no special commands. I am here just to help. Also, every time I have a problem, I will come to Stack Exchange for help, if I did not find what I want, I will search other resources. This is why I posted this, I would like to share the idea that works for me from other places to the community. – zhouyiyu Mar 9 at 17:02
But it's exactly the same answer as is given in the first one except that the first one then goes on to show you how to correct the problems you will have if you write \LaTeX is good. Have you tried that? You will find that there will be no space between the LaTeX logo and is – Au101 Mar 9 at 17:06
Sorry, I completely overlooked that. I thought he was talking about something else. Sorry for that. – zhouyiyu Mar 13 at 4:11
That's alright, don't worry, you're more than welcome to participate and, yeah, sharing something that works that isn't covered by other solutions is exactly what we're for. Okay, you overlooked something this time, it's alright, it happens. Don't beat yourself up. But, absolutely, it's important to try not to duplicate answers and this is all the more true on a really old finished question. Stackexchange allows us to always go back to old questions when we need to because things may change. Adding a new answer to an old question is fine. But adding nothing to an old Q is a problem – Au101 Mar 13 at 4:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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