7

I want to change the equation font to mathbf in a single equation environment, equation or align.

How do I do that? I tried

\begin{align}
\begin{mathbf}
equation1 \\
equation2
\end{mathbf}
\end{align}

and

\begin{align}
\mathbf{
equation1 \\
equation2
}
\end{align}

with no luck. It seems as if \\ breaks the \mathbf environment..?

1 Answer 1

5

For making a complete environment bold, you could use the switch \boldmath. \unboldmath switches back.

\boldmath
\begin{align}
  ax + by + c &= 0 \\
  ax - by &= xy
\end{align}
\unboldmath

If \bf is available (base classes still define it), \everymath{\bf} before the align environment switches to the \mathbf font for the complete environment. Of course it could be done without \bf, but it would be the quickest way.

7
  • Thanks for your input! It's definitely an option, but it's not quite the same as mathbf. Your solution sets the equation in bold AND italic, which mathbf doesn't. Commented Jan 8, 2011 at 18:28
  • @mewoshh: Ok, I focussed on bold - but mathbf is possible, I'lledit.
    – Stefan Kottwitz
    Commented Jan 8, 2011 at 18:56
  • @Stefan: \everymath{\bf} also effects footnotes
    – user2478
    Commented Jan 8, 2011 at 19:18
  • @Stefan: btw - what if instead of mathbf I want to use any other of the math fonts, for instance mathtt? Can't use mathbold or bf here - there must be a way to use math* in the environment..? Commented Jan 8, 2011 at 20:03
  • @Herbert: I know, but footnotes should not be used within a math environment, and after it I would disable this setting. I didn't mean to use \everymath simply globally because of such side effects.
    – Stefan Kottwitz
    Commented Jan 8, 2011 at 21:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .