aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-05-07 18:43:35 +0200
committerRobert Alessi <alessi@robertalessi.net>2016-05-07 18:43:35 +0200
commit3a541689af28f049f62be1f1b4df97763179f847 (patch)
tree325f19919dd21356094c4c0511e29632c8a53f6f
parentdecd74458045df32ca6918afb78f4e1e770d634f (diff)
downloadarabluatex-3a541689af28f049f62be1f1b4df97763179f847.tar.gz
redefine \abjad in case polyglossia Arabic is loaded
-rw-r--r--arabluatex.dtx8
1 files changed, 7 insertions, 1 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 6a94dab..dc7193f 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -2158,8 +2158,14 @@ wa-ya.sIru ta.hta 'l-jildi
2158% \changes{v1.1}{2016/04/26}{New and more flexible \protect\cs{abjad} 2158% \changes{v1.1}{2016/04/26}{New and more flexible \protect\cs{abjad}
2159% command.} 2159% command.}
2160% \begin{macrocode} 2160% \begin{macrocode}
2161\NewDocumentCommand{\abjad}{m}% 2161\AtBeginDocument{%
2162 \ifdefined\abjad%
2163 \RenewDocumentCommand{\abjad}{m}%
2164 {\luadirect{tex.sprint(abjadify(#1))}}%
2165 \else%
2166 \NewDocumentCommand{\abjad}{m}%
2162 {\luadirect{tex.sprint(abjadify(#1))}} 2167 {\luadirect{tex.sprint(abjadify(#1))}}
2168\fi}
2163% \end{macrocode} 2169% \end{macrocode}
2164% \end{macro} 2170% \end{macro}
2165% \begin{macro}{\LRmarginpar} \cs{LRmarginpar} is supposed to be 2171% \begin{macro}{\LRmarginpar} \cs{LRmarginpar} is supposed to be