auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Patch for imakeidx.el and latex.el


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Patch for imakeidx.el and latex.el
Date: Fri, 11 Jan 2013 12:54:48 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

"address@hidden" <address@hidden> writes:

Hi Mosè,

> I wrote a patch for `latex.el' against current CVS version to add
> "LaTeX pagestyle" as a type for the parser.  Pagestyles defined in
> LaTeX packages and classes will be automatically recognized and added
> to `LaTeX-pagestyle-list' variable.  I checked that it works with
> `article.cls', `book.cls' and 'report.  cls' classes and `fancyhdr'
> package.  I also patched `imakeidx.el' in order to use the new
> function `LaTeX-pagestyle-list'.

The patch basically looks good, but somehow it doesn't work for me.
I've tried this doc

--8<---------------cut here---------------start------------->8---
\documentclass{article}

\usepackage{fancyhdr}

\begin{document}

address@hidden

address@hidden

\end{document}
--8<---------------cut here---------------end--------------->8---

and initially, C-c RET pagestyle RET offered me just empty and plain.
The value of (LaTeX-pagestyle-list) was (("empty") ("plain")).  After
hitting C-u C-c C-n, I get (("empty") ("foo") ("plain")).  Why is
("bar") missing?  And what am I supposed to do to have it pickup the
fancyhdr "fancy" pagestyle?

I added a (message ...) into `TeX-auto-parse' to see when auctex parses
tex/sty files, but even with C-u C-c C-n it only parses bar.tex (that
is, my minimal doc but not fancyhdr.sty).  Do I need to configure
something special, except for

  (setq TeX-parse-self t)
  (setq TeX-auto-save t)

Bye,
Tassilo




reply via email to

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