I figured it out! The problem is all in the outline.py script. The following line
pat = re.compile(r'^\\(@?)(include|input){(.*?)}', re.M) only looks for \input and \include statements at the beginning of the line. My 0main.tex file didn't have those statements at the beginning of the line, so the outline.py script never looked in those files and never found any tags. When the .latexmain file wasn't present, I would be editing a file in one of the subdirectories, and the F9 completion would only run outline.py on the current file. Removing the caret solves the main problem but introduces another problem. Many of my figures have LaTeX-formatted text in them; I use the "Combined PS/LaTeX" export format in Xfig, and in my document use "\input{foo.pstex_t}" to pull in the figure -- but without the caret, outline.py tries to search that file, and if it doesn't exist, the script dies. I would recommend dropping the caret from the regex, and adding some logic to the getFileContents function so that it simply ignores nonexistent files. Dan -- --- Dan Drake <[EMAIL PROTECTED]> University of Minnesota ----- http://www.math.umn.edu/~drake School of Mathematics -------
pgp664nFWSYDX.pgp
Description: PGP signature