From 8b6faaa71245194a1486871cc2b6e93d4e199c58 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 28 May 2018 18:13:18 +0200 Subject: moved \item into 'albrkcmds' --- arabluatex.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'arabluatex.lua') diff --git a/arabluatex.lua b/arabluatex.lua index f6110f9..32b3ac7 100644 --- a/arabluatex.lua +++ b/arabluatex.lua @@ -57,6 +57,7 @@ end -- arabluatex. 'albrkcmds' is what is set by default. 'brkcmds' is -- what may be set in the preamble as argument of \MkArbBreak{} local albrkcmds = { + "item", "Footnote", "Marginpar", "edtext", @@ -99,13 +100,6 @@ local function breakcmd(str) str = gsub(str, dblbkslash * lpeg.Cs(brkcmds[i]) * cmdargs, "}%1%2%3\\arb{") end end - -- process \item[], then \item - str = string.gsub(str, "\\(item.?)(%b[])", - function(tag, body) - body = string.sub(body, 2, -2) - return string.format("}\\item[\\arb{%s}] \\arb{", body) - end) - str = string.gsub(str, "(\\item)(%s+)", "%1{}%2") -- \RL str = string.gsub(str, "\\(RL.-)(%b{})", function(tag, body) -- cgit v1.2.3