Hi, All,
I'm seeing some funny behaviour when typing M-q on a LaTeX
paragraph (or calling M-x LaTeX-fill-paragraph or typing
C-c C-q C-p): LaTeX commands that end in '{}' and some
(but not all) inline equations are made the end of the line,
although the line could be longer. Typing fresh text using
auto-fill-mode yields the desired result, but M-q or C-c C-q C-p
messes it up. Two examples, both recreated in a freshly found
LaTeX-file:
--- #1: typed using auto-fill-mode yields: ----
This paragraph contains a \LaTeX{} command. It is so long that it
spans over multiple lines.
--- hitting M-q with point before the first letter yields: ----
This paragraph contains a \LaTeX{}
command. It is so long that it spans over multiple lines.
--- #2: typed using auto-fill-mode yields: ----
This paragraph contains a silly, dumb, short equation: $(a =
\subseteq)$ which is totally ridiculious. It is also long enough to
span more than a single line.
--- hitting M-q with point before the first letter yields: ----
This paragraph contains a silly, dumb, short equation: $(a =
\subseteq)$
which is totally ridiculious. It is also long enough to span more
than a single line.
--- end examples ---
Clearly, the line doesn't have to be broken after either '\LaTeX{}'
or '\subseteq)$'.
Note that I wouldn't mind M-q changing the text even when used on
a paragraph freshly typed using auto-fill-mode, but the indentation
that M-q produces in the examples above seems to be just wrong.
Cheers,
Florian
Emacs : XEmacs 21.4 (patch 19) "Constant Variable" [Lucid] (i386--freebsd) of
Fri Mar 3 2006 on i44dyn35.info.uni-karlsruhe.de
Package: AUCTeX CVS-1.13 (2005-02-11)
current state:
==============
(setq
window-system 'x
LaTeX-version "2e"
TeX-style-path '("style/" "auto/"
"/usr/local/lib/xemacs/xemacs-packages/etc/auctex/style/"
"/usr/local/lib/xemacs/xemacs-packages/etc/auctex/auto/")
TeX-auto-save t
TeX-parse-self t
TeX-master t
)
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex