patat: 命令行ppt

警告
本文最后更新于 2020-12-23,文中内容可能已过时。

patat 是一款比较符合极客风格的课件制作工具。

安装

安装 stack

1
curl -sSL https://get.haskellstack.org/ | sh

安装 patat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
git clone git@github.com:jaspervdj/patat.git
cd patat
stack setup
stack install

## Make sure $HOME/.local/bin is in your $PATH

patat v0.8.6.1

Usage: patat [FILENAME] [-w|--watch]
  Terminal-based presentations using Pandoc

  Controls:
  - Next slide:             space, enter, l, right, pagedown
  - Previous slide:         backspace, h, left, pageup
  - Go forward 10 slides:   j, down
  - Go backward 10 slides:  k, up
  - First slide:            0
  - Last slide:             G
  - Jump to slide N:        N followed by enter
  - Reload file:            r
  - Quit:                   q

Available options:
  -h,--help                Show this help text
  FILENAME                 Input file
  -f,--force               Force ANSI terminal
  -d,--dump                Just dump all slides and exit
  -w,--watch               Watch file for changes
  --version                Display version info and exit

使用

1
2
3
4
cd /home/william/workspace/patat

cd tests/golden/inputs
patat -w syntax.md

常用选项:

  • -w:可以实时查看效果

  • -f:忽略 ANSI 不支持的问题

控制:

  • Next slide: space, enter, l, , PageDown
  • Previous slide: backspace, h, , PageUp
  • Go forward 10 slides: j,
  • Go backward 10 slides: k,
  • First slide: 0
  • Last slide: G
  • Jump to slide N: N followed by enter
  • Reload file: r
  • Quit: q

效果

相关内容

william 支付宝支付宝
william 微信微信
0%