aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-08-23 13:13:00 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-08-23 13:13:00 +0200
commit873360215487c7c7cb45a9324fc25f9d89f0a137 (patch)
tree59a3c7c1d6633ea93bea65a4bafadaefbec8066f /arabluatex.dtx
parent9d6f3f6650abdaaa832c82ff77b83c4a9a8f3401 (diff)
downloadarabluatex-873360215487c7c7cb45a9324fc25f9d89f0a137.tar.gz
new optional argument, either 'rl' or 'lr', added to \arbmark
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx9
1 files changed, 6 insertions, 3 deletions
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
4394% \begin{macro}{\arbmark} 4394% \begin{macro}{\arbmark}
4395% \changes{v1.11}{2018/03/31}{New command for inserting additional 4395% \changes{v1.11}{2018/03/31}{New command for inserting additional
4396% marks in Arabic environments} \cs{arbmark} takes one argument from a 4396% marks in Arabic environments} \cs{arbmark} takes one argument from a
4397% list of defined elements. This command is coded in Lua. 4397% list of defined elements. This command is coded in
4398% Lua. \changes{v1.13}{2018/08/23}{New optional argument: either
4399% \texttt{rl} or \texttt{lr}}
4398% \begin{macrocode} 4400% \begin{macrocode}
4399\NewDocumentCommand{\arbmark}{m}{% 4401\NewDocumentCommand{\arbmark}{O{} m}{%
4400 \bgroup% 4402 \bgroup%
4401 \SetInputScheme{arabtex}% 4403 \SetInputScheme{arabtex}%
4402 \luadirect{tex.sprint(processarbmarks(\luastringN{#1}))}% 4404 \luadirect{tex.sprint(processarbmarks(\luastringN{#2},
4405 \luastringN{#1}))}%
4403 \egroup} 4406 \egroup}
4404% \end{macrocode} 4407% \end{macrocode}
4405% \end{macro} 4408% \end{macro}