def _latex (self, M): ret_str = self._latex_head for elem in M: if isinstance(elem, list): for e in elem: ret_str += "{" + latex_print(e) + "}" else: ret_str += "{" + latex_print(elem) + "}" return ret_str
def _latex(self, M): ret_str = self._latex_head for elem in M: if isinstance(elem, list): for e in elem: ret_str += "{" + latex_print(e) + "}" else: ret_str += "{" + latex_print(elem) + "}" return ret_str
def _latex (self, part): ret_str = self._latex_head for elem in flatten_list(self.tolist(part)): ret_str += "{" + latex_print(elem) + "}" return ret_str
def _latex(self, part): ret_str = self._latex_head for elem in flatten_list(self.tolist(part)): ret_str += "{" + latex_print(elem) + "}" return ret_str