[Top][All Lists]

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

Re: Manually enable package completion

From: Arash Esbati
Subject: Re: Manually enable package completion
Date: Fri, 13 May 2022 11:15:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi Denis,

Denis Bitouzé <> writes:

> I have a document with a custom LaTeX class which loads several
> packages. Because these packages aren't explicitly loaded in the
> preamble of the document, the completion of them is, AFAICS, not
> enabled by AUCTeX.
> Is there a way to manually enable the completion of these packages?

The easiest way is to write a small AUCTeX style file for your custom
class like this:

--8<---------------cut here---------------start------------->8---
 (lambda ()
   ;; Name of the styles you want to load:
   (TeX-run-style-hooks "article" "amsmath" "enumitem"))
--8<---------------cut here---------------end--------------->8---

Save this snippet as 'name-of-your-custom-class.el' in the directory you
have in `TeX-style-private'.  AUCTeX should load the style next time you
open your .tex file (assuming you have set `TeX-parse-self' to t).

Best, Arash

reply via email to

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