206 |
generator = '%% generator Docutils: http://docutils.sourceforge.net/\n' |
generator = '%% generator Docutils: http://docutils.sourceforge.net/\n' |
207 |
|
|
208 |
# use latex tableofcontents or let docutils do it. |
# use latex tableofcontents or let docutils do it. |
209 |
use_latex_toc = 1 |
use_latex_toc = 0 |
210 |
# table kind: if 0 tabularx (single page), 1 longtable |
# table kind: if 0 tabularx (single page), 1 longtable |
211 |
# maybe should be decided on row count. |
# maybe should be decided on row count. |
212 |
use_longtable = 1 |
use_longtable = 1 |
1230 |
self.body.append('\\hypertarget{%s}{}\n' % node.parent['id']) |
self.body.append('\\hypertarget{%s}{}\n' % node.parent['id']) |
1231 |
# section_level 0 is title and handled above. |
# section_level 0 is title and handled above. |
1232 |
# BUG: latex has no deeper sections (actually paragrah is no section either). |
# BUG: latex has no deeper sections (actually paragrah is no section either). |
1233 |
if self.use_latex_toc: |
# if self.use_latex_toc: |
1234 |
section_star = "" |
section_star = "" |
1235 |
else: |
# else: |
1236 |
section_star = "*" |
# section_star = "*" |
1237 |
secl = self.section_level |
secl = self.section_level |
1238 |
if self.settings.documentclass in ['book', 'report']: secl = secl-1 |
if self.settings.documentclass in ['book', 'report']: secl = secl-1 |
1239 |
|
|