diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index ffdc7c7..c8011b1 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 | -- \textcolor | 76 | -- \arbcolor |
77 | str = string.gsub(str, "\\(textcolor.-)(%b{})(%b{})", | 77 | str = string.gsub(str, "\\(arbcolor.-)(%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("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext) | 81 | return string.format("}\\textcolor{%s}{\\arb{%s}}\\arb{", bodycolor, bodytext) |
82 | end) | 82 | end) |
83 | -- Footnote | 83 | -- Footnote |
84 | str = string.gsub(str, "\\(Footnote.-)(%b{})", | 84 | str = string.gsub(str, "\\(Footnote.-)(%b{})", |