auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] defining custom sections?


From: Ralf Angeli
Subject: Re: [AUCTeX] defining custom sections?
Date: Sun, 31 Dec 2006 10:01:35 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

* 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.

-- 
Ralf




reply via email to

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