Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!chalmers.se!cs.chalmers.se!jeffrey From: jeffrey@cs.chalmers.se (Alan Jeffrey) Newsgroups: comp.text.tex Subject: Re: LaTeX logo in TeX Message-ID: <4415@undis.cs.chalmers.se> Date: 22 Mar 91 01:39:28 GMT Article-I.D.: undis.4415 References: <66552@eerie.acsu.Buffalo.EDU> <66567@eerie.acsu.Buffalo.EDU> <15524@june.cs.washington.edu> <1991Mar20.213735.27656@csrd.uiuc.edu> Sender: news@cs.chalmers.se Organization: Dept. of CS, Chalmers, Sweden Lines: 64 In article <1991Mar20.213735.27656@csrd.uiuc.edu> eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes: >\def\LaTeX{{\count0=\fam$\fam=\count0\relax > L\kern-.36em\raise.3ex\hbox{$\fam=\count0\relax\scriptstyle A$} > \kern-.15em \TeX$}} Ah, but even this runs into problems---it requires the old font selection scheme---under newlfont.sty, \sf, \it, etc don't set \fam, so you need something else. It also requires every text font to have an associated math family, which is a bit of a pain, since TeX only gives you 16, grumble grumble grumble. What you really want is a command \smaller, which takes you to a smaller text size. Why oh why isn't this in \LaTeX? Oh well... I've just finished writing our Local Guide (57pp, I'll email copies if anyone's interested in seeing what I reckon a Local Guide really ought to look like, but be warned I'm about to go away for 2 weeks) and that used the word \LaTeX\ in all sorts of strange circumstances (sans-serif huge slanted, for instance) so I changed the definition of \normalsize etc. in aqua.sty (the document style it runs in, also available for parties, and other social occasions): \def\@normalsize{...\def\smaller{\protect\scriptscriptsize}} ... \def\Huge{...\def\smaller{\protect\Large}} (Exercise for the reader: why \protect?) Then: \def\LaTeX{\protect\pLaTeX} \def\pLaTeX{{L\kern-.3em\raise.48ex\hbox{\smaller A}\kern-.15em\TeX}} (Exercise for the reader: why \protect?) I played around with the kerns above to get \LaTeX\ to look good in huge sans serif, which is how the headings are set. The only other trick is that you need to redefine \TeX depending on which family you're currently in: \def\cmrTeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX} \def\cmssTeX{T\kern-.2em\lower.5ex\hbox{E}\kern-.05emX} \def\cmttTeX{T\lower.5ex\hbox{E}X} \def\ccrTeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX} Then, assuming you're using the font selection scheme: \def\TeX{\protect\pTeX} \def\pTeX{{\csname\f@family TeX\endcsname}} (Exercise for the reader: yes, you know.) Easy really ;-) Related questions: why is the LaTeX book not called `The LaTeXbook'? Why is sc incompatible with it and sl in the new font selection scheme? (Otherwise this would all be easy, and \LaTeX would go back to it's original definition, you'd just need to have sans-serif extended-bold slanted small caps lying around.) Why is the word LaTeX on the back cover of the LaTeX book so appallingly set? Time for bed, said Zebbidee, Alan. Alan Jeffrey Tel: +46 31 72 10 98 jeffrey@cs.chalmers.se Department of Computer Sciences, Chalmers University, Gothenburg, Sweden