diff --git a/fix_tei.py b/fix_tei.py index 1797f93..f537f37 100644 --- a/fix_tei.py +++ b/fix_tei.py @@ -361,7 +361,7 @@ def cleanup_xml(xml_tree): for attribute in xml_preserve: attribute.attrib.pop("{http://www.w3.org/XML/1998/namespace}space") - formulae = xmltree.xpath("//t:formula", namespaces=NS_MAP) + formulae = xml_tree.xpath("//t:formula", namespaces=NS_MAP) logging.info(f"Found {len(formulae)} formulae.") for formula in formulae: diff --git a/libeoaconvert.py b/libeoaconvert.py index 3a39437..6290594 100644 --- a/libeoaconvert.py +++ b/libeoaconvert.py @@ -200,6 +200,16 @@ def plural(num, noun, plural=None): return phrase # def plural ends here + +def format_citations_tex4ht(used_citekeys, bibdata, language, tmp_filename): + """Return a formatted xmlstring of the used citations""" + + tmp_path_md = "tmp_files" + os.path.sep + tmp_filename + ".tex" + tmp_path_html = "tmp_files" + os.path.sep + tmp_filename + ".html" + + return references +# def format_citations_tex4ht ends here + def format_citations(used_citekeys, bibdata, language, tmp_filename): """Return a formatted xmlstring of the used citations"""