Set the heading-level characteristic to '2' if we're generating PDF output.

This has the useful side effect of generating bookmarks in the PDF file,
which programs like Adobe Acrobat Reader can use to provide a navigable
table of contents in a side window.  This only seems to work with OpenJade,
but the option doesn't cause Jade any problems.
This commit is contained in:
Nik Clayton 2001-01-08 12:40:52 +00:00
parent 8c7f3ba03a
commit 5a65a99ceb
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=8662

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.18 2000/10/23 14:41:46 nik Exp $ -->
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.19 2000/10/28 21:14:44 nik Exp $ -->
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % output.html "IGNORE">
@ -177,6 +177,17 @@
filename
(string-append filename "." %graphic-default-extension%))))
]]>
<![ %output.print.pdf; [
;; If the heading-level is set to 2 then the PDF output will have
;; bookmarks inserted. If the PDF reader supports them (as
;; Adobe's does) it makes navigation easier.
;;
;; Currently, this only seems to work if OpenJade is being used,
;; but it doesn't seem to prevent Jade from processing the doc.
(declare-characteristic heading-level
"UNREGISTERED::James Clark//Characteristic::heading-level" 2)
]]>