aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-02-28 14:04:51 +0100
committerRobert Alessi <alessi@robertalessi.net>2016-02-28 14:04:51 +0100
commitcd0c5a4d8a864a49039a7cc16fd81ffc57b1edd8 (patch)
tree7f31025df39257546df21e0ff4a66b63ede1b4bd
parent054bc0eec1ba3d89ac9f0e50d3c1fd2c7daa29d2 (diff)
downloadarabluatex-cd0c5a4d8a864a49039a7cc16fd81ffc57b1edd8.tar.gz
define \setRL and \setLR
-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}}}