<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>> Here's my real world example for you then :-)<br><br>Interesting situation; thanks!<br><br>There is a kludgey workaround: write something like
<br><br>\include{myheader} % <- includes \begin{document}</blockquote><div><br>Cool, that gets me past that hurdle.<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;">
The string '\begin{document}' is taken to indicate the end of the<br>preamble, even if it's in a comment. That's intentional, precisely to<br>permit this kind of workaround; though perhaps it would be prettier to
<br>also recognise a special comment "% End of preamble" or some such.<br><br>> How hard would it be to solve this problem the brute force way and just<br>> provide a flag that would have the script recompile the whole document.
<br><br>I'm inclined to say, if that's what you want then Watch is not the<br>tool you are looking for, since you won't get any benefit from it. If<br>you do want to use Watch in such a situation, it is not hard to
<br>implement a workaround as described above.</blockquote><div><br>You may be right. I've been perfectly happy using the latex & view command and having Skim set up to auto update when the file changes. Plus, I have to do bibtexing and makeindexing a fair amount in my documents.
<br><br>But, since I dove into it to add it to the branch and move it into the Latex bundle, you are the victim of some of my random thoughts along the way. :-)<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;">
Of course ideally I'd like it to work without the need for a special<br>workaround. When luaTeX is properly released (in about a year, if it<br>goes to plan), I think I could implement a reasonable solution using<br>that.
</blockquote><div><br>luaTeX interesting... Would you use lua to replace some of the stuff that is written in TeX today?<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;">
> I wonder whether precompiling the preamble really saves you that much time for<br>> most documents on modern hardware??<br><br>All I know is that it saves an awful lot of time for my documents on<br>my hardware. I wouldn't have bothered to write it otherwise! Do you
<br>not find that it does for yours? I know my Powerbook G4 is getting on<br>a bit.</blockquote><div><br><br>On my mbp It takes about .75 seconds to typeset a 30 page chapter, which includes about 25 different packages. I don't even find that time noticeable given that I have to switch focus to a new window.
<br><br>Brad<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;"><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