From 8d0d5af3ae72c4d9dd86cb39b29b1ba59ab12d17 Mon Sep 17 00:00:00 2001
From: Tim Daly <daly@axiom-developer.org>
Date: Sun, 27 Mar 2016 20:15:24 -0400
Subject: [PATCH] books/Makefile improve Global Table of Contents book

Goal: Axiom Literate Programming

Use common theme for book cover.
---
 books/Makefile.pamphlet |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/books/Makefile.pamphlet b/books/Makefile.pamphlet
index a8c4827..fad981b 100644
--- a/books/Makefile.pamphlet
+++ b/books/Makefile.pamphlet
@@ -181,11 +181,41 @@ The sed patterns to match and remove them (in order) are:
 \begin{chunk}{*}
 ${PDF}/toc.pdf: ${BOOKPDF}
 	@echo b3 making ${PDF}/toc.pdf
+	@ cp ${BOOKS}/ps/axiomfront.ps ${PDF}
+	@ cp ${BOOKS}/ps/bluebayou.ps ${PDF}
 	@(cd ${PDF} ; \
 	echo "\\documentclass{book}" >toc.tex ; \
 	echo "\\setlength{\\textwidth}{400pt}" >>toc.tex ; \
+	echo "\\newcommand{\\VolumeName}{Axiom Table of Contexts}" >>toc.tex ;\
 	echo "\\usepackage{amssymb}" >>toc.tex ; \
+	echo "\\usepackage{graphics}" >>toc.tex ; \
 	echo "\\begin{document}" >>toc.tex ; \
+	echo "\\begin{titlepage}" >>toc.tex ; \
+	echo "\\center{\\includegraphics{axiomfront.ps}}" >>toc.tex ; \
+	echo "\\vskip 0.1in" >>toc.tex ; \
+	echo "\\includegraphics{bluebayou.ps}\\" >>toc.tex ; \
+	echo "\\vskip 0.1in" >>toc.tex ; \
+	echo "{\\Huge{The 30 Year Horizon}}" >>toc.tex ; \
+	echo "\\vskip 0.1in" >>toc.tex ; \
+	echo "\\[" >>toc.tex ; \
+	echo "\\begin{array}{lll}" >>toc.tex ; \
+	echo "Manuel\\ Bronstein & William\\ Burge &Timothy\\ Daly\\\\" \
+          >>toc.tex ; \
+	echo "James\\ Davenport & Michael\\ Dewar & Martin\\ Dunstan\\\\" \
+          >>toc.tex ; \
+	echo "Albrecht\\ Fortenbacher& Patrizia\\ Gianni & Johannes\\ Grabmeier \\\\" \
+          >>toc.tex ; \
+	echo "Jocelyn\\ Guidry & Richard\\ Jenks & Larry\\ Lambe \\\\" \
+          >>toc.tex ; \
+	echo "Michael\\ Monagan & Scott\\ Morrison & William\\ Sit \\\\" \
+          >>toc.tex ; \
+	echo "Jonathan\\ Steinbach & Robert\\ Sutor & Barry\\ Trager \\\\" \
+          >>toc.tex ; \
+	echo "Stephen\\ Watt & Jim\\ Wen & Clifton\\ Williamson" >>toc.tex ; \
+	echo "\\end{array}" >>toc.tex ; \
+	echo "\\]" >>toc.tex ; \
+	echo "\\center{\\large{\\VolumeName}}" >>toc.tex ; \
+	echo "\\end{titlepage}" >>toc.tex ; \
 	echo "{\\bf Volume ~ 0}: Axiom {\\sl Jenks and Sutor}\\\\" >toc.toc ; \
 	echo "{\\bf Volume ~ 1}: Axiom {\\sl Tutorial}\\\\" >>toc.toc ; \
 	echo "{\\bf Volume ~ 2}: Axiom {\\sl Users Guide}\\\\" >>toc.toc ; \
@@ -309,11 +339,13 @@ ${PDF}/toc.pdf: ${BOOKPDF}
 	  ${DVIPS} toc.dvi 2>/dev/null ; \
 	  ${PS2PDF} toc.ps 2>/dev/null ; \
 	  ${RM} -f toc.aux toc.dvi toc.log toc.ps toc.tex toc.toc ; \
+	  ${RM} -f bluebayou.ps axiomfront.ps ; \
 	else \
 	  ${LATEX} toc.tex >${TMP}/trace ; \
 	  ${DVIPS} toc.dvi 2>${TMP}/trace ; \
 	  ${PS2PDF} toc.ps 2>${TMP}/trace ; \
 	  ${RM} -f toc.aux toc.dvi toc.log toc.ps toc.tex toc.toc ; \
+	  ${RM} -f bluebayou.ps axiomfront.ps ; \
 	fi )
 
 \end{chunk}
-- 
1.7.5.4

