def do_limlow(self, elm): """ the Lower-Limit object """ t_dict = self.process_children_dict(elm, include=('e', 'lim')) latex_s = LIM_FUNC.get(t_dict['e']) if not latex_s: raise NotSupport("Not support lim %s" % t_dict['e']) else: return latex_s.format(lim=t_dict.get('lim'))
def do_fname(self, elm): """ the func name """ latex_chars = [] for stag, t, e in self.process_children_list(elm): if stag == 'r': if FUNC.get(t): latex_chars.append(FUNC[t]) else: raise NotSupport("Not support func %s" % t) else: latex_chars.append(t) t = BLANK.join(latex_chars) return t if FUNC_PLACE in t else t + FUNC_PLACE #do_func will replace this