
\usepackage{amsmath}
\begin{document}
\begin{align}
E= \textbf{I_{1}} \cdot R_{1} + \textbf{I_{1}}
\end{align}
\end{document}
答え1
コードの問題は、引数をテキスト モードで設定し、テキスト モードでは\textbf
添え字表記が存在しないことです。_
方程式の特定の要素を強調表示したり、太字数式モードでは、\mathbf
または\bm
(から)を使用することを検討してくださいbm
):
\documentclass{article}
\usepackage{amsmath,bm}
\begin{document}
\begin{align*}
E &= \textbf{I\textsubscript{1}} \cdot R_1 + \textbf{I\textsubscript{1}} \\
E &= \mathbf{I}_1 \cdot R_1 + \mathbf{I}_1 \\
E &= \bm{I}_1 \cdot R_1 + \bm{I}_1 \\
E &= \bm{I_1} \cdot R_1 + \bm{I_1}
\end{align*}
\end{document}
答え2
必要な閉じ中括弧に加えて、\textbf
をに変更することをお勧めします\mathbf
。つまり、次のようになります。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
E &= \mathbf{I}_{1} \cdot R_{1} + \mathbf{I}_{1}
\end{align}
\end{document}
1
下付き文字は太字で表示しないことに注意してください。