Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!otc!metro!extro!natmlab!neilc From: neilc@natmlab.dms.oz (Neil Crellin) Newsgroups: comp.emacs Subject: Using abbrev mode while editing {La,}TeX? Message-ID: <5932@natmlab.dms.oz> Date: 30 Jul 89 15:30:16 GMT Sender: news@natmlab.dms.oz Reply-To: neilc@natmlab.dms.oz (Neil Crellin) Organization: CSIRO Division of Mathematics and Statistics Lines: 16 Any tips on how I can get abbrev-mode to do what I want in the following situation. When typing a document I want an abbrev so that whenever I type Z, it's expanded to {\bf Z}. Using C-x + or C-x C-a in abbrev-mode with any sort of number prefix doesn't give me what I want. It either doesn't give me enough of the text or grabs the words beyond. Worse, if I edit the abbrev file directly, even avoiding the problems caused by \b meaning backspace, the `b' in \bf is always capitalised, which LaTeX isn't happy with. I've got around it for the moment by not using abbrev mode and having {\bf Z} in my keyboard macro and getting it typed in with C-x e. Any suggestions appreciated. -- Neil Crellin, CSIRO Maths & Stats, Sydney, Australia. (neilc@natmlab.dms.oz.au) PO Box 218, Lindfield, NSW 2070. (ph) +61 2 413 7721 (fax) +61 2 416 9317