1

gnuplot is giving the error: "sh: kpsexpand: not found."

I feel like the guy in Office Space when he saw "PC LOAD LETTER". What the heck is kpsexpand?

I searched Google, and there were a lot of pages that make reference to kpsexpand, and say not to worry about it, but I can't find anything, anywhere that actually explains what it is.

Even the man page stinks:

$ man kpsexpand

kpsetool - script to make teTeX-style kpsetool, kpsexpand, and kpsepath available

Edit: Again, I'm not asking what to do -- I know what to do, thanks to Google. What I'm wondering is what the darn thing is.

4

2 回答 2

2

kpsexpand、kpsetool 和 kpsepath 都是 kpsewhich 的包装器,用于处理查找 tex 相关文件 kpsexpand 用于扩展环境变量。假设 $VAR1 是 "Hello World" 而 $VAR2 是 "/home/where/I/belong" 然后

$ kpsexpand $VAR1

将返回

Hello World

$ kpsexpand $VAR2
将返回

/家/哪里/我/属于

kpsewhich让人想起which就像which progname将搜索 $PATH 环境变量中的目录并返回第一个找到的 progname 的路径,kpsewhich filename将搜索各种 tex-paths、字体、包等中的目录以获取文件名。

在 man 或 google 中查找更多查找 kpsewhich,并查看 kpsexpand 的来源

less `which kpsexpand`

干杯/B2S

于 2010-03-29T14:20:19.157 回答
1

这是“kpexpand gnuplot”的谷歌搜索结果的第一页:

http://dschneller.blogspot.com/2007/06/visualize-hard-disk-temperature-with.html

它说您不需要关心错误消息。

这是 kpsexpand 的手册页:

http://linux.die.net/man/1/kpsexpand

于 2008-09-16T05:21:54.770 回答