Small fixes.

This commit is contained in:
Adam Fourney 2025-03-28 15:07:19 -07:00
parent c3bc1d8154
commit 344f34c043
3 changed files with 4 additions and 5 deletions

View file

@ -38,6 +38,7 @@ all = [
"pandas", "pandas",
"openpyxl", "openpyxl",
"xlrd", "xlrd",
"lxml",
"pdfminer.six", "pdfminer.six",
"olefile", "olefile",
"pydub", "pydub",

View file

@ -258,7 +258,7 @@ RAD = "\\sqrt[{deg}]{{{text}}}"
RAD_DEFAULT = "\\sqrt{{{text}}}" RAD_DEFAULT = "\\sqrt{{{text}}}"
ARR = "\\begin{{array}}{{c}}{text}\end{{array}}" ARR = "\\begin{{array}}{{c}}{text}\\end{{array}}"
LIM_FUNC = { LIM_FUNC = {
"lim": "\\lim_{{{lim}}}", "lim": "\\lim_{{{lim}}}",
@ -270,4 +270,4 @@ LIM_TO = ("\\rightarrow", "\\to")
LIM_UPP = "\\overset{{{lim}}}{{{text}}}" LIM_UPP = "\\overset{{{lim}}}{{{text}}}"
M = "\\begin{{matrix}}{text}\end{{matrix}}" M = "\\begin{{matrix}}{text}\\end{{matrix}}"

View file

@ -73,7 +73,6 @@ def get_val(key, default=None, store=CHR):
class Tag2Method(object): class Tag2Method(object):
def call_method(self, elm, stag=None): def call_method(self, elm, stag=None):
getmethod = self.tag2meth.get getmethod = self.tag2meth.get
if stag is None: if stag is None:
@ -126,7 +125,6 @@ class Tag2Method(object):
class Pr(Tag2Method): class Pr(Tag2Method):
text = "" text = ""
__val_tags = ("chr", "pos", "begChr", "endChr", "type") __val_tags = ("chr", "pos", "begChr", "endChr", "type")
@ -341,7 +339,7 @@ class oMath2Latex(Tag2Method):
""" """
rows = [] rows = []
for stag, t, e in self.process_children_list(elm): for stag, t, e in self.process_children_list(elm):
if stag is "mPr": if stag == "mPr":
pass pass
elif stag == "mr": elif stag == "mr":
rows.append(t) rows.append(t)