However, for some reason dvipdf started giving an empty pdf document some time ago (and I have no desire to dig deeper).
You also can use latex directly through pdflatex, however, I get two pdf output files, one of them has no labels at all.
In my experience it's best to let graphics programs such as gnuplot use their own (non LaTeX) labels, and then replace these using psfrag. psfrag allows you to align the left/right/centre of the object to be replaced with the left/right/centre of the replacement. So, in gnuplot try
set term postscript eps mono
set output 'myplot.eps'
set ylabel 'Y'
plot x**3
It appears that some part of my MiKTeX 2.8 / TeXnicCenter installation had become corrupt. Yesterday, even old files that I new should compile without problems started to give the 0 error(s) and 0 page(s) result. The MiKTeX maintenance tools did now work as they should either when I tried to "update FNDB" and "reset formats" (I got errors). I ended up reinstalling MiKTeX (in the process I also upgraded from 2.8 to 2.9), and now it works again, including the gnuplot-lua-tikz package.
Best Answer
I may reply a bit too late, however, I had the same problem and I've found the solution here.
Basically you need to add a single additional key "standalone" to your terminal definition. I provide a MWE below (script.gp):
After that you run three more commands:
Finally, you can convert the resulting file to pdf. This is probably not the most optimal way to do what you need, however, it works.
UPDATE: Actually, that was a very long way to do this due to my lack of experience. You can reduce the number of steps like this:
However, for some reason
dvipdf
started giving an empty pdf document some time ago (and I have no desire to dig deeper). You also can use latex directly throughpdflatex
, however, I get two pdf output files, one of them has no labels at all.