Re: [AUCTeX-devel] LaTeX-env-contents patch

2013-01-28 Thread Tassilo Horn
Mads Jensen writes: Hi Mads, >> Is that really true? The LaTeX2e docs say that for example a >> filecontents environment must only occur before \documentclass. See >> section 3.1 of http://www.latex-project.org/guides/usrguide.pdf. > > To justify my claim, try compiling the attached file, and

Re: [AUCTeX-devel] LaTeX-env-contents patch

2013-01-28 Thread Mads Jensen
Hi, > Is that really true? The LaTeX2e docs say that for example a > filecontents environment must only occur before \documentclass. See > section 3.1 of http://www.latex-project.org/guides/usrguide.pdf. To justify my claim, try compiling the attached file, and notice that only the second filec

Re: [AUCTeX-devel] LaTeX-env-contents patch

2013-01-28 Thread Tassilo Horn
Mads Jensen writes: Hi Mads, > The actual requirement is that the filecontents environments can't be > inserted before \begin{document}, but it works after \documentclass. Is that really true? The LaTeX2e docs say that for example a filecontents environment must only occur before \documentclas

[AUCTeX-devel] LaTeX-env-contents patch

2013-01-27 Thread Mads Jensen
The actual requirement is that the filecontents environments can't be inserted before \begin{document}, but it works after \documentclass. Besides, the regular expression for \documentclass wasn't particularly accurate (suggested by Tassilo for a patch I previously sent for LaTeX-env-document). Th