[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CLtL2 now available for ftp



Hi again, here is patch/fix you can use to latex the CLtL manual.
----------------------------------------------------------------

<References from previous posts deleted>

After my previous post on how to build the CLtL manual, I received a mail
from Johann Petrak who suggested how to define PostScriptFile. This was a
much better solution than my own.

I took another look at the missing characters latex was complaining about,
and found the problem and a solution. The manual uses some extended
character set, which I at least, don't have/use. The ifchiron macro that
was causing the problems earlier ended up being a fix this time. I used the
chiron character codes instead of the extended characterset that was
originally used.

Below is a series of diffs that can be used to patch up the CLtL LaTeX
sources, so that the manual may be built properly. The only real deficiency
that I know of, is that the sources lack some of the postscript files
referenced in the document.

All the patching done to CLTL.sty related to \char can be ommited if you
can run latex without any complains about missing characters in
fonts. (Have a look in your log file)

If you use the PostScripFile fix you will need to use `dvips', or something
like that, to convert to PostScript before viewing/printing.

The other patches are (brief desc) : 
-commented out the \includeonly{series} from clm.tex 
-commented out the \cleartabs from clos.tex 
-added the "\newif\ifchiron chironfalse" to CLTL.sty
(Suggested by Jim Meehan/Guy Steele) 
-added the "\def\PostScriptFile#1{\special{psfile=#1}}"
(Suggested by Johann Petrak)
-changed the Xarrow{right,down} stuff in CLTL.sty
(Is there a more appropriate fix).  
-changed "\textheight" and "\textwidth" to accomodate A4 in a better way.

The lacking postscript files are :

identity-plot.ps
exp-plot.ps
minus-over-plus-plot.ps
sin-plot.ps
cos-plot.ps
tan-plot.ps
sinh-plot.ps
cosh-plot.ps
tanh-plot.ps
sqrt-one-minus-sq-plot.ps
series-plot.ps

In order to run `dvips' without errors you will have to create empty files
with these names.

---- Diff between modified & original clm.tex
27c26
< %\includeonly{series}
---
> \includeonly{series}
---------------------------------------------

---- Diff between modified & original CLTL.sty
19d18
< \def\PostScriptFile#1{\special{psfile=#1}}
36d34
< \newif\ifchiron \chironfalse
62a61
> 
78c77
<     \def\Xhyphen{{\tt\char"2D}}       % use endash for hyphen
---
>     \def\Xhyphen{{\tt\char177}}       % use endash for hyphen
83c82
<          \lower\@tempdima\hbox{\ifchiron\char"27\else\char"27\fi}\hss}\dp0=0pt\box0}}
---
>          \lower\@tempdima\hbox{\ifchiron\char"27\else\char194\fi}\hss}\dp0=0pt\box0}}
87c86
<          \lower\@tempdima\hbox{\ifchiron\char"60\else\char"60\fi}\hss}\dp0=0pt\box0}}
---
>          \lower\@tempdima\hbox{\ifchiron\char"60\else\char193\fi}\hss}\dp0=0pt\box0}}
91c90
<          \lower\@tempdima\hbox{\ifchiron\char"7E\else\char"7E\fi}\hss}\dp0=0pt\box0}}
---
>          \lower\@tempdima\hbox{\ifchiron\char"7E\else\char196\fi}\hss}\dp0=0pt\box0}}
95c94
<          \lower\@tempdima\hbox{\ifchiron\char"5E\else\char"5E\fi}\hss}\dp0=0pt\box0}}
---
>          \lower\@tempdima\hbox{\ifchiron\char"5E\else\char195\fi}\hss}\dp0=0pt\box0}}
100,101c99,100
<                        {\raise0.189ex\hbox{\ifchiron\char"A3\else\char"55\fi}\hss}\relax
<                         \lower0.189ex\hbox{\ifchiron\char"A3\else\char"55\fi}}}
---
>                        {\raise0.189ex\hbox{\ifchiron\char"A3\else\char208\fi}\hss}\relax
>                         \lower0.189ex\hbox{\ifchiron\char"A3\else\char208\fi}}}
136,137c135,140
<   \def\Xarrowright{\begin{math} \Rightarrow \end{math}}
<   \def\Xarrowdown{\begin{math} \Downarrow \end{math}}
---
>   \def\Xarrowright{\ifdim 1em<5pt\relax
>                        \PostScriptFile{ArrowRightSmall.ps}\else
>                        \PostScriptFile{ArrowRight.ps}\fi~}
>   \def\Xarrowdown{\ifdim 1em<5pt\relax
>                       \PostScriptFile{ArrowDownSmall.ps}\else
>                       \PostScriptFile{ArrowDown.ps}\fi~}
-------------------------------------------------------------------


---- Diff between modified & original clos.tex
3338c3338
< %\cleartabs{\it slot-specifier\/} ::= {\it slot-name\/} {\Mor} ({\it slot-name\/}  $\lbrack\!\lbrack\downarrow\!\hbox{{\it slot-option}}\,\rbrack\!\rbrack$)\\
---
> \cleartabs{\it slot-specifier\/} ::= {\it slot-name\/} {\Mor} ({\it slot-name\/}  $\lbrack\!\lbrack\downarrow\!\hbox{{\it slot-option}}\,\rbrack\!\rbrack$)\\
------------------------------------------------



If you would like to use A4-paper size instead change this:


---- Diff between modified & original CLTL10.sty
113,114c113,114
< \textheight 50\baselineskip   %new textheight
< \textwidth 38pc
---
> \textheight 500pt    % 40 lines of 10/12.5
> \textwidth 28pc
--------------------------------------------------