From 6fd591423c4fb66a6d07dff777e0578b942f8fe3 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 13 Dec 2016 08:34:39 +0100
Subject: verse: allow footnotes if 'footnote' package is loaded

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

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 78e8832..f728dc4 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -3018,6 +3018,7 @@ wa-ya.sIru ta.hta 'l-jild-i
 \NewDocumentCommand{\SetHemistichDelim}{m}{\def\al@hemistich@delim{#1}}
 \def\al@verse@stroke{\leavevmode\xleaders\hbox{\arb{--}}\hfill\kern0pt}
 \NewDocumentCommand{\bayt}{m o m}{%
+  \ifdefined\savenotes\savenotes\else\fi%
   \edef\al@tatweel{--}%
   \adjustbox{width=\al@bayt@width, height=\Height}{\arb{#1}}%
   \IfNoValueTF{#2}{%
@@ -3028,13 +3029,13 @@ wa-ya.sIru ta.hta 'l-jild-i
     \ifx\al@mode\al@mode@trans%
     \hspace{\al@tadwir@width}%
     \else%
-    % \adjustbox{width=\al@tadwir@width, height=\Height}{\arb{--}}%
     \makebox[\al@tadwir@width][s]{\al@verse@stroke}%
     \fi%
     \else%
     \adjustbox{center=\al@tadwir@width, height=\Height}{\arb{#2}}
     \fi}%
   \adjustbox{width=\al@bayt@width, height=\Height}{\arb{#3}}%
+  \ifdefined\spewnotes\spewnotes\else\fi%
 }
 %    \end{macrocode}
 %   
-- 
cgit v1.2.3

