Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
syvshc opened this issue Feb 16, 2022 · 0 comments
Closed

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

syvshc opened this issue Feb 16, 2022 · 0 comments
Labels

Comments

@syvshc
Copy link

syvshc commented Feb 16, 2022

fduthesis/source/fduthesis.dtx

Lines 2692 to 2705 in 85b5688

\sys_if_engine_xetex:F
{
\sys_if_engine_luatex:F
{
\msg_fatal:nnx { fduthesis } { unsupported-engine }
{ \c_sys_engine_str }
}
}
\msg_new:nnn { fduthesis } { unsupported-engine }
{
The~ fduthesis~ class~ requires~ either~ XeTeX~ or~ LuaTeX. \\\\
"#1"~ is~ not~ supported~ at~ present.~ You~ must~ change \\
your~ typesetting~ engine~ to~ "xelatex"~ or~ "lualatex".
}

此时终端输出为

! 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 了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants