bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] TeX fill instead of LaTeX fill for \subsection at top o


From: Chris Pickett
Subject: Re: [Bug-AUCTeX] TeX fill instead of LaTeX fill for \subsection at top of file
Date: Fri, 21 Nov 2008 13:16:46 -0500
User-agent: Thunderbird 1.5.0.14 (Macintosh/20071210)

Ralf Angeli wrote:
* Chris Pickett (2008-11-21) writes:

If I have:

\subsection
% comment
text

in a file and edit it, I end up in TeX Fill mode instead of LaTeX Fill mode.

There are no such modes as "TeX Fill mode" and "LaTeX Fill mode".  Do
you perhaps refer to the modeline indicator?

Yes, sorry. I'm unfamiliar with formal emacs terms. What are the actual TeX/LaTeX modes called?

If I hit M-q in the paragraph above, it will reflow the text into the comment like so:

\subsection
% comment text

Is this a bug in AUCTeX?

Hard to say without more information.  Are you sure AUCTeX is enabled?
There should be a Command menu if it is.

I don't see a specific AUCTeX menu, but "F10 l" gives me a LaTeX menu if it says "section" instead of "subsection" in the file, and "F10 T" gives me a TeX menu if it says "subsection" as written above. Furthermore, "F10 c l" runs LaTeX and "F10 c t" runs TeX correspondingly. Can you confirm this?

Is there a list of things that will activate TeX mode instead of LaTeX mode?

Not really, at least not with respect to macros used in the document.
If AUCTeX cannot derive the mode from the document contents it should
fall back to the mode given by `TeX-default-mode'.  Perhaps you changed
that?

Not that I know of. I looked through my .emacs and didn't see anything. How do I set TeX-default-mode to be LaTeX?

Is there some way to always force LaTeX mode?

Even for ConTeXt files?

I've never used ConTeXt, presumably I can start caring if/when. Of course, the archives might benefit from a more general solution if there actually is one.

Why do I care about this? I break large documents into several files and \input them from the master document file, and so sometimes I end up having a single subsection in a file.

Thanks for your help,
Chris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]