Thanks for your quick response, Allin. In an effort to run a controlled experiment, I
tried to parallel your example as closely as possible by first deleting my existing Gretl
installation (from the Intel Mac disk images) by dragging my Gretl applications folder
into the trash and then installing the current snapshot (which I presume is the same or
really similar to what you're using) directly into my Applications folder.
The problem remains (no surprise), but now I have the benefit of your print to stderr.
Here's the xterm log when I (i) loaded Gretl from an open xterm, and (ii) tried to
view the results of an arbitrary OLS regression from the model's LaTeX menu:
--------------------------------------
bash-3.2$ cd /Applications/Gretl.app/Contents/Resources/bin
bash-3.2$ ./Gretl
(gretl_x11:3982): Gtk-WARNING **: Unable to find default local directory monitor type
(gretl_x11:3982): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
(object)' failed
get_gretl_charset: using UTF-8
Read datafile /Users/rjlevins/gretl/BillGreene.gdt
periodicity: 1, maxobs: 36
observations range: 1960-1995
gretltex: using preamble file
/Users/rjlevins/gretl/
--------------------------------------
Re the warning and error messages -- Gretl seems to be confused to some degree. Any
thoughts as to what they might mean? Do these seem to be related to the problem?
The last two lines do seem to say that Gretl knows where to find the right preamble file.
But there's a difference from your output -- the filename of the gretlpre.tex file
isn't listed at the end (see last line above, compare to your example below). The
contents of that gretlpre.tex file are exactly as listed in the manual for the default:
--------------------------------------
\documentclass[11pt]{article}
\usepackage[latin1]{inputenc} %% but see below
\usepackage{amsmath}
\usepackage{dcolumn,longtable}
\begin{document}
\thispagestyle{empty}
The error log generated by Gretl was just like before:
--------------------------------------
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=pdflatex 2010.7.8) 8
JUL 2010 19:57
entering extended mode
%&-line parsing enabled.
**\batchmode \input window
(./window.tex
! LaTeX Error: Missing \begin{document}.
[etc. etc.]
-------------------------------------
This is all very puzzling. Thanks in advance for your help with this.
- Bob
On Jul 8, 2010, at 4:29 PM, Allin Cottrell wrote:
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
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
Robert J. Levinson
rjlevinson(a)verizon.net