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: address@hidden
Subject: Re: [AUCTeX-devel] Patch for imakeidx.el and latex.el
Date: Fri, 11 Jan 2013 19:33:44 +0100 (CET)

Hi Tassilo,

>Sorry, I forgot to Cc you.  As a regular contributor, you might want to
>join the list or use to the gmane group gmane.emacs.auctex.devel.  I
>always forget whom to keep in the Cc. ;-)
Just done :-)

>
>Bye,
>Tassilo
>
>> 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
>>
>> \documentclass{article}
>>
>> \usepackage{fancyhdr}
>>
>> \begin{document}
>>
>> address@hidden
>>
>> address@hidden
>>
>> \end{document}
>>
>> 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?
I don't know, when I open that document my `LaTeX-pagestyle-list' variable has 
value
---------------------------------------
(("headings" "myheadings")
 ("fancy" "fancyplain" "plain" "empty")
 ("bar" "foo")
 ("plain" "empty")
 nil)
---------------------------------------
("headings" "myheadings") come from `article' class, ("fancy" "fancyplain" 
"plain" "empty") from `fancyhdr' package.

>> 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)
AFAIK, AUCTeX parses recursively only files included in a document with 
`\include' and `\input' macros.  For classes and packages files loaded with 
`\documentclass' and `\usepackage' (or `\RequirePackage' and so on) you usually 
have to issue `M-x TeX-auto-generate <RET>' and indicate path to those classes 
or packages.  This is what I've done to test `article', `book', and `report' 
classes and `fancyhdr' style.

https://www.gnu.org/software/auctex/manual/auctex/ still gives AUCTeX 11.86 
manual :-)

Bye,
Mosè Giordano



reply via email to

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