aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-10-26 15:26:10 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-10-26 15:26:10 +0200
commit29b9b2909973d24b37836a2339ec435db3c0846c (patch)
tree0ba227105eb087fa14b06130af634b2c96dcd4e6
parentdbe3fc48b63e793a72baa585ead8e1ad18fbb213 (diff)
downloadekdosis-29b9b2909973d24b37836a2339ec435db3c0846c.tar.gz
process commands without mandatory argument through cmdtotei()
-rw-r--r--ekdosis.dtx4
1 files changed, 3 insertions, 1 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index d5c6bd5..a7a6dac 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -577,7 +577,7 @@ idno={}, msName={}, origDate={}][3]{%
577 \egroup% 577 \egroup%
578 \fi% 578 \fi%
579 \if@pkg@float% 579 \if@pkg@float%
580 \keyparbox[b!]{}{\ifrtl@app\setRL\fi% 580 \keyparbox[!b]{}{\ifrtl@app\setRL\fi%
581 \if@pkg@parnotes% 581 \if@pkg@parnotes%
582 \if@parnotesroman% 582 \if@parnotesroman%
583 \renewcommand*{\theparnotemark}{\roman{parnotemark}}\else\fi% 583 \renewcommand*{\theparnotemark}{\roman{parnotemark}}\else\fi%
@@ -1541,6 +1541,8 @@ end
1541local function cmdtotei(str) 1541local function cmdtotei(str)
1542 for i = 1,#cmdtotags 1542 for i = 1,#cmdtotags
1543 do 1543 do
1544 str = gsub(str, lpeg.P("\\") * lpeg.Cs(cmdtotags[i].a) * spcenc^-1 * bsqbrackets * -bcbraces, "\\%1%2{}")
1545 str = gsub(str, lpeg.P("\\") * lpeg.Cs(cmdtotags[i].a) * spcenc^-1 * -(bsqbrackets + bcbraces), "\\%1[]{}")
1544 str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?%*?(%b{})", "%1[]%2") 1546 str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?%*?(%b{})", "%1[]%2")
1545 str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?%*?(%b[])(%b{})", 1547 str = string.gsub(str, "(\\"..cmdtotags[i].a..")%s?%*?(%b[])(%b{})",
1546 function(cmd, arg, body) 1548 function(cmd, arg, body)