# How to get the “LaTeX” symbol correctly?

I am trying to write "LaTeX" in my latex file, but on writing \LaTeX, I am getting this output:

What I want is the standard way in which LaTeX is written. How do I go about getting it?

• – Cragfelt Dec 30 '17 at 19:10
• What do yo mean by standard way? It is the one with roman font? – Cragfelt Dec 30 '17 at 19:11
• Don't use the slash then, just TYPE LaTeX as standard TEXT. – Chen Stats Yu Dec 30 '17 at 19:27
• @Cragfelt Yes, I meant that! – nik610 Dec 31 '17 at 20:46
• @Chen Actually that didn't help as well. – nik610 Dec 31 '17 at 20:50

Your current font is probably a sans-serif one (Latin Modern/Computer moder Sans Serif, I guess). You may use a macro such as

\newcommand{\mylatex}{\textrm{\LaTeX}}


to ensure that \LaTeX is typesetted the way you want, whatever the current font is.

\documentclass{article}
\newcommand{\mylatex}{\textrm{\LaTeX}}
\begin{document}
\sffamily This is \LaTeX{} versus \mylatex.
\end{document}