[Top][All Lists]
[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 12:51:30 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 03/02/12 12:51:29
Modified files:
metacode : latex2e.py
Log message:
rurr... caption update
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/latex2e.py.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
Patches:
Index: gzz/metacode/latex2e.py
diff -u gzz/metacode/latex2e.py:1.26 gzz/metacode/latex2e.py:1.27
--- gzz/metacode/latex2e.py:1.26 Wed Feb 12 12:31:22 2003
+++ gzz/metacode/latex2e.py Wed Feb 12 12:51:28 2003
@@ -3,8 +3,8 @@
"""
:Author: Engelbert Gruber (hacked by the Gzz project)
:Contact: address@hidden
-:Revision: $Revision: 1.26 $
-:Date: $Date: 2003/02/12 17:31:22 $
+:Revision: $Revision: 1.27 $
+:Date: $Date: 2003/02/12 17:51:28 $
:Copyright: This module has been placed in the public domain.
LaTeX2e document tree Writer.
@@ -425,8 +425,9 @@
def visit_caption(self, node):
self.body.append( '\\caption{\n' )
- atts = node.attributes.copy()
- if atts.has_key('alt'): self.body.append('\\label{%s}\n' % atts['alt'])
+ for child in node.parent.children:
+ if child.attributes.has_key('alt'):
+ self.body.append('\\label{%s}\n' % child.attributes['alt'])
def depart_caption(self, node):
self.body.append('}')
@@ -841,12 +842,8 @@
def visit_image(self, node):
atts = node.attributes.copy()
- if atts.has_key('alt'):
- for child in node.children:
- child.setAttribute('alt', atts['alt'])
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)
- [Gzz-commits] gzz/metacode latex2e.py, (continued)
- [Gzz-commits] gzz/metacode latex2e.py, Janne V. Kujala, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Janne V. Kujala, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py,
Asko Soukka <=
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/13
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/14
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/14
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/14
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/14
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/15