[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.14,1.15
Fred L. Drake
python-dev@python.org
Tue, 5 Sep 2000 14:45:13 -0700
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3965/Doc/tools
Modified Files:
mkhowto
Log Message:
Fix mkhowto so that the bookmarks for the PDF work for both "howto" and
"manual" class documents.
Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** mkhowto 2000/08/31 06:58:34 1.14
--- mkhowto 2000/09/05 21:45:11 1.15
***************
*** 301,305 ****
if os.path.isfile(self.doc + ".toc") and binary == PDFLATEX_BINARY:
import toc2bkm
! toc2bkm.process(self.doc + ".toc", self.doc + ".bkm", "section")
if self.use_bibtex:
self.run("%s %s" % (BIBTEX_BINARY, self.doc))
--- 301,309 ----
if os.path.isfile(self.doc + ".toc") and binary == PDFLATEX_BINARY:
import toc2bkm
! 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))