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!
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!
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}
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.
\begin{equation} \mathbf{M \ddot{D}} + KD = F. \end{equation}– Zarko Jul 25 '21 at 09:44\mathbf{M}\ddot{\mathbf{D}}– egreg Jul 25 '21 at 09:47