TPP简介

tpp是一款基于文本界面的展示工具,也就是文字版的ppt。

官网:http://www.ngolde.de/tpp.html

安装:

sudo apt-get install tpp

使用方式:

usage: tpp [-t <type> -o <file>] <file>
-t <type> set filetype <type> as output format
-o <file> write output to file <file>
-s <seconds> wait <seconds> seconds between slides (with -t autoplay)
–version print the version
–help print this help

语法说明:
–author 作者
–title 标题
–date today(可以自动插入当天日期),还可以加各种格式,例如%a表示星期,%b表示月份,%e表示日期,%H表示小时,%M表示分钟,%S表示秒,%Z表示时区,%Y表示年份。
–heading 页面标题
–exec bash命令
–newpage 开始新页面
文字下面加—暂停(一步一步显示)
–beginoutput 开始文本框(可以用来显示代码)
–endoutput 结束文本框
–beginshelloutput 开始shell文本框(模拟shell输入输出)
–endshelloutput 结束shell文本框
–boldon 下面开始文本加粗
–boldoff 结束文本加粗
–revon 下面开始知道revoff文本反白
–revoff 结束文本反白
–ulon 开始文本下划线
–uloff 结束文本下划线
–huge 显示大的艺术字
–sethugefont 设置艺术字字体, standard标准字体,block砖块字体
–beginslideleft 下一行开始文本从左边进入,对应的还有right(从右边进入),top(从顶部进入),bottom(从底部进入)
–endslideleft 结束
–horline 在下一行画一条水平线
–header 页眉
–footer 页脚
–center 文本居中
–right 右对齐(默认左对齐)
–bgcolor 背景色(例如red,blue,yellow)
–color 设置文本颜色(直到出现新的color设置)
–fontcolor 设置文本颜色(全局)
快捷键:

使用鼠标滚轮或者方向键控制前后,还可以用空格播放下一张,按b可以回到前一张。按s可以回到第一张,e跳到最后一张,l刷新当前页,c调出命令行,j跳到指定页面,所有字母命令不区分大小写,q命令结束播放,退出tpp。

 

目前可用的type有ncurses(默认),autoplay自动播放,latex生成tex文件,txt生成文本文件。如果使用autoplay,还可以加-s选项决定每一张的播放时间,单位是秒。

posted @ 2016-10-19 02:33  林博士  阅读(878)  评论(0编辑  收藏  举报