/[gzz]/gzz/metacode/latex2e.py
ViewVC logotype

Diff of /gzz/metacode/latex2e.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by humppake, Wed Feb 12 16:26:37 2003 UTC revision 1.24 by humppake, Wed Feb 12 16:39:48 2003 UTC
# Line 425  class LaTeXTranslator(nodes.NodeVisitor) Line 425  class LaTeXTranslator(nodes.NodeVisitor)
425    
426      def visit_caption(self, node):      def visit_caption(self, node):
427          self.body.append( '\\caption{\n' )          self.body.append( '\\caption{\n' )
         atts = node.attributes.copy()  
         if atts.has_key('alt'): self.body.append('\\label{%s}\n' % atts['alt'])  
428    
429      def depart_caption(self, node):      def depart_caption(self, node):
430          self.body.append('}')          self.body.append('}')
# Line 843  class LaTeXTranslator(nodes.NodeVisitor) Line 841  class LaTeXTranslator(nodes.NodeVisitor)
841          atts = node.attributes.copy()          atts = node.attributes.copy()
842          href = atts['uri']          href = atts['uri']
843          self.body.append('\\centering\n')          self.body.append('\\centering\n')
844            if atts.has_key('alt'): self.body.append('\\label{%s}\n' % atts['alt'])
845          self.body.append('\\includegraphics')          self.body.append('\\includegraphics')
846          if atts.has_key('width'): self.body.append('[width=%s]' % atts['width'])          if atts.has_key('width'): self.body.append('[width=%s]' % atts['width'])
847          self.body.append('{%s}\n' % href)          self.body.append('{%s}\n' % href)

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26