stone-zeng / fduthesis

LaTeX thesis template for Fudan University
LaTeX Project Public License v1.3c
811 stars 205 forks source link

`\msg_fatal:nnx` 放在 `\msg_new:nnn` 前会导致输出不正确 #239

Closed syvshc closed 2 years ago

syvshc commented 2 years ago

https://github.com/stone-zeng/fduthesis/blob/85b5688f0c20d540ed86f3ddb73da77fae3334c6/source/fduthesis.dtx#L2692-L2705

此时终端输出为

! LaTeX3 Error: Unknown message 'unsupported-engine' for module 'fduthesis'.

For immediate help type H <return>.
 ...

l.71   }

如果将 \msg_new:nnn 前置, 则输出正确:

! Fatal Package fduthesis Error: The fduthesis class requires either XeTeX or
(fduthesis)                      LuaTeX.
(fduthesis)
(fduthesis)                      "pdftex" is not supported at present. You
(fduthesis)                      must change
(fduthesis)                      your typesetting engine to "xelatex" or
(fduthesis)                      "lualatex".

Type <return> to continue.
 ...

l.77   }

其他的 msg 的问题也相应存在, 但是由于我的 l3 和 dtx 水平都过于薄弱, 就不乱提 pr 了