作者Chris7462 (~烤焦面包~)
看板R_Language
标题[问题] postscript 产生的 eps 图档
时间Fri Nov 6 13:25:03 2015
[问题类型]:
经验谘询
[软体熟悉度]:
使用者
[问题叙述]:
通常 eps 档的 bounding box 数值的前面两位数字会是 0 ,像这样子
%%BoundingBox: 0 0 487 399
可是用 R 的 postscript 产生的 eps 档的 bounding box 前面两位数却不会是 0
%%BoundingBox: 41 153 571 639
这样图档在系统下显示会是正常的,可是当放进 LaTeX 编译後位置却会跑掉,像下面这样
http://imgur.com/o4ujRcW
我可以修改 bounding box 的值,把前两位改为 0,这样可以调整回正确的位置,
可是同时也会造成 eps 图档有多余的空白,排版上很不美观。
我知道可以把 eps 转成 pdf 或其他格式再放进 LaTeX 内,不过因为工作上的需要,
必须使用 eps 档。想请问有没有什麽办法可以修正这个问题?
P.S: 我已经试过 gs, epstool, ps2epsi 这几个工具来调整 bounding box ,
想请问有没有什麽方法,可以不用手动去调整 bounding box。
[环境叙述]:
Ubuntu 15.10, R 3.2.2, TeX Live 2015 3.14159265-2.6-1.40.16
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 98.209.42.93
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1446787506.A.051.html
1F:→ andrew43: 我不知道其中道理,但你有没有试过 postscript() 中指定 11/12 01:58
2F:→ andrew43: horizontal=F, paper="special", width=5, heigh=5 11/12 01:58
3F:→ andrew43: 我这样做好像可以,请试试看。 11/12 01:59