home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!caen!hellgate.utah.edu!eeide
- From: eeide%asylum.cs.utah.edu@cs.utah.edu (Eric Eide)
- Subject: Re: fill-paragraph in TeX mode?
- Message-ID: <EEIDE.92Nov17141003@asylum.cs.utah.edu>
- In-reply-to: jdlb@mamane.ifa.hawaii.edu's message of 16 Nov 92 23:39:24 GMT
- Organization: University of Utah Department of Computer Science
- References: <1992Nov16.233924.4138@news.Hawaii.Edu>
- Distribution: usa
- Date: 17 Nov 92 14:10:03
- Lines: 27
-
- JF Pitot de La Beaujardiere (jdlb@mamane.ifa.hawaii.edu) asks:
-
- JF> The fill-paragraph command (M-q) in emacs has problems with TeX files, in
- JF> that it treats a backslash (\) at the start of a line as the start of a new
- JF> paragraph. Is there a way to work around this, or does anyone have a
- JF> better fill-paragraph?
-
- This is what I use:
-
- (setq TeX-mode-hook
- '(lambda ()
- (setq paragraph-separate "^[ \t]*\\($\\|[\f%]\\|\\\\.*[]}][ \t]*$\\)")
- ;; "^[ \t]*\\($\\|[\f%]\\|\\\\[^ \t\n]+[ \t]*$\\)" is a reasonable but
- ;; somewhat inferior alternative. The regular expression in GNU Emacs'
- ;; "tex-mode.el" ("^[ \t]*$\\|^[\f\\\\%]") is not good to me.
- )))
-
- I also use Kyle Jones' "filladapt" package which provides enhanced paragraph
- filling. For me, it is a *must have* package. It's available via FTP in the
- Emacs Lisp archive at Ohio State.
-
- Happy filling.
-
- --
- -------------------------------------------------------------------------------
- Eric Eide | University of Utah Department of Computer Science
- eeide@cs.utah.edu | Buddhist to hot dog vendor: "Make me one with everything."
-