On Tue, 1 Mar 2016, Riccardo (Jack) Lucchetti wrote:
On Tue, 1 Mar 2016, Riccardo (Jack) Lucchetti wrote:
> Anyway, this doesn't seem to work on my MATE laptop. I've tried evince,
> atril and okular, to no avail. stderr gives no debugging messages except
> for
>
> pdf help: looking for gretl-guide-a4.pdf
>
> In all three case, the guide opens, but not at the indicated chapter. Sorry
> I don't have time today to pursue this any further.
Correction/integration: it works with okular, provided you've
rebuild the pdf files from scratch. That is, between "configure +
make" and "make install", you run "make pdfdocs".
Oops, I should have mentioned that: the PDF User's Guide has to be
rebuilt (using the revised gretl.sty that's created by "configure") so
that it contains so-called "named destinations" (hypertargets). PDF
bookmarks do not suffice as targets for opening a file at a specific
place.
That said, I suspect that a setting I have with both evince and
atril by which those two programs remember the page they where at
when a given file was last closed is maybe interfering with the
desired outcome, but I wouldn't know how to turn it off/on (I
actually like it).
My evince also remembers the last-viewed position in PDF files;
nonethless it respects the option passed by gretl. You can test this
(what gretl's doing) at the command line. For example
evince gretl-guide.pdf --named-dest=chap:join
should open at the top of the "Joining data sources" chapter.
(Though maybe not if the Guide is already open in evince?)
Allin