def xArrayRow(nd): mr = etree.Element(NSM + 'mr') getap(nd).append(mr) setx(nd, mr, mr) ct.cnl(nd) if nd.parentNode.nodeName == 'eqnarray': e = etree.Element(NSM + 'e') mr.append(e) if nd.ref != None: ntf.push() ntf.set() e.append(txt.tr(' (' + nd.ref.textContent + ')')) ntf.pop()
def xArrayRow(nd): mr = etree.Element(NSM + "mr") getap(nd).append(mr) setx(nd, mr, mr) ct.cnl(nd) if nd.parentNode.nodeName == "eqnarray": e = etree.Element(NSM + "e") mr.append(e) if nd.ref != None: ntf.push() ntf.set() e.append(txt.tr(" (" + nd.ref.textContent + ")")) ntf.pop()
def xmath(nd): mmf.push() mmf.set() if ntf.isset(): ntf.push() ntf.clear() setap(nd, getap(nd)) ct.cnl(nd) ntf.pop() else: e = etree.Element(NSM + 'oMath') setx(nd, e, e) ct.cnl(nd) getap(nd).append(e) mmf.pop()
def xmath(nd): mmf.push() mmf.set() if ntf.isset(): ntf.push() ntf.clear() setap(nd, getap(nd)) ct.cnl(nd) ntf.pop() else: e = etree.Element(NSM + "oMath") setx(nd, e, e) ct.cnl(nd) getap(nd).append(e) mmf.pop()
def xtext(nd): ntf.push() ntf.set() setap(nd, getap(nd)) ct.cnl(nd) ntf.pop()