Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uakari.primate.wisc.edu!indri!ames!uhccux!munnari.oz.au!otc!metro!extro!natmlab!neilc From: neilc@natmlab.dms.oz (Neil Crellin) Newsgroups: comp.emacs Subject: Re: Using abbrev mode while editing {La,}TeX? Message-ID: <5947@natmlab.dms.oz> Date: 5 Aug 89 08:34:43 GMT References: <8907311559.AA00226@toucan.LCS.MIT.EDU> <8907311924.AA26177@NMSU.Edu> <4749@omepd.UUCP> Sender: news@natmlab.dms.oz Reply-To: neilc@natmlab.dms.oz (Neil Crellin) Organization: CSIRO Division of Mathematics and Statistics Lines: 35 In-reply-to: merlyn@iwarp.intel.com (Randal Schwartz) In article <4749@omepd.UUCP>, merlyn@iwarp (Randal Schwartz) writes: >In article <8907311924.AA26177@NMSU.Edu>, jthomas@nmsu writes: >| Presumably Neil understood that the easiest way is to type "z" instead of >| "Z", since the abbreviation replacement is taking the case of the entered >| text. This was something I had forgotten, and I apologise for that. >or, 26 lines like: > >"a" 0 "a" (lambda () (forward-char -1) (insert "{\\bf ") (forward-char 1) (insert "}")) > Actually, just one line: "z" 0 "z" (lambda .............as above..) This is exactly what I was after for the letter Z only. (that's zed. not zee) >And then, instead, why even use abbrev's? Why not just code them, and >do a global sub later? I mean, look for all the @A, and replace with >{\bf A}... ? Sure. Or I could use bard's suggestions and \newcommand in LaTeX or \def in TeX. I didn't want to, that's all there was to it. I figured abbrev-mode should be able to handle it and couldn't see how to make it. Now I know. Many thanks for all the help. -- Neil Crellin, CSIRO Maths & Stats, Sydney, Australia. (neilc@dmssyd.dms.oz.au) "In the week before their departure to Arrakis, when all the final scurrying about had reached a nearly unbelievable frenzy, an old crone came to visit the mother of the boy, Paul." - Frank Herbert, Dune