[Tex/LaTex] How to write “LaTeX” in LaTeX with the first letter bolded

boldfontsformattingsymbols

So I know to write \LaTeX to get the symbol, but is there a way to do it letter by letter so as to make the first letter bold?

Best Answer

Note: There's a similar question and answer here: Color up each letter of \LaTeX word

You can find the definitions of \TeX, \LaTeX and \LaTeXe in latex.ltx (which is really, really surprising ;-) )

Easiest way is to use the definitions and save them as new commands, say \BLaTeX for Bold \LaTeX ;-)

However, the kerning is wrong initially, so I changed it slightly -- please provide own values for the kerning if the given example does not really fit yet regarding personal taste.

\documentclass{article}

\usepackage{xcolor}
\makeatletter
\newcommand{\Lletterstyle}[1]{%
  \textcolor{red}{\textbf{#1}}%
}
\DeclareRobustCommand{\BLaTeX}{\Lletterstyle{L}\kern-.35em%
  {\sbox\z@ T%
    \vbox to\ht\z@{\hbox{\check@mathfonts
        \fontsize\sf@size\z@
        \math@fontsfalse\selectfont
        A}%
      \vss}%
  }%
  \kern-.15em%
  \TeX%
}
\DeclareRobustCommand{\BLaTeXe}{\mbox{\m@th
  \if b\expandafter\@car\f@series\@nil\boldmath\fi
  \BLaTeX\kern.15em2$_{\textstyle\varepsilon}$}}
\makeatother

\begin{document}

\BLaTeX\ or \LaTeX

\BLaTeXe\ or \LaTeXe

Huge:\huge

\BLaTeX\ or \LaTeX

\BLaTeXe\ or \LaTeXe


\end{document}

enter image description here