auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] defining custom sections?


From: Peter Horst
Subject: Re: [AUCTeX] defining custom sections?
Date: Sun, 31 Dec 2006 05:14:57 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0

Thanks very much.

Ralf Angeli wrote:
* Peter Horst (2006-12-31) writes:

> Can AUCTeX be convinced to treat this "Hsub" subsection as a normal > \subsection{}, prompting for a subsection label and setting off the > subsection title in larger text within the .tex document?

There is no user-level facility to customize this.  You can use the
following code:

(eval-after-load "latex"
  '(progn
     (add-to-list 'LaTeX-section-list '("Hsub" 3))
     (add-to-list 'LaTeX-section-label '("Hsub" . nil))))
(add-hook 'LaTeX-mode-hook
          (lambda ()
            (add-to-list 'font-latex-match-sectioning-3-keywords-local "Hsub")
            (font-latex-match-sectioning-3-make)))

As this is rather low-level I cannot guarantee that it will work in
future versions of AUCTeX.






reply via email to

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