[Textures] defining a function

Bruno Voisin bvoisin at me.com
Thu Oct 4 12:53:09 EDT 2012


Le 4 oct. 2012 à 18:36, Leon Heller <lheller at lanl.gov> a écrit :

> I am writing a paper that uses the function \mathbf{ } very frequently and would like to define a function with a shorter name, such as \mb{ } to stand for it. How do I do this?

\newcommand{\mb}[1]{\ensuremath{\mathbf{#1}}}

To get something working the same way with math symbols (ie symbols, Greek letters etc.), there's the very convenient bm package defining a \bm command, for example \bm{\alpha} produces a bold alpha.

Bruno Voisin




More information about the Textures mailing list