From e648b6b468b91bbfed6f8e42ff98b24696e0d408 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 20 Nov 2018 09:55:53 +0100
Subject: do not load amsmath anymore

---
 arabluatex.dtx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 89ab60a..eef91e5 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4348,7 +4348,6 @@ wa-ya.sIru ta.hta 'l-jild-i
 \RequirePackage{etoolbox}
 \RequirePackage{arabluatex-patch}
 \RequirePackage{fontspec}
-\RequirePackage{amsmath}
 \RequirePackage{luacode}
 \RequirePackage{xparse}
 \RequirePackage{environ}
@@ -4435,7 +4434,9 @@ wa-ya.sIru ta.hta 'l-jild-i
 %   and manual hyphenation for transliterated Arabic.
 %    \begin{macrocode}
 \def\oline{\@ifstar\@oline\@@oline}
-\newcommand{\@oline}[1]{$\overline{\text{#1}}$}
+% with |amsmath|, was:
+% \newcommand{\@oline}[1]{$\overline{\text{#1}}$}
+\newcommand{\@oline}{\bgroup \ULdepth=-3ex \ULset}
 \def\@@oline{\bgroup \ULdepth=-3ex \ULset}
 \AtBeginDocument{\ifdef{\aemph}%
   {\RenewDocumentCommand{\aemph}{s m}{%
-- 
cgit v1.2.3

