From ca46df29c0cb68c07e746be0aca510a5d6873797 Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Wed, 16 Jan 2013 20:42:33 -0800 Subject: [PATCH] Fix issues with creating pdf and ps documents, from Carl. cmu-user.tex: o Include ifpdf package design.tex: o Include ifpdf package o Remove the home-grown ifpdf macro. macros.tex: o Remove the home-grown ifpdf macro. introduction.tex: unicode.tex: o Use \url instead of \href for URLs. --- src/docs/cmu-user/cmu-user.tex | 1 + src/docs/cmu-user/introduction.tex | 2 +- src/docs/cmu-user/macros.tex | 12 ------------ src/docs/cmu-user/unicode.tex | 2 +- src/docs/internals/design.tex | 13 +------------ 5 files changed, 4 insertions(+), 26 deletions(-) diff --git a/src/docs/cmu-user/cmu-user.tex b/src/docs/cmu-user/cmu-user.tex index 4a94c1623..55e8cde06 100644 --- a/src/docs/cmu-user/cmu-user.tex +++ b/src/docs/cmu-user/cmu-user.tex @@ -32,6 +32,7 @@ \usepackage{xspace} \usepackage{alltt} \usepackage{index} +\usepackage{ifpdf} \usepackage{ifthen} \usepackage{calc} \usepackage{sectsty} diff --git a/src/docs/cmu-user/introduction.tex b/src/docs/cmu-user/introduction.tex index dbce9ba1a..2075509cb 100644 --- a/src/docs/cmu-user/introduction.tex +++ b/src/docs/cmu-user/introduction.tex @@ -47,7 +47,7 @@ about \cmucl. Users will also need a separate manual describing the \href{http://www.lispworks.com/documentation/HyperSpec/Front/index.htm} {Hyperspec}. \else -\emph{Hyperspec} at \href{http://www.lispworks.com/documentation/HyperSpec/Front/index.htm} +\emph{Hyperspec} at \url{http://www.lispworks.com/documentation/HyperSpec/Front/index.htm} \fi diff --git a/src/docs/cmu-user/macros.tex b/src/docs/cmu-user/macros.tex index 9c8cba51f..bfb1669cf 100644 --- a/src/docs/cmu-user/macros.tex +++ b/src/docs/cmu-user/macros.tex @@ -4,18 +4,6 @@ % % by Raymond Toy - -% 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 - - % use Palatino \renewcommand{\rmdefault}{ppl} \ifpdf diff --git a/src/docs/cmu-user/unicode.tex b/src/docs/cmu-user/unicode.tex index c6a1a98a7..cab4c599b 100644 --- a/src/docs/cmu-user/unicode.tex +++ b/src/docs/cmu-user/unicode.tex @@ -11,7 +11,7 @@ To understand the support for Unicode, we refer the reader to the \ifpdf \href{http://www.unicode.org/}{Unicode standard}. \else -\emph{Unicode standard} at \href{http://www.unicode.org} +\emph{Unicode standard} at \url{http://www.unicode.org} \fi \section{Changes} diff --git a/src/docs/internals/design.tex b/src/docs/internals/design.tex index 753ed61f3..776ee1e99 100644 --- a/src/docs/internals/design.tex +++ b/src/docs/internals/design.tex @@ -2,23 +2,12 @@ %\documentstyle{report} % -*- Dictionary: design -*- \documentclass{report} +\usepackage{ifpdf} \usepackage{ifthen} \usepackage{calc} \usepackage{palatino} \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 15, 2003} \author{Robert A. MacLachlan (ed)} -- GitLab