Fix mkhowto so that the bookmarks for the PDF work for both "howto" and

"manual" class documents.
This commit is contained in:
Fred Drake 2000-09-05 21:45:11 +00:00
parent 4f643ba5db
commit 239e1d5e50
1 changed files with 5 additions and 1 deletions

View File

@ -300,7 +300,11 @@ class Job:
#
if os.path.isfile(self.doc + ".toc") and binary == PDFLATEX_BINARY:
import toc2bkm
toc2bkm.process(self.doc + ".toc", self.doc + ".bkm", "section")
if self.doctype == "manual":
bigpart = "chapter"
else:
bigpart = "section"
toc2bkm.process(self.doc + ".toc", self.doc + ".bkm", bigpart)
if self.use_bibtex:
self.run("%s %s" % (BIBTEX_BINARY, self.doc))
self.run("%s %s" % (binary, self.doc))