0

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

enter image description here

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

  • Welcome to TeX.SE!. – Cragfelt Dec 30 '17 at 19:10
  • 3
    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
5

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}

enter image description here

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.