Ejemplo n.º 1
0
 def visit_image(self, node):
     attrs = node.attributes
     if not 'align' in attrs and self.centerfigs:
         attrs['align'] = 'center'
     if ('height' not in attrs) and ('width' not in attrs):
         attrs['height'] = '0.75\\textheight'
     LaTeXTranslator.visit_image(self, node)
Ejemplo n.º 2
0
 def visit_image(self, node):
     attrs = node.attributes
     if not 'align' in attrs and self.centerfigs:
         attrs['align'] = 'center'
     if ('height' not in attrs) and ('width' not in attrs):
         attrs['height'] = '0.75\\textheight'
     LaTeXTranslator.visit_image(self, node)
Ejemplo n.º 3
0
    def visit_image(self, node):
        attrs = node.attributes

        # Only add \columnwidth if scale or width have not been specified.
        if 'scale' not in node.attributes and 'width' not in node.attributes:
            node.attributes['width'] = '\columnwidth'

        node.attributes['align'] = 'left'

        LaTeXTranslator.visit_image(self, node)
Ejemplo n.º 4
0
    def visit_image(self, node):
        attrs = node.attributes

        # Only add \columnwidth if scale or width have not been specified.
        if 'scale' not in node.attributes and 'width' not in node.attributes:
            node.attributes['width'] = '\columnwidth'

        node.attributes['align'] = 'left'

        LaTeXTranslator.visit_image(self, node)
Ejemplo n.º 5
0
    def visit_image(self, node):
        attrs = node.attributes

        # Only add \columnwidth if scale or width have not been specified.
        if "scale" not in node.attributes and "width" not in node.attributes:
            node.attributes["width"] = "\columnwidth"

        node.attributes["align"] = "left"

        LaTeXTranslator.visit_image(self, node)
Ejemplo n.º 6
0
    def visit_image(self, node):
        attrs = node.attributes
        node.attributes['width'] = '\columnwidth'
        node.attributes['align'] = 'left'

        LaTeXTranslator.visit_image(self, node)
Ejemplo n.º 7
0
    def visit_image(self, node):
        attrs = node.attributes
        node.attributes['width'] = '\columnwidth'
        node.attributes['align'] = 'left'

        LaTeXTranslator.visit_image(self, node)