mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 05:31:51 +02:00
Support $\sim$
This commit is contained in:
parent
c897c5e1ff
commit
4d4f1acf30
@ -23,8 +23,13 @@ def desarg(tex):
|
|||||||
return nodify(lst,tex.name,tex.parent)
|
return nodify(lst,tex.name,tex.parent)
|
||||||
def getValFromCell(cell):
|
def getValFromCell(cell):
|
||||||
unsafe=False
|
unsafe=False
|
||||||
val= list(cell.contents)[0]
|
lst= list(cell.contents)
|
||||||
if type(val) is TexNode and val.name=='emph':
|
val= lst[0]
|
||||||
|
if type(val) is TexNode and str(val.expr)=='$\sim$' :
|
||||||
|
unsafe=True
|
||||||
|
val = lst[1]
|
||||||
|
val=checkFloat(str(val))
|
||||||
|
elif type(val) is TexNode and val.name=='emph':
|
||||||
unsafe=True
|
unsafe=True
|
||||||
val=val.string
|
val=val.string
|
||||||
val=checkFloat(str(val))
|
val=checkFloat(str(val))
|
||||||
|
Loading…
Reference in New Issue
Block a user