aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arabluatex.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index 94332e0..8ba42fd 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -101,14 +101,14 @@ local function breakcmd(str)
101 end) 101 end)
102 str = string.gsub(str, "(\\item)(%s+)", "%1{}%2") 102 str = string.gsub(str, "(\\item)(%s+)", "%1{}%2")
103 -- \textcolor 103 -- \textcolor
104 str = string.gsub(str, "\\(textcolor.?)(%b{})(%b{})", 104 str = string.gsub(str, "\\(textcolor%s?)(%b{})(%b{})",
105 function(tag, bodycolor, bodytext) 105 function(tag, bodycolor, bodytext)
106 bodycolor = string.sub(bodycolor, 2, -2) 106 bodycolor = string.sub(bodycolor, 2, -2)
107 bodytext = string.sub(bodytext, 2, -2) 107 bodytext = string.sub(bodytext, 2, -2)
108 return string.format("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext) 108 return string.format("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext)
109 end) 109 end)
110 -- Abjad 110 -- Abjad
111 str = string.gsub(str, "\\(abjad.-)(%b{})", 111 str = string.gsub(str, "\\(abjad%s?)(%b{})",
112 function(tag, body) 112 function(tag, body)
113 body = string.sub(body, 2, -2) 113 body = string.sub(body, 2, -2)
114 return string.format("}\\aemph{\\%s{%s}}\\arb{", tag, body) 114 return string.format("}\\aemph{\\%s{%s}}\\arb{", tag, body)