<br><br><div><span class="gmail_quote">On 7/31/07, <b class="gmail_sendername">Robin Houston</b> <<a href="mailto:robin.houston@gmail.com">robin.houston@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 31/07/07, Brad Miller <<a href="mailto:bmiller@luther.edu">bmiller@luther.edu</a>> wrote:<br>> But, if I make any changes the view does not update.  I get the following<br>> error in the log:<br>><br>> Use of uninitialized value in system at
<br>> /Users/bmiller/Library/Application<br>> Support/TextMate/Bundles/Latex.tmbundle/Support/bin/latex_watch.pl<br>> line 690.<br><br>What version of Watch did you use? In the current version (2.5), line<br>690 is a comment!
</blockquote><div><br><br>OK, I was using version 2.4  I'll grab the latest after lunch and try it.<br> <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> 1.  It feels like there must be a ton of duplicated effort between the<br>> typeset and view command as implemented in texMate.py and friends and what<br>> you have done.  texMate.py is pretty modular, and may be able to do much of
<br>> what latex_watch.pl does.<br><br>It may well be that some logic is duplicated, and can be factored out.<br>I suspect there may be less than you think. Have you looked at the<br>Watch code? Most of it is fairly specific to the monitor-and-update
<br>model used by Watch.</blockquote><div><br>I was thinking mostly of the compiling and finding options and getting preferences...<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> 2.  I don't understand the limitation about not being able to watch files<br>> that have the \begin document in an included header file.<br><br>Watch needs to be able to distinguish the preamble from the document
<br>body. The preamble is extracted and used to compile a custom format<br>file (TeX memory dump) which is used to compile the body. This format<br>is regenerated only when the preamble is changed. If the preamble is<br>spread across multiple files, it is more complicated to keep track of.
<br>There are any number of ways that this could be improved to some<br>extent: since I do not know a perfect solution, I thought I would<br>address such cases as they arise. To date, no one has shown me a "real<br>world" document that suffers from this problem.
<br><br>(Incidentally, I did find a cunning solution to *half* the problem:<br>see the contents of the Support/tex/generic directory in the bundle.)</blockquote><div><br>Here's my real world example for you then :-)<br>
I'm working on a book with another author.  We have a master file for when we want to typeset the entire book, but most of the time we just want to typeset individual chapters.  So we have a header and a footer file that we put into each chapter, as well as the master file for the whole book.  These headers and footers are smart enough to detect when we are typesetting the whole book, or just a chapter.
<br> <br>It works much better than both of us having to comment out various parts of the entire master file when we are working on a single chapter.<br><br>I think this approach was talked about on the TM list a while (over a year) back.
<br><br>How hard would it be to solve this problem the brute force way and just provide a flag that would have the script recompile the whole document.  I wonder whether precompiling the preamble really saves you that much time for most documents on modern hardware??
<br><br>Brad<br><br><br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Robin<br><br>______________________________________________________________________
<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">
http://lists.macromates.com/mailman/listinfo/textmate</a><br></blockquote></div><br><br clear="all"><br>-- <br>Brad Miller<br>Assistant Professor, Computer Science<br>Luther College