mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#2794: Handle figure directive in LaTeX.
This commit is contained in:
parent
da560957d7
commit
3af5caf46c
2
CHANGES
2
CHANGES
@ -16,6 +16,8 @@ Bugs fixed
|
||||
|
||||
* Fix the LaTeX output of description units with multiple signatures.
|
||||
|
||||
* Handle the figure directive in LaTeX output.
|
||||
|
||||
|
||||
Release 0.3 (May 6, 2008)
|
||||
=========================
|
||||
|
@ -626,6 +626,16 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
def depart_image(self, node):
|
||||
pass
|
||||
|
||||
def visit_figure(self, node):
|
||||
self.body.append('\\begin{figure}\n')
|
||||
def depart_figure(self, node):
|
||||
self.body.append('\\end{figure}\n')
|
||||
|
||||
def visit_caption(self, node):
|
||||
self.body.append('\\caption{')
|
||||
def depart_caption(self, node):
|
||||
self.body.append('}')
|
||||
|
||||
def _make_visit_admonition(name):
|
||||
def visit_admonition(self, node):
|
||||
self.body.append('\n\\begin{notice}[%s]' % name)
|
||||
|
Loading…
Reference in New Issue
Block a user