Skip to content

Commit

Permalink
Add quotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Jul 14, 2012
1 parent 2a9dda5 commit fdbae87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions papers/00_vanderwalt/00_vanderwalt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ figures.
We show the different quantities of materials required in Table
:ref:`mtable`.

Perhaps we want to end off with a quote by Lao Tse:

*Muddy water, let stand, becomes clear.*


.. Customised LaTeX packages
.. -------------------------
Expand Down
9 changes: 9 additions & 0 deletions publisher/writer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,15 @@ def depart_literal_block(self, node):
LaTeXTranslator.depart_literal_block(self, node)


def visit_block_quote(self, node):
self.out.append('\\begin{quotation}')
LaTeXTranslator.visit_block_quote(self, node)

def depart_block_quote(self, node):
LaTeXTranslator.depart_block_quote(self, node)
self.out.append('\\end{quotation}')


# Math directives from rstex

def visit_InlineMath(self, node):
Expand Down

0 comments on commit fdbae87

Please sign in to comment.