Mandar Mitra <[email protected]> writes:

> 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.

A workaround would be

\iffalse
\documentclass...
\begin{document}
\fi
...
\iffalse
\end{document}
\fi

That's what I can think of without thinking.

-- 
David Kastrup

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to