1235 |
|
|
1236 |
def visit_title(self, node): |
def visit_title(self, node): |
1237 |
"""Only 3 section levels are supported by LaTeX article (AFAIR).""" |
"""Only 3 section levels are supported by LaTeX article (AFAIR).""" |
1238 |
|
if node.astext().lower().strip() == 'abstract': |
1239 |
|
self.body.append('\\abstract') |
1240 |
|
raise nodes.SkipNode |
1241 |
|
|
1242 |
if isinstance(node.parent, nodes.topic): |
if isinstance(node.parent, nodes.topic): |
1243 |
# section titles before the table of contents. |
# section titles before the table of contents. |
1244 |
if node.parent.hasattr('id'): |
if node.parent.hasattr('id'): |