From 2b3ceda78e29ae21e9786bfdb9a0cf4abd090226 Mon Sep 17 00:00:00 2001 From: grubert Date: Thu, 20 Mar 2003 09:08:12 +0000 Subject: [PATCH] FIX: (hack) around latex choking on abstract. git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk/docutils@1220 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/latex2e.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docutils/writers/latex2e.py b/docutils/writers/latex2e.py index da43075c2..8e0d4a9a1 100644 --- a/docutils/writers/latex2e.py +++ b/docutils/writers/latex2e.py @@ -1240,9 +1240,16 @@ class LaTeXTranslator(nodes.NodeVisitor): if node.parent.hasattr('id'): self.body.append('\\hypertarget{%s}{}' % node.parent['id']) self.body.append('\\begin{center}\n') - self.context.append('\\end{center}\n') + # BUG: latex chokes: perhaps a missing item. + self.context.append('% HACK: latex chokes: -- perhaps a missing item.\n' + '\\begin{list}{ }{' + '\\setlength{\\topsep}{0pt}' + '\\setlength{\\itemsep}{-1cm}}' + '\\item \\item \\end{list}\n' + '\\end{center}\n') ## should this be section subsection or self.body.append('\\subsection*{') + # the closing brace for subsection. self.context.append('}\n') elif self.section_level == 0: # document title -- 2.11.4.GIT