/[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.10 by benja, Mon Feb 10 05:36:15 2003 UTC revision 1.11 by humppake, Tue Feb 11 13:26:47 2003 UTC
# Line 230  class LaTeXTranslator(nodes.NodeVisitor) Line 230  class LaTeXTranslator(nodes.NodeVisitor)
230                      _ISO639_TO_BABEL[settings.language_code]                      _ISO639_TO_BABEL[settings.language_code]
231          self.head_prefix = [          self.head_prefix = [
232                self.latex_head % (self.d_options,self.d_class),                self.latex_head % (self.d_options,self.d_class),
233                '\\usepackage{babel}\n',     # language is in documents settings.  #/cite didn't work with babel (jvk)
234    #              '\\usepackage{babel}\n',     # language is in documents settings.
235                '\\usepackage{shortvrb}\n',  # allows verb in footnotes.                '\\usepackage{shortvrb}\n',  # allows verb in footnotes.
236                self.encoding,                self.encoding,
237                # * tabularx: for docinfo, automatic width of columns, always on one page.                # * tabularx: for docinfo, automatic width of columns, always on one page.
# Line 832  class LaTeXTranslator(nodes.NodeVisitor) Line 833  class LaTeXTranslator(nodes.NodeVisitor)
833      def visit_image(self, node):      def visit_image(self, node):
834          atts = node.attributes.copy()          atts = node.attributes.copy()
835          href = atts['uri']          href = atts['uri']
836          ##self.body.append('\\begin{center}\n')          self.body.append('\n\\centering\n')
837          self.body.append('\n\\includegraphics{%s}\n' % href)          if atts.has_key('width'):
838                self.body.append('\n\\includegraphics{%s}{%s}\n' % (atts['width'], href))
839            else:
840                self.body.append('\n\\includegraphics{%s}\n' % href)
841          ##self.body.append('\\end{center}\n')          ##self.body.append('\\end{center}\n')
842    
843      def depart_image(self, node):      def depart_image(self, node):

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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