aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-02-26 10:50:17 +0100
committerRobert Alessi <alessi@robertalessi.net>2016-02-26 10:50:17 +0100
commit029c8797e6e32adfcb79fc4c1f72377592c35f82 (patch)
treea0d4a348cb8b266d5afee8030ed07594376ce13d /arabluatex.dtx
parentf2911c64dda6d51f87791942660689e6d782b1f6 (diff)
downloadarabluatex-029c8797e6e32adfcb79fc4c1f72377592c35f82.tar.gz
(re)define \LR{} command \AtBeginDocument{} in case luabidi is loaded
Diffstat (limited to 'arabluatex.dtx')
-rw-r--r--arabluatex.dtx3
1 files changed, 3 insertions, 0 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx
index 67fa916..c0e1163 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -203,6 +203,9 @@
203\AtBeginDocument{\ifdef{\LR}% 203\AtBeginDocument{\ifdef{\LR}%
204 {\renewrobustcmd{\LR}[1]{\bgroup\textdir TLT\rmfamily#1\egroup}} 204 {\renewrobustcmd{\LR}[1]{\bgroup\textdir TLT\rmfamily#1\egroup}}
205 {\newrobustcmd{\LR}[1]{\bgroup\textdir TLT\rmfamily#1\egroup}}} 205 {\newrobustcmd{\LR}[1]{\bgroup\textdir TLT\rmfamily#1\egroup}}}
206\AtBeginDocument{\ifdef{\RL}%
207 {\renewrobustcmd{\RL}[1]{\bgroup\textdir TRT\rmfamily#1\egroup}}
208 {\newrobustcmd{\RL}[1]{\bgroup\textdir TRT#1\rmfamily\egroup}}}
206\DeclareDocumentCommand{\txarb}{+m}{\bgroup\textdir TRT\arabicfont#1\egroup} 209\DeclareDocumentCommand{\txarb}{+m}{\bgroup\textdir TRT\arabicfont#1\egroup}
207\DeclareDocumentCommand{\arb}{O{\al@mode} +m}% 210\DeclareDocumentCommand{\arb}{O{\al@mode} +m}%
208{\edef\@tempa{#1}% 211{\edef\@tempa{#1}%