gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/metacode latex2e.py


From: Asko Soukka
Subject: [Gzz-commits] gzz/metacode latex2e.py
Date: Wed, 12 Feb 2003 11:22:04 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Asko Soukka <address@hidden>    03/02/12 11:22:03

Modified files:
        metacode       : latex2e.py 

Log message:
        labeljuttu

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/latex2e.py.diff?tr1=1.21&tr2=1.22&r1=text&r2=text

Patches:
Index: gzz/metacode/latex2e.py
diff -u gzz/metacode/latex2e.py:1.21 gzz/metacode/latex2e.py:1.22
--- gzz/metacode/latex2e.py:1.21        Wed Feb 12 11:07:17 2003
+++ gzz/metacode/latex2e.py     Wed Feb 12 11:22:03 2003
@@ -3,8 +3,8 @@
 """
 :Author: Engelbert Gruber (hacked by the Gzz project)
 :Contact: address@hidden
-:Revision: $Revision: 1.21 $
-:Date: $Date: 2003/02/12 16:07:17 $
+:Revision: $Revision: 1.22 $
+:Date: $Date: 2003/02/12 16:22:03 $
 :Copyright: This module has been placed in the public domain.
 
 LaTeX2e document tree Writer.
@@ -424,7 +424,8 @@
             self.body.append( '\\end{itemize}\n' )
 
     def visit_caption(self, node):
-        self.body.append( '\\caption{' )
+        self.body.append( '\\caption{\n' )
+        if atts.has_key('alt'): self.body.append('\\label{%s}\n' % atts['alt'])
 
     def depart_caption(self, node):
         self.body.append('}')
@@ -841,7 +842,6 @@
         atts = node.attributes.copy()
         href = atts['uri']
         self.body.append('\\centering\n')
-        if atts.has_key('alt'): self.body.append('\\label{%s}\n' % atts['alt'])
         self.body.append('\\includegraphics')
         if atts.has_key('width'): self.body.append('[width=%s]' % 
atts['width'])
         self.body.append('{%s}\n' % href)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]