xiaofei@acsu.buffalo.edu (Xiaofei Wang) (03/21/91)
In article <66552@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (Hao Zhou) writes:
*
* Can anybody tell me how to print out the LaTeX logo in TeX? It seems
* to me that TeX only knows /TeX/ not /LaTeX/. Any idears?
\TeX, \LaTeX, \MF, etc are known to Eplain [Expanded Plain TeX].
Eplain is available from ftp.cs.umb.edu under directory
./pub/tex/eplain-1.8.
--
xiaofei@acsu.buffalo.edu / rutgers!ub!xiaofei / v118raqa@ubvms.bitnet
graham@cs.washington.edu (Stephen Graham) (03/21/91)
In article <66567@eerie.acsu.Buffalo.EDU> xiaofei@acsu.buffalo.edu (Xiaofei Wang) writes: >In article <66552@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (Hao Zhou) writes: >* >* Can anybody tell me how to print out the LaTeX logo in TeX? It seems >* to me that TeX only knows /TeX/ not /LaTeX/. Any idears? > >\TeX, \LaTeX, \MF, etc are known to Eplain [Expanded Plain TeX]. >Eplain is available from ftp.cs.umb.edu under directory >./pub/tex/eplain-1.8. >-- >xiaofei@acsu.buffalo.edu / rutgers!ub!xiaofei / v118raqa@ubvms.bitnet Simpler yet, find the definition of \LaTeX in latex.tex and stick it in your document (or plain.tex, should you so wish and be able to do so. Or, here, \def\L{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} -- Steve Graham graham@isis.ee.washington.edu (206) 543-8115
Dan_Jacobson@ATT.COM (03/21/91)
>>>>> On 20 Mar 91 19:03:13 GMT, graham@cs.washington.edu (Stephen >>>>> Graham) said: Stephen> Simpler yet, find the definition of \LaTeX in latex.tex [...] Stephen> \def\L{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em Stephen> T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} I remember it was that "\sc a" that got me very frustrated when using this in some non-vanilla environments (that I have since forgot.) -- Dan_Jacobson@ATT.COM Naperville IL USA +1 708 979 6364
eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) (03/21/91)
graham@cs.washington.edu (Stephen Graham) writes: >Simpler yet, find the definition of \LaTeX in latex.tex and stick >it in your document (or plain.tex, should you so wish and be able to >do so. Simpler, but not better. That is, I hope Karl has done a better job of programming this Logo than Leslie... >\def\L{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em > T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} See, this switches to \rm. Which gives you a *roman* LaTeX logo in section headings that are otherwise *bold*. Ugly. Furthermore, it uses \sc, which may not exist at all sizes. See here a better way. This works as good as your font selection mechanism is, and you can probably extrapolate from it. \def\LaTeX{{\count0=\fam$\fam=\count0\relax L\kern-.36em\raise.3ex\hbox{$\fam=\count0\relax\scriptstyle A$} \kern-.15em \TeX$}} \LaTeX, \bf \LaTeX. \end Victor.
spel@hippo.ru.ac.za (Dr. E.W. Lisse) (03/21/91)
In <15524@june.cs.washington.edu> graham@cs.washington.edu (Stephen Graham) writes: >In article <66567@eerie.acsu.Buffalo.EDU> xiaofei@acsu.buffalo.edu (Xiaofei Wang) writes: >>In article <66552@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (Hao Zhou) writes: >>* >>* Can anybody tell me how to print out the LaTeX logo in TeX? It seems >>* to me that TeX only knows /TeX/ not /LaTeX/. Any idears? >> >>\TeX, \LaTeX, \MF, etc are known to Eplain [Expanded Plain TeX]. >>Eplain is available from ftp.cs.umb.edu under directory >>./pub/tex/eplain-1.8. >>-- >>xiaofei@acsu.buffalo.edu / rutgers!ub!xiaofei / v118raqa@ubvms.bitnet >Simpler yet, find the definition of \LaTeX in latex.tex and stick >it in your document (or plain.tex, should you so wish and be able to >do so. >Or, here, >\def\L{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em > T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} This, of course does not work! I don't want to flame but \rm and \sc are LaTeX definitions that are also not known to plain TeX. It always pays off to check ones suggestions through. Leaving rm and sc out produces ugly output as the kerning is specific. Who might be willing to email me a copy of eplain? Please send offers first so not five large files from different well meaning people come in over the long distance phone :-). thanks, el -- Dr. Eberhard W. Lisse (spel@hippo.ru.ac.ZA) Katatura State Hospital (formerly extel@quagga.ru.ac.za) Private Bag 13215 (Real Soon Now ... el@lisse.NA) Windhoek, Namibia (no FTP yet. [This is Africa :-)])
jeffrey@cs.chalmers.se (Alan Jeffrey) (03/22/91)
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
young@emx.utexas.edu (Young U. Ryu) (03/23/91)
\section{\LaTeX logo that can be used with \bf, \it, etc.} eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes > [... ... ...] > See here a better way. This works as good as your > font selection mechanism is, and you can probably > extrapolate from it. > > \def\LaTeX{{\count0=\fam$\fam=\count0\relax > L\kern-.36em\raise.3ex\hbox{$\fam=\count0\relax\scriptstyle A$} > \kern-.15em \TeX$}} > > \LaTeX, \bf \LaTeX. \end The above is EXCELLENT!!! But, when you do {\it \LaTeX}, you will see some unsatisfactory space between `T' and the \lower'ed `E' LaT eX ^ How about this! \def\LaTeX{{\count0=\fam$\fam=\count0\relax L\kern-.36em\raise.3ex\hbox{$\fam=\count0\relax\scriptstyle A$} \kern-.15em \hbox{\TeX}$}} ^^^^^ %------------------------------------------------- \section{A Note on \LaTeX logo} As you may have noticed, the amount of \lower'ed E in def. of \TeX (in plain.tex and lplain.tex) is different from that in def. of \LaTeX (in latex.tex). That is: % from lplain.tex \def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX} ^^^^ % from latex.tex \def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} ^^^^ If you want the `\lower.7ex\hbox{E}, try: \def\LaTeX{{\count0=\fam$\fam=\count0\relax L\kern-.36em\raise.3ex\hbox{$\fam=\count0\relax\scriptstyle A$} \kern-.15em\hbox{T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}$}} \bye Young @ Univ. of \TeXas at Austin young@emx.utexas.edu