"giordano.m...@libero.it" <giordano.m...@libero.it> 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} \ps@bar{...} \ps@foo{...} \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 _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel