4

I'm using Gnuplot 4.4, compiled with Lua support. It supposedly has the tikz terminal.

I've successfully compiled my gnuplots to tex using "set terminal tikz". However, when adding this source to my latex document I keep getting the following error:

! Package pgfkeys Error: I do not know the key '/tikz/gnuplot' and I am going t o ignore it. Perhaps you misspelled it.

I've included the tikz package in the original tex document. Any ideas?

EDIT: Solved. See answer bellow.

halfwarp
  • 1,780
  • 5
  • 24
  • 41
  • I've eventually moved on to use Tikz with pgfplots, which pretty awesome! http://www.texample.net/tikz/examples/pgfplots/ – halfwarp Jun 30 '10 at 01:47

3 Answers3

13

I didn't give in until I found a solution:

\usepackage{gnuplot-lua-tikz}

If you don't have the gnuplot-lua-tikz.sty just get it from the latest gnuplot development snapshot

http://sourceforge.net/projects/gnuplot/

Alexander Brock
  • 131
  • 1
  • 3
2

Unfortunately I am not allowed to comment here, hence a new answer. The .sty file is not sufficient, you need both of the following files from gnuplot (unfortunately the package is no gnuplot-lua-tikz package at cran):

gnuplot-lua-tikz.sty gnuplot-lua-tikz-common.tex

Frederik
  • 355
  • 2
  • 8
0

For later happless Fedora users: The package containing this here is gnuplot-latex, dnf doesn't recognize it as tex(gnuplot-lua-tikz.sty).

vonbrand
  • 11,412
  • 8
  • 32
  • 52