|
From: Tatsuro M. <tma...@ya...> - 2009-12-02 15:03:54
|
Hello Thank you for tests and their report. Seeing the code modification for lua terminal by Ethan, I cannot find any problem at the moment. I have tested in the default install directory in C:\Program Files\Gnuplot4.5. At that time, ************ set term tikz set out 'test.tikz' plot sin(x) set out ************* I found latex codes in file test.tikz so that I judged that test perhaps went well. I cannot find the reason why phenomena that you have found occur at the moment. It will become late in the night in Japan. Tomorrow, I'll carry out some trials. Regards Tatsuro --- Franco Fritschij wrote: > > Hello Tasuro Matsuoko, > > I did some more tests. Your wgnuplot.exe directory is called 'gp45-winbin/gnuplot/bin' > If I rename 'bin' to something else it works. So there is something strange in windows for > finding the wgnuplot.exe directory if the directory ends with 'bin'. I see the same problem for > the canvas terminal (looks for files in share/js) postscript terminals (postscript, epslatex > looks for files in share/Postscript). > > What is causing this? > > Regards, Franco > > > > -----Original Message----- > From: Tatsuro MATSUOKA [mailto:tma...@ya...] > Sent: Wednesday, December 02, 2009 12:42 PM > To: Franco Fritschij > Cc: gnu...@li... > Subject: lua terminal problem on windows (was gnuplot 4.5 (cvs) windows and cygwin binaries are > updated) > > 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/ |