0

I am trying to write an equation in bold and non italic but I can't get it to work because I also want to write a D with two dots over it. Here is my code:

\begin{equation}
\text{\boldsymbol{{M} \ddot{D}} + KD = F}. 
\end{equation}

Thank you!

CWM12
  • 65

2 Answers2

2

Let me spell out @egreg and my comments:

\documentclass{article}
\usepackage{mathtools}

\begin{document} @egreg proposition: \begin{equation} \mathbf{M}\ddot{\mathbf{D}} + KD = F. \end{equation}

My proposition: \begin{equation} \mathbf{M \ddot{D}} + KD = F. \end{equation} \end{document}

enter image description here

Zarko
  • 296,517
1

First of all, there should be no \text: you want a math formula.

If you use \boldsymbol, you get bold (math) italic. If you want bold (math) upright, the command is \mathbf.

Also, each letter should be specified with a distinct call of \mathbf and the double dot (second derivative in Newton notation) should not be bold.

Hence

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation} \mathbf{M} \ddot{\mathbf{D}} + KD = F \end{equation}

\end{document}

The formula is not at all clear, though, but you know better.

enter image description here

egreg
  • 1,121,712