In the print stylesheet, keep the ToC to 3 levels of depth or less, and
don't indent body text. This reduces the size of the Handbook's PS file by about 1MB, and has similar (although less dramatic) effects on the other documents.
This commit is contained in:
parent
6e0d6abab6
commit
59595c172d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=8873
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.23 2001/02/20 19:17:26 nik Exp $ -->
|
||||
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.24 2001/02/20 19:38:25 nik Exp $ -->
|
||||
|
||||
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
|
||||
<!ENTITY % output.html "IGNORE">
|
||||
|
@ -131,6 +131,13 @@
|
|||
|
||||
<!-- Print only ................................................... -->
|
||||
<![ %output.print; [
|
||||
(define (toc-depth nd)
|
||||
(if (string=? (gi nd) (normalize "book"))
|
||||
3
|
||||
1))
|
||||
|
||||
(define %body-start-indent%
|
||||
0pi)
|
||||
|
||||
;; Norm's stylesheets are smart about working out what sort of
|
||||
;; object to display. But this bites us. Since we know that the
|
||||
|
|
Loading…
Reference in a new issue