Quick way to make 26 macros (one for each letter)

Posted by Geoff on Stack Overflow See other posts from Stack Overflow or by Geoff
Published on 2010-06-01T20:12:41Z Indexed on 2010/06/02 11:03 UTC
Read the original article Hit count: 137

Filed under:

Instead of making a macro for each letter, as in

\def\bA{\mathbf{A}}
...
\def\bZ{\mathbf{Z}}

Is there a way to loop over a character class (like capital letters) and generate macros for each? I'd also like to do the same for Greek letters (using bm instead of mathbf).

© Stack Overflow or respective owner

Related posts about latex