Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!sdd.hp.com!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!edcastle!cs.ed.ac.uk!cs.edinburgh.ac.uk!ajcd From: ajcd@cs.edinburgh.ac.uk (Angus Duggan) Newsgroups: comp.text.tex Subject: Re: Letter.sty and the new font selection scheme Keywords: letter Message-ID: <2539@skye.cs.ed.ac.uk> Date: 27 Nov 90 10:53:08 GMT References: <1452@tharr.UUCP> Sender: nnews@cs.ed.ac.uk Reply-To: ajcd@cs.edinburgh.ac.uk (Angus Duggan) Followup-To: comp.text.tex Organization: Edinburgh University Fried Brain Carry-out Lines: 91 In article <1452@tharr.UUCP>, gustav@tharr.UUCP (Paul Moore) writes: > I remember hearing somewhere that "letter.sty" did not work correctly > under the new Mittelbach & Schopf font selection scheme. Unfortunately, > I can neither remember what the problem was, nor how to fix it. I have, > however, managed to get errors which I assume are caused by this. ... > Could some kind soul post the required changes to letter.sty to make it > work properly (or explain what the problem is, and why it can't be > solved)? The problem with letter.sty is that it re-defines \document (called by \begin{document}). The new font selection scheme also re-defines \document, but the letter style change overrides this definition. Here is a patch which should fix the problem: *** OldTeX/TeX82/tex82/LaTeX/LaTeXmacros/letter.sty Fri Feb 26 22:57:43 1988 --- TeX3.0/inputs/letter.sty Wed Aug 15 18:47:05 1990 *************** *** 202,221 **** \def\fromlocation{} \def\telephone#1{\def\telephonenum{#1}} \def\telephonenum{} \def\document{\endgroup ! \@colht\textheight \@colroom\textheight \vsize\textheight ! \columnwidth\textwidth \@clubpenalty\clubpenalty ! \if@twocolumn \advance\columnwidth -\columnsep ! \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue ! \fi ! \hsize\columnwidth \linewidth\hsize ! \begingroup\@floatplacement\@dblfloatplacement\endgroup ! \if@filesw \immediate\openout\@mainaux=\jobname.aux ! \immediate\write\@mainaux{\string\startlabels\string\@startlabels}\fi ! \def\do##1{\let ##1\@notprerr} ! \@preamblecmds ! \let\do\noexpand ! \@normalsize\everypar{}} \def\enddocument{\@checkend{document}\newpage\begingroup \if@filesw \immediate\closeout\@mainaux \makeatletter\input \jobname.aux\clearpage --- 208,245 ---- \def\fromlocation{} \def\telephone#1{\def\telephonenum{#1}} \def\telephonenum{} + %\def\document{\endgroup + % \@colht\textheight \@colroom\textheight \vsize\textheight + % \columnwidth\textwidth \@clubpenalty\clubpenalty + % \if@twocolumn \advance\columnwidth -\columnsep + % \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue + % \fi + % \hsize\columnwidth \linewidth\hsize + % \begingroup\@floatplacement\@dblfloatplacement\endgroup + % \if@filesw \immediate\openout\@mainaux=\jobname.aux + % \immediate\write\@mainaux{\string\startlabels\string\@startlabels}\fi + % \def\do##1{\let ##1\@notprerr} + % \@preamblecmds + % \let\do\noexpand + % \@normalsize\everypar{}} + + % \document for new font selection scheme. AJCD 15 Aug 90. \def\document{\endgroup ! \@colht\textheight \@colroom\textheight \vsize\textheight ! \columnwidth\textwidth \@clubpenalty\clubpenalty ! \if@twocolumn \advance\columnwidth -\columnsep ! \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue ! \fi ! \hsize\columnwidth \linewidth\hsize ! \begingroup\@floatplacement\@dblfloatplacement\endgroup ! \if@filesw \immediate\openout\@mainaux=\jobname.aux ! \immediate\write\@mainaux{\string\startlabels\string\@startlabels}\fi ! \process@table ! \def\do##1{\let ##1\@notprerr}% ! \@preamblecmds ! \let\do\noexpand ! \@normalsize\everypar{}} ! \def\enddocument{\@checkend{document}\newpage\begingroup \if@filesw \immediate\closeout\@mainaux \makeatletter\input \jobname.aux\clearpage > > Many thanks, > Gustav. > -- Nae probs, Angus. -- Angus Duggan, Department of Computer Science, | I'm pink, therefore I'm Spam. University of Edinburgh, JCMB, | JANET: ajcd@uk.ac.ed.lfcs The King's Buildings, Mayfield Road, | VOICE: (UK) 031 650 5126 Edinburgh, EH9 3JZ, Scotland. | OR: ajcd%lfcs.ed.ac.uk@nsfnet-relay.ac.uk