Ejemplo n.º 1
0
 def visit_container(self, node):
     """Handle containers with 'special' names, ignore the rest."""
     # NOTE: theres something weird here where ReST seems to translate
     # underscores in container identifiers into hyphens. So for the
     # moment we'll allow both.
     if node_has_class(node, 'beamer-simplecolumns'):
         self.visit_columnset(node)
         wrap_children_in_columns(node, node.children)
     elif node_has_class(node, 'beamer-note'):
         self.visit_beamer_note(node)
     else:
         # currently the LaTeXTranslator does nothing, but just in case
         LaTeXTranslator.visit_container(self, node)
Ejemplo n.º 2
0
 def visit_container(self, node):
     """Handle containers with 'special' names, ignore the rest."""
     # NOTE: theres something weird here where ReST seems to translate
     # underscores in container identifiers into hyphens. So for the
     # moment we'll allow both.
     if node_has_class(node, 'beamer-simplecolumns'):
         self.visit_columnset(node)
         wrap_children_in_columns(node, node.children)
     elif node_has_class(node, 'beamer-note'):
         self.visit_beamer_note(node)
     else:
         # currently the LaTeXTranslator does nothing, but just in case
         LaTeXTranslator.visit_container(self, node)