ustctug / ustcthesis

LaTeX template for USTC thesis
https://gradschool.ustc.edu.cn/column/65
LaTeX Project Public License v1.3c
1.6k stars 396 forks source link

编写符号说明 notation 时,无法在 \item[$ $] 内插入中括号 #364

Closed ustcwl closed 1 year ago

ustcwl commented 1 year ago

检查

编译环境

描述问题

使用科大博士论文模板编译符号说明(notation) 时,使用中括号 '[ ]' 报错,请问该怎么解决

截图: image

复现上述问题的代码:

\begin{notation}

  \begin{notationlist}{2em}
    \item[$ f[\omega] $] 
  \end{notationlist}

\end{notation}
sikouhjw commented 1 year ago
\item[$ f\lbrack \omega \rbrack $]
ustcwl commented 1 year ago
\item[$ f\lbrack \omega \rbrack $]

Thanks

zepinglee commented 1 year ago

大概是因为 [$ f[\omega] 两端的方括号匹配到一起了。

另一种方法是用大括号将里面的内容保护起来:\item[{$ f[\omega] $}]