0

I normally use \verb|\LaTeXe| to typeset the command \LaTeXe in my document. But now I want to frame or/and colorize the command \LaTeXe. How can we do that?

\documentclass{article}
\usepackage{xcolor}
\begin{document}
\textcolor{blue}{text}\\ % without \verb is ok
\textcolor{blue}{\verb|\LaTeXe|}\\ % this is illegal, but I want to colorize the command \LaTeX2e
\fbox{text}\\ % without \verb is ok
\fbox{\verb|\LaTeXe|} % this is illegal too, but I want to frame around the command \LaTeXe. So how can I do that?
\end{document}

Browse other questions tagged or ask your own question.