From cd0c5a4d8a864a49039a7cc16fd81ffc57b1edd8 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Sun, 28 Feb 2016 14:04:51 +0100
Subject: define \setRL and \setLR

---
 arabluatex.dtx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 9c2ac08..0ebd555 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -200,6 +200,8 @@
 \PackageWarning{arabluatex}{\string\arabicfont\ is not defined!^^JI
   will try to load Amiri}%
 \newfontfamily\arabicfont[Script=Arabic]{Amiri}\fi}%
+\AtBeginDocument{\def\setRL{\pardir TRT\textdir TRT}}
+\AtBeginDocument{\def\setLR{\pardir TLT\textdir TLT}}
 \AtBeginDocument{\ifdef{\LR}%
   {\RenewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}}
   {\NewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}}}
-- 
cgit v1.2.3

