diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-10-26 15:26:10 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-10-26 15:26:10 +0200 |
commit | 29b9b2909973d24b37836a2339ec435db3c0846c (patch) | |
tree | 0ba227105eb087fa14b06130af634b2c96dcd4e6 | |
parent | dbe3fc48b63e793a72baa585ead8e1ad18fbb213 (diff) | |
download | ekdosis-29b9b2909973d24b37836a2339ec435db3c0846c.tar.gz |
process commands without mandatory argument through cmdtotei()
-rw-r--r-- | ekdosis.dtx | 4 |
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 | |||
1541 | local function cmdtotei(str) | 1541 | local 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) |