mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Continue to try fix
This commit is contained in:
parent
024b89a49c
commit
4c72f4ff5d
@ -51,19 +51,17 @@ class newCommand(commandBase):
|
|||||||
if str(tex)==str(cmd):
|
if str(tex)==str(cmd):
|
||||||
tex.expr=fres.expr
|
tex.expr=fres.expr
|
||||||
else:
|
else:
|
||||||
|
tex.replace(cmd,fres)
|
||||||
|
def tryRun(self,tex):
|
||||||
|
cmds=list(tex.find_all(self.commandName))
|
||||||
def tryRun():
|
if len(cmds)!=0:
|
||||||
cmds=list(tex.find_all(self.commandName))
|
for cmd in cmds:
|
||||||
if len(cmds)!=0:
|
if self.argNum==0:
|
||||||
for cmd in cmds:
|
res=self.result
|
||||||
if self.argNum==0:
|
else:
|
||||||
res=self.result
|
res=re.sub('#[1-{}]'.format(self.argNum),lambda m: cmd.args[int(m.group(1))-1],self.result)
|
||||||
else:
|
soup=TexSoup(res)
|
||||||
res=re.sub('#[1-{}]'.format(self.argNum),lambda m: cmd.args[int(m.group(1))-1],self.result)
|
tex.replace(cmd,soup)
|
||||||
soup=TexSoup(res)
|
|
||||||
tex.replace(cmd,soup)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def runAll(tex,collection):
|
def runAll(tex,collection):
|
||||||
@ -109,6 +107,7 @@ def tabularToData(table,commands=None):
|
|||||||
mcolel=child[0]
|
mcolel=child[0]
|
||||||
mcol=multiColumn(mcolel)
|
mcol=multiColumn(mcolel)
|
||||||
el=mcol.contents
|
el=mcol.contents
|
||||||
|
el=desarg(el)
|
||||||
if commands!=None:
|
if commands!=None:
|
||||||
newCommand.runAll(el,commands)
|
newCommand.runAll(el,commands)
|
||||||
for i in range(int(mcol.cols)):
|
for i in range(int(mcol.cols)):
|
||||||
|
Loading…
Reference in New Issue
Block a user