From d4fe4e8acd234bd4d1926a60816b6de3be1af9eb Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Mon, 4 Nov 2019 09:58:58 +0100
Subject: use recommended iftex and \RequireLuaTeX

---
 arabluatex.dtx | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index ed46e8e..df9f986 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4293,18 +4293,12 @@
 % functions and tables. Read the |.lua| files that accompany
 % \package{arabluatex} for more information.
 %    \begin{macrocode}
-\RequirePackage{ifluatex}
+\RequirePackage{iftex}
 %    \end{macrocode}
 % \package{arabluatex} requires {\LuaLaTeX} of course. Issue a warning
 % if the document is processed with another engine.
 %    \begin{macrocode}
-\ifluatex\else
- \PackageError{arabluatex}{lualatex needed}{%
-  Package `arabluatex' needs LuaTeX.\MessageBreak
-  So you should use `lualatex' to process your document.\MessageBreak
-  See documentation of `arabluatex' for further information.}%
-  \expandafter\expandafter\expandafter\csname endinput\endcsname
-\fi
+\RequireLuaTeX
 %    \end{macrocode}
 % Declare the global options, and define them:
 %    \begin{macrocode}
-- 
cgit v1.2.3

