使用USTCthesis模板中的粗体字问题:LaTeX Error: \symbf allowed only in math mode.

问题

报错:
! LaTeX Error: \symbf allowed only in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H  for immediate help.
 ...                                              
                                                  
l.378    }

分析

源码定位到\textbf{Find Solution of Master Problem \bm{\mathcal{P}}3:}

主要是程序认为\mathcal{P}应该在数学模式中,因此改为\textbf{Find Solution of Master Problem \bm{$\mathcal{P}$}3:}

结果还是报错为:

! LaTeX Error: \symbfallowed only in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H  for immediate help.
 ...                                              
                                                  
l.378    }

继续改为:\textbf{Find Solution of Master Problem $\mathcal{P}$3:}

此时编译通过

总结:

\textbf{}中不希望再有嵌套的\bm{}

 

 

你可能感兴趣的:(软件,latex)