如何在Mac (10.6.8)上启用gnu图中的tikz终端?
我有乳胶和工作的tikz。现在我从http://www.lua.org/中安装了lua并下载了gnuptut4.4.4,解压缩后运行
$ ./configure
$ sudo make
$ sudo make install现在我可以设置tikz终端了,但是仍然存在一些问题。
gnuplot> set terminal tikz
Terminal type set to 'tikz'
Options are 'color dashed'
gnuplot> plot sin(x)
\begin{tikzpicture}[gnuplot]
/usr/local/share/gnuplot/4.4/lua/gnuplot-tikz.lua:252: bad argument #7 to 'format' (string expected, got no value)
stack
gnuplot> 我也尝试过从https://github.com/mxcl/homebrew/wiki/installation安装自制软件,尽管我没有进行-这有必要吗?现在,'brew install‘会给glib依赖带来问题。
hpek@melda:~$ brew install glib
/usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2
File already downloaded in /Users/hpek/Library/Caches/Homebrew
==> Downloading patches
curl: (22) The requested URL returned error: 404
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
/usr/bin/patch: **** Can't open patch file 001-homebrew.diff : No such file or directory
Error: Failure while executing: /usr/bin/patch -f -p0 -i 001-homebrew.diff
hpek@melda:~$ 当我手动安装gnuplot时,是否应该自己了解并安装所有这些依赖项?
发布于 2011-12-01 18:29:43
尝试:
brew update那就再试一次。现在看来已经修好了。
发布于 2012-01-04 08:53:34
问题是,LUA脚本的252 (或在我的版本中是254 )使用的格式命令比必要的参数少。添加"X“作为#5参数(a.k.a )。脚本修改号)解决了这个问题。
下面是我在脚本中的新代码:
gp.write(string.format("%%%% generated with GNUPLOT %sp%s (%s; terminal rev. %s, script rev. %s)\n%%%% %s\n",
term.gp_version, term.gp_patchlevel,
string.sub(term.lua_term_revision,7,-3),"x",
pgf.REVISION,os.date()))我想,如果我知道在哪里可以找到脚本修改号,那就更好了。
https://stackoverflow.com/questions/8216473
复制相似问题