From ff13d3d1317073eeeb783632874e6e417343aa21 Mon Sep 17 00:00:00 2001
From: toy <toy>
Date: Fri, 4 Oct 2002 17:06:15 +0000
Subject: [PATCH] When running pdflatex, add bookmarks for the sections.

---
 docs/internals/design.tex | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/docs/internals/design.tex b/docs/internals/design.tex
index c55dc9473..bfce4b533 100644
--- a/docs/internals/design.tex
+++ b/docs/internals/design.tex
@@ -3,10 +3,34 @@
 \documentclass{report}
 \usepackage{ifthen}
 \usepackage{calc}
+\usepackage[hyperindex=false,colorlinks=false,urlcolor=blue]{hyperref}
+
+% define a new conditional statement which allows us to include
+% stuff conditionally when compiling to PDF. 
+\newif\ifpdf
+\ifx\pdfoutput\undefined
+   \pdffalse
+\else
+   \pdfoutput=1
+   \pdftrue
+\fi
+
+
 
 \title{Design of CMU Common Lisp}
 \date{January 3, 2000}
 \author{Robert A. MacLachlan (ed)}
+
+\ifpdf
+\pdfinfo{
+/Author (Robert A. MacLachlan, ed)
+/Title (CMUCL User's Manual)
+}
+% Add section numbers to the bookmarks, and open 2 levels by default.
+\hypersetup{bookmarksnumbered=true,
+            bookmarksopen=true,
+            bookmarksopenlevel=2}
+\fi
 %%\trnumber{CMU-CS-91-???}
 
 %% This code taken from the LaTeX companion.  It's meant as a
-- 
GitLab