[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] TeX-parse-self and \input files
From: |
Mandar Mitra |
Subject: |
Re: [AUCTeX] TeX-parse-self and \input files |
Date: |
Mon, 9 Sep 2013 13:59:32 +0530 |
Mandar Mitra wrote (Mon, Sep 09, 2013 at 12:58:50PM +0530):
> So the problem appears to be that macros.tex is not being properly
> parsed. I'd be grateful for any pointers to what I might be doing wrong.
I dug around a bit more and tried the following. I included
\documentclass, \begin{document} and \end{document} lines
in macros.tex and opened/saved the file.
This resulted in an updated macros.el that finally has
TeX-add-symbols corresponding to my defined commands, and
TeX-run-style-hooks for all the packages.
So the missing \documentclass, \begin{document} and \end{document}
lines seem to cause the problem. But since macros.tex is meant to be
used via \input in various .tex files, I can't really leave those lines
in there.
Can someone please suggest a workaround? Thanks,
Mandar.