To whom it may concern:<br><br>There is a problem with pdf files metainformation that I think might be fixed in dvips (and, unfortunately, I don't know how to do it).<br>I reported this in the "comp.text.tex" newsgroup (
<a href="http://groups.google.com/group/comp.text.tex/browse_thread/thread/946ed6e0d03d1ecd/21b4721c249abeff#21b4721c249abeff">http://groups.google.com/group/comp.text.tex/browse_thread/thread/946ed6e0d03d1ecd/21b4721c249abeff#21b4721c249abeff
</a>), and it was formerly reported by somebody else in the "comp.graphics.apps.gnuplot" group, but I am filing it here as a "bug report," though it might be more properly called a "feature request."
<br>With the last gnuplot (4.2.0), when using the eps terminal (e.g. "set term post eps", and I presume any postscript terminal) in order to generate eps files to be included in a TeX document via the graphicx macros, the "pdfmark" information included in those eps files takes precedence over the pdfmark information generated by hyperref (I presume because it appears later in the file) when using latex + dvips + ps2pdf. I presume this might be called a dvips bug, or at least it might be fixed in dvips. When using "epstopdf + pdflatex" or "latex + dvipdfmx" the problem does not appear. Another contributor in "
comp.text.tex" confirmed that, when including eps files created by a different procedure but containing metainformation, he encountered the same problem. <br>The problem is easy to reproduce, but so you may check it, I attach here 3 files:
<br>(1) "<a href="http://gr.gp">gr.gp</a>", a gnuplot script file.<br>(2) "gr.eps", the resulting eps file.<br>(3) "problem.tex", the LaTeX that gives rise to the problem.<br>I process "
problem.tex" with latex (or pdflatex --output-format=dvi), then dvips (with or without -z), and finally ps2pdf. Then "pdfinfo problem.pdf" yields:<br>Title: gr.eps<br>Subject: gnuplot plot<br>
Keywords:<br>Author: root<br>Creator: gnuplot 4.2 patchlevel 0<br>Producer: dvips + AFPL Ghostscript 8.54<br>CreationDate: Thu Mar 8 09:11:13 2007<br>ModDate: Thu Mar 8 09:33:40 2007<br>Tagged: no
<br>Pages: 1<br>Encrypted: no<br>Page size: 612 x 792 pts (letter)<br>File size: 6805 bytes<br>Optimized: no<br>PDF version: 1.4<br>That is, the author and title metainformation is taken from "
gr.eps" rather than the hyperref settings. Just looking at "<a href="http://problem.ps">problem.ps</a>", one may see that it has both "pdfmark" settings, so ps2pdf just takes the last one it encounters. I presume one might tweak dvips to reproduce only the hyperref information in this case, or rather to ignore the metainformation coming from the included graphics files.
<br>Thanks for your help.<br>Best regards,<br>Gual<br>