There is already a calculus book on the Chisel CD. It was written by Professor Neal Koblitz of the University of Washington for his calculus students. He has generously permitted the inclusion of the LaTeX source documents used to construct the book. These can be copied from the CD over to your hard disk and modified by you to produce a customized book. The customization might simply be exchanging "University of Kentucky" with the name of your school. Or it might be the deletion of a chapter, or permuting the order of some chapters. More substantial changes might include deleting or adding examples to a chapter or adding new topics to a chapter or adding a new chapter altogether. This document will try to tell you how to do these things, assuming you know a bit of LaTeX and have a willingness to experiment.
Copy the files to your hard disk and inspect
You need first to copy the directory koblitz\calc1\book (calculus 1) or koblitz\calc2\book (calculus 2) over to your hard drive. This can be done with point and click in the development subdirectory of koblitz\calc1 in Chisel.
We will give details on changing the calculus 1 book. Changing the calculus 2 book would proceed similarly.
First, click on the TexShell Icon on your screen. This opens up a special dos window which knows where everything is. All of the commands given below will work in the TeXShell; they won't work in an ordinary dos window unless you change the PATH.
The directory koblitz\calc1\book contains several files. Some of the important ones are:
root.tex The file which controls the structure of the book.
coverpag.tex and preface.tex These files contain the coverpage and the preface.
chapX.tex and hmwrkX.tex where X is 1 to 18. There are the chapter and homework files.
Lots of fig*.ps files. These are the figures that are in the book.
root.dvi This file is generated when the command latex root is given. At that time lots of .aux and .log files are generated.
There are other files in the directory. You will only change tex files.
To see the .tex files you can change, give the command dir *.tex
The main files to change are the root file root.tex , the coverpage file coverpag.tex , the preface file preface.tex , the chapter files chap1.tex throught chap18.tex , the homework files hmwrk1.tex through hmwrk18.tex , the lab files instr.tex , bounce.tex , and pistonlb.tex , the exam review files midtrm1.tex , midtrm2.tex , and finlprac.tex , and the answer file hmwrkans.tex .
To change the root file
Use your text editor to open root.tex. ( edit or vi works fine. If you use wordpad which comes on the Chisel disk, be sure save your files as text documents.)
Say we wanted to remove chapter 18 and its homework from the book. Go to the bottom of root.tex, locate and remove the lines
\include{chap18}
\include{hmwrk18}
then save root.tex and exit your editor. Now, in the TexShell, issue the command
latex root (this trys to create a file root.dvi from root.tex)
If this command is successful, and it should be, you can inspect the new book with the dvi-viewer yap . Issue the command (in the TeXShell)
yap root.dvi
and inspect the file in the window that opens up. You can page through the file with pageup and pagedown keys. yap does not print the pictures, but you can create a postscript file root.ps which can then be viewed with the postscript viewer gsview32
dvips root ; (this creates a postscript file root.ps from the dvi file root.dvi)
Now issue the command
gsview32 root.ps
and inspect the file in the window that opens up. Pageup and pagedown keys do not work in this viewer, but you can use the space bar and the minus '-' key to page down and up through the document. . Notice that the pictures are there for viewing.
The rootfile root.tex controls the formatting and contents of the book, so make all changes pertaining to form and content in it.
To change one of the other .tex files and inspect the result
Say you want to change the name University of Kentucky in the book to your school's name. Here is how do it. The name University of Kentucky occurs in the files coverpag.tex and preface.tex So to make the change to coverpag.tex, use your text editor to open coverpag.tex and replace, for example, University of Kentucky, Fall 1997 with your school name and a date of your choice in the line
\flushleft Edited for the University of Kentucky, Fall 1997
Then save the file and exit the editor. (Make sure the file you save has the original name coverpag.tex)
Now remake the book by issuing the commands.
latex roo t This command generates a lot of messages and takes a while to complete. If many changes have been made, you need to do this twice.
dvips root This command generates a postscript file of the book called root.ps
gsview32 root.ps This command uses a postscript viewer to look at the file root.ps You can select pages and print them to your printer from this viewer .
Add a new chapter to the book
Suppose you have written a chapter on the differential that fits naturally right after chapter 7. Convert it into a latex document and save it as chap7h.tex, then open the rootfile root.tex and insert the line
\include{chap7h}
between the lines
\include{chap7}
and
\include{chap8}
Now you can insert the changes into the whole book by issuing the commands
latex root you need to do this twice to get the references right
makeindex root.idx This command makes a new index for the book, including any entries that you may have put in. It generates a file called root.ind
move root.ind rootind.tex This command changes the name of root.ind
latex root Latex the book one more time to get the new index inserted
dvips root Create the postscript file root.ps
gsview32 root.ps Look at the new book.
Make other books too.
You can use the ideas and skills gleaned from making your own calculus book starting with Koblitz's book to making other books starting from scratch or your own set of notes.