On Thu, 8 Jul 2010, Robert Levinson wrote:
I'm having trouble getting TeX to work properly with Gretl 1.9.1
under Mac OS X 10.6.4.
Suppose for instance that I want to see the results of an OLS
regression as TeX output (the problem surfaces no matter what
procedure I run). After running the regression I choose the
LaTeX drop-down menu and select View -> Tabular. I get an error
box that says it "Failed to process TeX file". On closing that
error a log becomes visible, saying at the beginning --
-----------
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=pdflatex 2010.7.8) 8
JUL 2010 14:04
entering extended mode
%&-line parsing enabled.
**\batchmode \input window
(./window.tex
! LaTeX Error: Missing \begin{document}.
The default preamble definitely includes \begin{document} (and
works). I think gretl must be picking up a broken gretlpre.tex
from somewhere on your system. In the current snapshots (see
http://gretl.sourceforge.net/osx.html ) I have put a print to
stderr to track this. E.g on my system I see:
gretltex: using preamble file
/home/cottrell/gretl/gretlpre.tex
when I view a model. If you launch gretl from a terminal window
you should see what's happening, I hope.
cd /Applications/Gretl.app/Contents/Resources/bin
./gretl
Allin Cottrell