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. |
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): |