From d419ec5424884a2a18a32b9b96ddf6f5eac8e819 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 25 Jun 2017 11:22:53 +0200 Subject: get the rid of \arbcolor which is not actually needed --- arabluatex.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arabluatex.lua') 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) body = string.sub(body, 2, -2) return string.format("}\\%s{%s}\\arb{", tag, body) end) - -- \arbcolor - str = string.gsub(str, "\\(arbcolor.-)(%b{})(%b{})", + -- \textcolor + str = string.gsub(str, "\\(textcolor.?)(%b{})(%b{})", function(tag, bodycolor, bodytext) bodycolor = string.sub(bodycolor, 2, -2) bodytext = string.sub(bodytext, 2, -2) - return string.format("}\\textcolor{%s}{\\arb{%s}}\\arb{", bodycolor, bodytext) + return string.format("}\\%s{%s}{\\arb{%s}}\\arb{", tag, bodycolor, bodytext) end) -- Footnote str = string.gsub(str, "\\(Footnote.-)(%b{})", -- cgit v1.2.3