Dear All,
When I use the "Show Outline" command in the LaTex outline on a single file (with no /include or /input), the command works perfectly. However, when I use it on a file that includes /include, I get the following error:
`each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `each' from /tmp/temp_textmate.lsbsz4:34:in `each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `outline_points' from /tmp/temp_textmate.lsbsz4:36:in `outline_points' from /tmp/temp_textmate.lsbsz4:34:in `each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `each' from /tmp/temp_textmate.lsbsz4:34:in `each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `outline_points' from /tmp/temp_textmate.lsbsz4:47
The /include files are not in the same directory as the master file, but the file typesets just fine.
Any ideas?
Thanks, zsteir
On Sep 9, 2007, at 2:50 PM, zsteir wrote:
Dear All,
When I use the "Show Outline" command in the LaTex outline on a single file (with no /include or /input), the command works perfectly. However, when I use it on a file that includes /include, I get the following error:
`each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `each' from /tmp/temp_textmate.lsbsz4:34:in `each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `outline_points' from /tmp/temp_textmate.lsbsz4:36:in `outline_points' from /tmp/temp_textmate.lsbsz4:34:in `each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `each' from /tmp/ temp_textmate.lsbsz4:34:in `each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `outline_points' from /tmp/temp_textmate.lsbsz4:47
The /include files are not in the same directory as the master file, but the file typesets just fine.
How do your \include lines look like exactly?
Any ideas?
Thanks, zsteir
Haris Skiadas Department of Mathematics and Computer Science Hanover College
Charilaos Skiadas-3 wrote:
How do your \include lines look like exactly?
They look like:
\include{frontmatter/abbreviations}
(and there is an abbreviations.tex file sitting in the directory frontmatter. The directory sits next to the master tex file.)
Thanks, zsteir
On Sep 9, 2007, at 4:26 PM, zsteir wrote:
Charilaos Skiadas-3 wrote:
How do your \include lines look like exactly?
They look like:
\include{frontmatter/abbreviations}
(and there is an abbreviations.tex file sitting in the directory frontmatter. The directory sits next to the master tex file.)
Sorry I can't reproduce this. I just tried a file that contained the above include line and a corresponding abbreviations file, and the Show Outline command went just fine. So there must be some other problem, either in your included file or in the master file. Would it be possible to send me the files off-list?
Thanks, zsteir
Haris Skiadas Department of Mathematics and Computer Science Hanover College
Dear All (and Haris),
Hopefully, Haris didn't spend too much time on this. The cause of the error was obvious, I just needed to remind myself of the exact content of each file.
It turns out the "Show Outline" didn't handle nested /includes or nested /input. (That is, either include -> input, include -> include, input -> include, input -> input).
Does this seem right to you?
Thanks, zstier
Sorry I can't reproduce this. I just tried a file that contained the above include line and a corresponding abbreviations file, and the Show Outline command went just fine. So there must be some other problem, either in your included file or in the master file. Would it be possible to send me the files off-list?
Thanks, zsteir
Haris Skiadas Department of Mathematics and Computer Science Hanover College
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Sep 10, 2007, at 12:28 PM, zsteir wrote:
Dear All (and Haris),
Hopefully, Haris didn't spend too much time on this.
No I didn't, and there as an error in the handling of comments so it was good it came up ;).
The cause of the error was obvious, I just needed to remind myself of the exact content of each file.
It turns out the "Show Outline" didn't handle nested /includes or nested /input. (That is, either include -> input, include -> include, input -> include, input -> input).
Does this seem right to you?
No it doesn't, the command should not care about nested includes/ inputs, as far as I can tell. It contains a function that calls itself on the included file, so it should not have a problem going on one more level.
Are you sure the problem wasn't caused by commented out \include lines not corresponding to files any more? That's what I fixed with the latest commit yesterday (did you update)?
Thanks, zstier
Haris Skiadas Department of Mathematics and Computer Science Hanover College
For those following this thread, the Show Outline command was not ignoring commented out lines. I committed a fix (rev 8130) that should take care of this problem.
On Sep 9, 2007, at 4:26 PM, zsteir wrote:
Charilaos Skiadas-3 wrote:
How do your \include lines look like exactly?
They look like:
\include{frontmatter/abbreviations}
(and there is an abbreviations.tex file sitting in the directory frontmatter. The directory sits next to the master tex file.)
Thanks, zsteir
Haris Skiadas Department of Mathematics and Computer Science Hanover College