From 873360215487c7c7cb45a9324fc25f9d89f0a137 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Thu, 23 Aug 2018 13:13:00 +0200
Subject: new optional argument, either 'rl' or 'lr', added to \arbmark

---
 arabluatex.dtx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 6469ed3..a45b3bd 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4394,12 +4394,15 @@ wa-ya.sIru ta.hta 'l-jild-i
 % \begin{macro}{\arbmark}
 % \changes{v1.11}{2018/03/31}{New command for inserting additional
 % marks in Arabic environments} \cs{arbmark} takes one argument from a
-% list of defined elements. This command is coded in Lua.
+% list of defined elements. This command is coded in
+% Lua. \changes{v1.13}{2018/08/23}{New optional argument: either
+% \texttt{rl} or \texttt{lr}}
 %    \begin{macrocode}
-\NewDocumentCommand{\arbmark}{m}{%
+\NewDocumentCommand{\arbmark}{O{} m}{%
   \bgroup%
   \SetInputScheme{arabtex}%
-  \luadirect{tex.sprint(processarbmarks(\luastringN{#1}))}%
+  \luadirect{tex.sprint(processarbmarks(\luastringN{#2},
+    \luastringN{#1}))}%
   \egroup}
 %    \end{macrocode}
 % \end{macro}
-- 
cgit v1.2.3

