在 3.08 版本中,用户反馈模板在和 yhmath 以及 esvect 等宏包搭配使用的时候会出现报错:
yhmath
esvect
LaTeX Error: Too many symbol fonts declared.
原因是模板重新定义了数学字体,达到了最多 16 个数学字体的上限,在调用其他宏包的时候,无法新增数学字体。为了减少调用非常用宏包,在此给出如何调用 yhmath 以及 esvect 宏包的方法。
请在 elegantbook.cls 内搜索 yhmath 或者 esvect,将你所需要的宏包加载语句取消注释即可。
elegantbook.cls
%%% use yhmath pkg, uncomment following code % \let\oldwidering\widering % \let\widering\undefined % \RequirePackage{yhmath} % \let\widering\oldwidering %%% use esvect pkg, uncomment following code % \RequirePackage{esvect}
Deleting the wiki page "符号字体" cannot be undone. Continue?