def visit_thead(self, node): # Store table caption locally and then remove it # from the table so that docutils doesn't render it # (in the wrong place) self.table_caption = self.active_table.caption self.active_table.caption = [] LaTeXTranslator.visit_thead(self, node)
def visit_thead(self, node): # Store table caption locally and then remove it # from the table so that docutils doesn't render it # (in the wrong place) self.table_caption = self.active_table.caption self.active_table.caption = [] LaTeXTranslator.visit_thead(self, node)
def visit_thead(self, node): # Store table caption locally and then remove it # from the table so that docutils doesn't render it # (in the wrong place) self.table_caption = self.active_table.caption self.active_table.caption = [] opening = self.active_table.get_opening() opening = opening.replace('linewidth', 'tablewidth') self.active_table.get_opening = lambda: opening LaTeXTranslator.visit_thead(self, node)
def visit_thead(self, node): # Store table caption locally and then remove it # from the table so that docutils doesn't render it # (in the wrong place) self.table_caption = self.active_table.caption self.active_table.caption = [] opening = self.active_table.get_opening() opening = opening.replace('linewidth', 'tablewidth') self.active_table.get_opening = lambda: opening LaTeXTranslator.visit_thead(self, node)
def visit_thead(self, node): # Store table caption locally and then remove it # from the table so that docutils doesn't render it # (in the wrong place) if self.active_table.caption: self.table_caption = self.active_table.caption self.active_table.caption = [] opening = self.active_table.get_opening() opening = opening.replace('linewidth', 'tablewidth') self.active_table.get_opening = lambda: opening # For some reason, docutils want to process longtable headers twice. I # don't trust this fix entirely, but it does the trick for now. self.active_table.need_recurse = lambda: False LaTeXTranslator.visit_thead(self, node)
def visit_thead(self, node): # Store table caption locally and then remove it # from the table so that docutils doesn't render it # (in the wrong place) if self.active_table.caption: self.table_caption = self.active_table.caption self.active_table.caption = [] opening = self.active_table.get_opening() opening = opening.replace('linewidth', 'tablewidth') self.active_table.get_opening = lambda: opening # For some reason, docutils want to process longtable headers twice. I # don't trust this fix entirely, but it does the trick for now. self.active_table.need_recurse = lambda: False LaTeXTranslator.visit_thead(self, node)