Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ll-xn!mit-eddie!blue.sdr.slb.COM!DAVIS From: DAVIS@blue.sdr.slb.COM Newsgroups: comp.emacs Subject: using gnu to transform LaTeX to ?? Message-ID: <8807141806.AA19551@EDDIE.MIT.EDU> Date: 14 Jul 88 00:58:00 GMT Sender: daemon@eddie.MIT.EDU Lines: 36 folks - i've just been hacking up a little code to de-LaTeX a buffer, in particular, to convert a LaTeX file into a VMS Help format file (seeing as how I've written yet *another* one of those too...). Seems to me like someone else might have done this already - don't worry 'bout the help stuff (that's easy !!): its more little oddities that I've missed. So far, I have: 1) rename sectionheadings (for help or whatever) 2) stripout all begin/end pairs 3) fix all LaTeX's \specialchar to specialchar 3) replace \verbwith 4) replace \TeX and \LaTeX (with optional \ ) by TeX and LaTeX 5) delete using the following regexp: \\[^\\][^[{}]\s \s.]* which seems fairly good at taking out all (La)TeX commands. 6) strip all {}'s from the buffer (except where escaped). Any ideas on what else I might need, improved ways of oing this such as better regexps ? It probably *has* to be within Emacs, so don't mention the PD deTeX programs - I'd rather work in Elisp, if possible. many thanks in advance, Paul Davis Schlumberger Cambridge Research davis%blue@sdr.slb.com ps: I'll get the shell history stuff out very soon to those who asked about it. Sorry its been so long - I'm very busy...