Linux在終端下也能演示PPT了,提升B格的神器,真心佩服這個開發者
很多Linux用戶都很享受在終端下操作電腦的快感,那是效率和準確性的完美結合。但是在日常工作中,我們難免會涉及到一些需要用到圖像界面的地方:例如撰寫幻燈片PPT,我們不得不還去安裝一個圖像界面和一個openoffice。今天小編給大家介紹一個在字元終端下也能演示幻燈片的工具-TPP。
TPP是一個終端幻燈片演示工具,採用類似源碼或者markdown風格的寫作方式,可以更精準的填寫幻燈片文檔內容。這裡小編使用的操作系統是ubuntu 1710,首先,我們可以用sudo apt-get install tpp來安裝tpp工具。
安裝完TPP後,我們就來正式編寫幻燈片文檔。在TPP的網站上我們可以找到示例代碼如下:
--author Andreas Krennmair
--title A simple example
--date today
This is the abstract of this presentation.
It may consist of zero or more lines, and may be as long as you want.
--newpage agenda
--heading Agenda
* Introduction
* Concept
* Implementation
* Comparison with other implementations
* Conclusions
--newpage intro
--heading Introduction
This is the introduction. And below, that"s source code.
--beginoutput
#include
int main(void) {
puts("Hello World!");
return 0;
}
--endoutput
可見,代碼還是很清晰的。基本不需要看文檔也能猜出代碼格式。--newpage intro是個頁面的開始,--beginoutput是一個代碼段輸出的開始。
我們把這段代碼保存在hello.tpp文件里,接下來運行tpp hello.tpp既可開始幻燈片演示了。
這一段是文檔基本信息,由以下代碼生成:
--author Andreas Krennmair
--title A simple example
--date today
This is the abstract of this presentation.
It may consist of zero or more lines, and may be as long as you want.
這一頁是正文,從代碼--newpage agenda開始。用--heading Agenda來表示星號章節。
這一頁從代碼--heading Introduction生成。源碼部分用--beginoutput來輸出,自動在源碼外添加虛線邊框。相信這樣的通寫作方式對於一個使用過markdown的用戶來說並不陌生,通過這個簡單的例子程序就可以立即開始自己的幻燈片寫作了,是不是很神奇?小編不由得感嘆Linux下的應用真實無奇不有,能做出這樣腦洞大開應用的作者真是太強了!
你會用這樣的方式來寫PPT嗎?


※怒懟ArchLinux不重視易用性,體驗發行版之manjaro
TAG:歌樂山上來的極客 |