diff options
| author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-09-11 22:32:23 +0000 |
|---|---|---|
| committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-09-11 22:32:23 +0000 |
| commit | 975c77459fea84f0af7d2f435309cdbc1f512fbe (patch) | |
| tree | f0e5a3b7b6415f786cdf5cfeae48896e56de4e6e /docutils | |
| parent | db557f3c8d1b03e3d19ba2259d8986e06cd3af42 (diff) | |
| download | docutils-975c77459fea84f0af7d2f435309cdbc1f512fbe.tar.gz | |
polished new LaTeX writer;
sorry, the last check-in accidentally contained the two newlatex files
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3874 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/docutils/writers/newlatex2e.py | 12 | ||||
| -rw-r--r-- | docutils/tools/stylesheets/latex.tex | 4 |
2 files changed, 2 insertions, 14 deletions
diff --git a/docutils/docutils/writers/newlatex2e.py b/docutils/docutils/writers/newlatex2e.py index afe7b7599..3ea14eaca 100644 --- a/docutils/docutils/writers/newlatex2e.py +++ b/docutils/docutils/writers/newlatex2e.py @@ -362,19 +362,11 @@ class LaTeXTranslator(nodes.SparseNodeVisitor): siblings = [n for n in paragraph.parent if self.is_visible(n) and not isinstance(n, nodes.Titular)] index = siblings.index(paragraph) - # Special handling for children of compound paragraphs: - if isinstance(paragraph.parent, nodes.compound): - # Indent only the first paragraph in a `compound` node. - if index > 0: - return 0 - else: - return self.is_indented(node.parent) + if 'continued' in paragraph['classes']: + return 0 # Indent all but the first paragraphs. return index > 1 - def visit_compound(self, node): - impossible - def before_paragraph(self, node): self.append(r'\renewcommand{\Dparagraphindented}{%s}' % (self.is_indented(node) and 'true' or 'false')) diff --git a/docutils/tools/stylesheets/latex.tex b/docutils/tools/stylesheets/latex.tex index da8af083f..515c34099 100644 --- a/docutils/tools/stylesheets/latex.tex +++ b/docutils/tools/stylesheets/latex.tex @@ -100,10 +100,6 @@ \ifthenelse{\equal{\Dneedvspace}{true}}{\vspace{\Dblocklevelvspace}}{}% \par\noindent% } -\providecommand{\Dauxiliaryparspace}{% XXX REMOVEME - \ifthenelse{\equal{\Dneedvspace}{true}}{\vspace{\Dblocklevelvspace}}{}% - \par% -} \providecommand{\Dparagraphspace}{\par} \providecommand{\Dneedvspace}{true} |
