Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2001 17:30:37 +0000
From:      Nik Clayton <nik@freebsd.org>
To:        doc@Freebsd.org
Subject:   Shrinking the FAQ
Message-ID:  <20010301173036.A4708@canyon.nothing-going-on.org>

next in thread | raw e-mail | index | archive | help

--oLBj+sq0vYjzfsbl
Content-Type: multipart/mixed; boundary="yrj/dFKFPuw6o+aM"
Content-Disposition: inline


--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Folks,

This simple patch reduces the depth of the Postscript (and therefore=20
PDF) tables of contents.  It also removes the leading indent on body=20
copy.

This reduces the size of the Postscript Handbook by about a megabyte.

Asthetics isn't my strong suit.  Any objections?

N
--=20
FreeBSD: The Power to Serve             http://www.freebsd.org/
FreeBSD Documentation Project           http://www.freebsd.org/docproj/

          --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---

--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Content-Transfer-Encoding: quoted-printable

Index: freebsd.dsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/doc/share/sgml/freebsd.dsl,v
retrieving revision 1.24
diff -u -r1.24 freebsd.dsl
--- freebsd.dsl	2001/02/20 19:38:25	1.24
+++ freebsd.dsl	2001/03/01 17:10:37
@@ -131,6 +131,13 @@
=20
       <!-- Print only ................................................... =
-->=20
       <![ %output.print; [
+        (define (toc-depth nd)
+          (if (string=3D? (gi nd) (normalize "book"))
+              3
+              1))
+=20
+        (define %body-start-indent%=20
+          0pi)
=20
         ;; Norm's stylesheets are smart about working out what sort of
         ;; object to display.  But this bites us.  Since we know that the

--yrj/dFKFPuw6o+aM--

--oLBj+sq0vYjzfsbl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjqehzwACgkQk6gHZCw343W50QCeNKVN++12/RpXDf1r6TnvQ2YI
ZhEAn1YtvC4y0gDnIdVrNznm2yFHKgYb
=yRyF
-----END PGP SIGNATURE-----

--oLBj+sq0vYjzfsbl--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010301173036.A4708>