09
Sep

在Prosper中使用PS命令 (2)

使用Prosper时,要在特定的位置放置特定的文字,图片,表格最常用的命令(我个人比较喜欢使用的)就是

\rput[bp]{rot}(px,py){objects}

  • [bp] – 参考点(基准点),也就是说指定的坐标是对要放的东西的那个点来说的。
    • [c] center
    • [t] top
    • [b] bottom
    • [u] upper
    • [l] left
    • [r] right
    • 可以使用上面的组合,一般来讲,使用左上角[tl]或者左下角[bl]是比较方便的。
  • {rot} — 制定偏角,一般用不到,可以忽略。
  • (px,py) — 顾名思义,就是横纵坐标的意思。坐标值可以参考在本文第一部分打印的坐标图。
  • {objects} — 就是你要放置的东西了。

也许你也注意到了,这个命令里面没有关于宽度高度的定义。那么它就会把你要放的object按照它的大小一比一的放到指定的坐标值上。这里有一点技巧,就是为了使它的大小也可以控制,我通常把\rput和\parbox一同来使用,通过\parbox来控制宽度。使用的时候就是如下的样子:

\rput[tl](1,0.2){
 \parbox[t]{10cm}{
  \shadowbox{
   $\piff{\vtx_2}{\vtx_0} = %略
  }
 }
}
\rput[tl](0.5,-2.9){
 \parbox[t]{10cm}{
  By finding %略
 }
}

上面的代码放到一个页面里的输出如下:

Prosper example

文字和公式都分别用\rput被安放在制定的位置。所以,有了这个命令,Prosper就充满了生气,不必像普通的LaTeX文档一样,一行接着一行的排版了。这种定位准确,灵活,不会像Powerpoint一样会有移动的情况。活用这个命令,可以实现很多功能。

未完待续……

No Comments

Be the first to comment on this entry.

Leave a comment

Name(required)
Mail (will not be published)(required)
Website

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.dupola.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.