![为什么 nwu-lecture-style 中的宽度不起作用?](https://linux22.com/image/280147/%E4%B8%BA%E4%BB%80%E4%B9%88%20nwu-lecture-style%20%E4%B8%AD%E7%9A%84%E5%AE%BD%E5%BA%A6%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%9F.png)
看来代码在nwu-lecture-style
:
\insertshortauthor[width=2cm-2pt,center,respectlinebreaks]\par%
不起作用?我试过:
\insertshortauthor[width=2cm minus 2pt,center,respectlinebreaks]\par%
它也不起作用,如何解决?
答案1
当我使用时它有效:
\newlength{\shortauthor}
\setlength{\shortauthor}{2cm minus 2pt}
\insertshortauthor[width=\shortauthor,center,respectlinebreaks]\par%
答案2
使用
\insertshortauthor[width=\dimexpr2cm-2pt,center,respectlinebreaks]\par%