4

Is it possible to define (or is there already) a macro which takes small letters as input but gives the same letters in capital as output?

Example:

\CapLet{horse} and \CapLet{fish}

wiht the output

HORSE and FISH
  • \MakeUppercase? – cmhughes Jun 13 '13 at 23:39
7

\MakeUppercase converts the case of its argument to UPPER CASE.

enter image description here

\documentclass{article}
\let\CapLet\MakeUppercase
\let\LowLet\MakeLowercase
\begin{document}
\CapLet{horse} and \CapLet{fish} \par
\LowLet{HORSE} AND \LowLet{FISH}
\end{document}

It uses the TeX primitive \uppercase internally. A comparable \MakeLowercase exists.

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.