aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.lua
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2017-06-25 11:22:53 +0200
committerRobert Alessi <alessi@robertalessi.net>2017-06-25 11:22:53 +0200
commitd419ec5424884a2a18a32b9b96ddf6f5eac8e819 (patch)
treeb422a777b51b4407b02c092b5944aa17fe9d936e /arabluatex.lua
parent20c8ba08828511c818741e234db2c33668dc8870 (diff)
downloadarabluatex-d419ec5424884a2a18a32b9b96ddf6f5eac8e819.tar.gz
get the rid of \arbcolor which is not actually needed
Diffstat (limited to 'arabluatex.lua')
-rw-r--r--arabluatex.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/arabluatex.lua b/arabluatex.lua
index c8011b1..1793564 100644
--- a/arabluatex.lua
+++ b/arabluatex.lua
@@ -73,12 +73,12 @@ local function breakcmd(str)
73 body = string.sub(body, 2, -2) 73 body = string.sub(body, 2, -2)
74 return string.format("}\\%s{%s}\\arb{", tag, body) 74 return string.format("}\\%s{%s}\\arb{", tag, body)
75 end) 75 end)
76 -- \arbcolor 76 -- \textcolor
77 str = string.gsub(str, "\\(arbcolor.-)(%b{})(%b{})", 77 str = string.gsub(str, "\\(textcolor.?)(%b{})(%b{})",
78 function(tag, bodycolor, bodytext) 78 function(tag, bodycolor, bodytext)
79 bodycolor = string.sub(bodycolor, 2, -2) 79 bodycolor = string.sub(bodycolor, 2, -2)
80 bodytext = string.sub(bodytext, 2, -2) 80 bodytext = string.sub(bodytext, 2, -2)
81 return string.format("}\\textcolor{%s}{\\arb{%s}}\\arb{", bodycolor, bodytext) 81 return string.format("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext)
82 end) 82 end)
83 -- Footnote 83 -- Footnote
84 str = string.gsub(str, "\\(Footnote.-)(%b{})", 84 str = string.gsub(str, "\\(Footnote.-)(%b{})",