auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Reopening environments.


From: David Kastrup
Subject: Re: [AUCTeX-devel] Reopening environments.
Date: Fri, 14 Oct 2005 12:40:00 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-10-14) writes:
>
>> Ralf Angeli <address@hidden> writes:
>>
>>> Ah, now I see it.  It gets better when you do `M-:
>>> (TeX-run-style-hooks "doc") RET' before insertion.  We should probably
>>> always make sure that style/doc.el is loaded when entering docTeX
>>> mode.
>>
>> If this is relevant, then it is a shame that
>> \documentclass{ltxdoc}
>> does not appear to load it.
>
> Opening a file with the contents
>
> %
> \documentclass{ltxdoc}
>
> actually loads it and runs the style hook for me.  Typing `C-c C-e
> macrocode RET' on the first line leaves me with
>
> % \begin{macrocode}
>
> %    \end{macrocode}
> \documentclass{ltxdoc}
>
>> Or is it because the parsed info for bigfoot.drv gets overwritten by
>> the parsed info for bigfoot.sty?
>
> No idea.

Looks like it, udging from the contents of auto/bigfoot.el (even
though there also is bigfoot.dtx.el).

And it would appear that the following in bigfoot.dtx (which has
bigfoot.drv as its master file) gets completely ignored when parsing:

%    \begin{macrocode}
%<driver> \documentclass{ltxdoc}
%<driver> \usepackage{bigfoot}
%<driver> \usepackage{tabularx}
%<driver> \usepackage{hyperref}
%    \end{macrocode}

It's a nuisance, to say the least.

bigfoot.dtx ends with
% Local Variables:
% mode: doctex
% TeX-master: "bigfoot.drv"
% End:

and C-c C-n lands me with
auto/bigfoot.el
(TeX-add-style-hook "bigfoot"
 (lambda ()
    (TeX-add-symbols
     "footnotewidowpenalty"
     "footnoteclubpenalty"
     "finalfootnotewidowpenalty"
     "bigfoottolerance"
     "RestyleFootnote"
     "FootnoteSpecific"
     "DefineFootnoteStack"
     "PushFootnoteMark"
     "PopFootnoteMark"
     "hfootfraction"
     "vtypefraction"
     "noindent"
     "indent"
     "noexpand"
     "output"
     "thefootnote"
     "thefootnotedefault"
     "footnote"
     "footnotemark"
     "footnotetext")
    (TeX-run-style-hooks
     "perpage"
     "suffix"
     "manyfoot"
     "etex")))

maybe derived/scanned from bigfoot.sty, and with
auto/bigfoot.dtx.el
(TeX-add-style-hook "bigfoot.dtx"
 (lambda ()
    (TeX-add-symbols
     "RestyleFootnote"
     "FootnoteSpecific"
     "DefineFootnoteStack"
     "PushFootnoteMark"
     "PopFootnoteMark"
     "footnotewidowpenalty"
     "footnoteclubpenalty"
     "finalfootnotewidowpenalty"
     "hfootfraction"
     "vtypefraction"
     "noindent"
     "indent"
     "bigfoottolerance"
     "noexpand"
     "output"
     "footnote"
     "footnotemark"
     "footnotetext"
     "Footnotemark"
     "Footnotetext"
     "Footnote")
    (TeX-run-style-hooks
     "perpage"
     "suffix"
     "manyfoot"
     "etex")))

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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