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&#39;t know how to do it).<br>I reported this in the &quot;comp.text.tex&quot; 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 &quot;comp.graphics.apps.gnuplot&quot; group, but I am filing it here as a &quot;bug report,&quot; though it might be more properly called a &quot;feature request.&quot;
<br>With the last gnuplot (4.2.0), when using the eps terminal (e.g. &quot;set term post eps&quot;, and I presume any postscript terminal) in order to generate eps files to be included in a TeX document via the graphicx macros, the &quot;pdfmark&quot; 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 &quot;epstopdf + pdflatex&quot; or &quot;latex + dvipdfmx&quot; the problem does not appear. Another contributor in &quot;
comp.text.tex&quot; 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) &quot;<a href="http://gr.gp">gr.gp</a>&quot;, a gnuplot script file.<br>(2) &quot;gr.eps&quot;, the resulting eps file.<br>(3) &quot;problem.tex&quot;, the LaTeX that gives rise to the problem.<br>I process &quot;
problem.tex&quot; with latex (or pdflatex --output-format=dvi), then dvips (with or without -z), and finally ps2pdf. Then &quot;pdfinfo problem.pdf&quot; yields:<br>Title:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gr.eps<br>Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gnuplot plot<br>
Keywords:<br>Author:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root<br>Creator:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gnuplot 4.2 patchlevel 0<br>Producer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dvips + AFPL Ghostscript 8.54<br>CreationDate:&nbsp;&nbsp; Thu Mar&nbsp; 8 09:11:13 2007<br>ModDate:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thu Mar&nbsp; 8 09:33:40 2007<br>Tagged:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no
<br>Pages:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>Encrypted:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no<br>Page size:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 612 x 792 pts (letter)<br>File size:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6805 bytes<br>Optimized:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no<br>PDF version:&nbsp;&nbsp;&nbsp; 1.4<br>That is, the author and title metainformation is taken from &quot;
gr.eps&quot; rather than the hyperref settings. Just looking at &quot;<a href="http://problem.ps">problem.ps</a>&quot;, one may see that it has both &quot;pdfmark&quot; 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>