aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.dtx2
1 files changed, 2 insertions, 0 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 9c2ac08..0ebd555 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -200,6 +200,8 @@
200\PackageWarning{arabluatex}{\string\arabicfont\ is not defined!^^JI 200\PackageWarning{arabluatex}{\string\arabicfont\ is not defined!^^JI
201 will try to load Amiri}% 201 will try to load Amiri}%
202\newfontfamily\arabicfont[Script=Arabic]{Amiri}\fi}% 202\newfontfamily\arabicfont[Script=Arabic]{Amiri}\fi}%
203\AtBeginDocument{\def\setRL{\pardir TRT\textdir TRT}}
204\AtBeginDocument{\def\setLR{\pardir TLT\textdir TLT}}
203\AtBeginDocument{\ifdef{\LR}% 205\AtBeginDocument{\ifdef{\LR}%
204 {\RenewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}} 206 {\RenewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}}
205 {\NewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}}} 207 {\NewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}}}