Is there a quicker way of doing boldface in math mode instead of typing out \mathbf{} each time? (It gets cumbersome when you denote simple vectors with boldface...)
|
There's a really cheesy way of saving keystrokes that is no longer than Todd's answer but just as comprehensive as Yiannis's:
Explanation: a control sequence whose name is a non-letter doesn't require either spaces or braces after it (unless of course you want it to act on multiple tokens, like plain |
|||||||||||||
|
|
Just to expand on Todd Lehman's answer, you can save a bit of typing in the definitions, by automating the creation of the commands: The LaTeX kernel has a looping construct named
The full MWE is shown below:
To have bold greek, we can use a similar technique. This time we will put all the greek letters in a comma delimited list, like:
we can then iterate over it, this time using a
Will output
|
|||||||||||||||||||||
|
|
What you want is not necessarily a faster way to write In this case, I would define a set of very short letter-specific macros, one for each vector variable. For example:
|
|||||
|
|
You can define a
|
|||||||
|
|
Define a command that takes an argument. No need to use a non-letter name: If your vector names are a single letter, you don't need to type the braces:
You do need a space after \V (unless you use a non-letter instead of V). |
|||||||||
|


$\mathbf{x}$. – jamaicanworm Feb 25 '12 at 3:57\bmfrom thebmpackage, does not get much fater than that, and then$\bm{v}=(v_1,v_2,\dots,v_n)$does not look odd any more (seems to to me to use upright bold instead of italic bold) – daleif Feb 25 '12 at 14:35