|
From: Tatsuro M. <tma...@ya...> - 2009-12-02 11:42:19
|
Hello Franco Fritschij cc. gnu...@li... --- Franco Fritschij wrote: > Dear Tatsuro Matsuoka, > > Good news that you managed to compile gnuplot including the lua terminal. > > Gnuplot is default looking in the wrong directory for the lua/tikz files. > You can see that by using the following gnuplot terminal commands. > > 'set term lua tikz' or equivalent 'set term tikz' > > It looks in '......./gp45-winbin/gnuplot/share/lua' instead of > '........../gp45-winbin/gnuplot/bin/share/lua' for the file gnuplot_tikz.lua > It works if the environment variable GNUPLOT_LUA_DIR is set to > '........./gp45-windir/gnuplot/bin/share/lua' as mentioned in the gnuplot documentation. > I think you have set some environment variable when compiling the code, this can probably be > easy set to the 'gnuplot/bin/share' directory by default. > > What do you have changed in the source code of lua.trm? The default location is pointing to > X11_DRIVER_DIR which is not set if you compile it for windows. > > Second remark: > > You should put the 'gnuplot-lua-tikz.sty' file in the zip package it is in 'share/LaTeX/' in the > source code. > The best place is in your 'bin/share' directory to add the LaTeX directory with the files from > the source package. > > The file 'gnuplot-lua-tikz.sty' is needed for latex to make the picture produced by the Lua/tikz > terminal. > > Best Regards, Franco Fritschij > Thanks for your comments. in the makefile.mgw # Where to install the PostScript prologue files, relatively to the executable # wgnuplot.exe GNUPLOT_PS_DIR = share/PostScript # Similarly for javascript files for the canvas terminal: GNUPLOT_JS_DIR = share/js # Similarly for scripts used by the lua terminal GNUPLOT_LUA_DIR = share/lua Then 'share/lua' relative to gnuplot executables. So that /gp45-winbin/gnuplot/bin/share/lua is the place to put the file 'gnuplot-tikz.lua'. This is the similar way to the PostScript prologue files. However as you pointed out gnuplot> set term tikz Terminal type set to 'tikz' error: cannot open D:\usr\Tatsu\mingwhome\gnuplotcvs\gp45-winbin\gnuplot\share/lua\gnuplot-tikz.lua: No such file or directory. Lua context closed. This might be a bug of newly imported code for windows into lua.trm. For the second remark I am not a lua user. I cannot answer your remark. I ask you to subscribe to gnu...@li... and discuss there. Anyway I appreciate your kind suggestions. Regards Tatsuro -------------------------------------- Learn more about HIV/AIDS - Red Ribbon Campaign 2009 http://pr.mail.yahoo.co.jp/redribbon/ |