<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>Before anyone digs too deep into dvips, consider that this may actually be a ps2pdf (Ghostscript) bug.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I tried the example given, and saw the problem as described. But using (an old version of) Adobe Distiller instead of GS to convert the .ps to .pdf, the problem does not occur; therefore, it seems that GS is behaving differently from Adobe Distiller. It would be good for someone knowledgeable in this area to carefully review the PostScript and pdfmark specifications to see what the "proper" behavior should be.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"Tweaking" dvips to avoid this issue is non-trivial, given that the pdfmark commands might be constructed by arbitrary PostScript code in the included graphics; recognizing and skipping this automatically requires, in the general case, a full PostScript interpreter in the driver.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If someone has an up-to-date version of Adobe Distiller and can test with that, it would be interesting to know what happens.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>JK</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>On 8 Mar 2007, at 8:41 am, gual News wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">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><SPAN><DIV>&lt;gr.gp&gt;</DIV></SPAN><SPAN><DIV>&lt;gr.eps&gt;</DIV></SPAN><SPAN><DIV>&lt;problem.tex&gt;</DIV></SPAN></BLOCKQUOTE></DIV><BR></BODY></HTML>