diff options
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r-- | arabluatex.dtx | 8 |
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 |