使用\textbf{内容}
对内容加粗
加粗前:
$内容$
内
容
内容
内容
加粗后:
$\textbf{内容}$
内容
\textbf{内容}
内容
注意,不能将上标等也直接加粗,如 $\textbf{内容^*}$
,结果为KaTeX parse error: Expected '}', got '^' at position 11: \textbf{内容^̲*}。
应改为$\textbf{内容}^*$
,显示为
内容
∗
\textbf{内容}^*
内容∗