Skip to content

Commit

Permalink
Use iftex for error when not running LuaTeX to resolve #22
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Jun 16, 2024
1 parent bdfe9ed commit 4c90c40
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lua-ul.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -942,10 +942,6 @@ require'lua-ul-patches-preserve-attr'
% \fi
% First define some messages.
% \begin{macrocode}
\msg_new:nnnn {lua-ul} {luatex-required} {LuaLaTeX~required} {
Lua-UL~requires~LuaLaTeX.~
Maybe~you~forgot~to~switch~the~engine~in~your~editor?
}
\msg_new:nnnn {lua-ul} {luacolor-required} {
Color~support~in~lua-ul~requires~luacolor.
}{
Expand All @@ -956,9 +952,9 @@ require'lua-ul-patches-preserve-attr'
% Only \LuaLaTeX{} is supported.
% For other engines we show an error.
% \begin{macrocode}
\sys_if_engine_luatex:F {
\msg_error:nn {lua-ul} {luatex-required}
}
\RequirePackage{iftex}
\RequireLuaTeX
%
\lua_load_module:n {lua-ul}
%
% \end{macrocode}
Expand Down

0 comments on commit 4c90c40

Please sign in to comment.