mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-03 23:40:14 +08:00
PUB:20150202 How to create and show a presentation from the command line on Linux
@soooogreen 干的不错,兄弟!
This commit is contained in:
parent
c5449ba3d9
commit
d50e02b277
@ -1,16 +1,16 @@
|
|||||||
如何在Linux命令行中创建以及展示演示稿
|
如何在Linux命令行中创建以及展示演示稿
|
||||||
================================================================================
|
================================================================================
|
||||||
你在准备一场演讲的时候,脑海可能会先被图文并茂、形象华丽的演示图稿所占据。诚然,没有人会否认一份生动形象的演讲稿所带来的积极作用。然而,并非所有的演讲都需要Ted Talk的质量。更多时候,演讲稿只为传达特定的信息。 而这个,使用文本信息足以完成。在这种情况下,你的时间可以更好的花在信息的搜集和核实上面,而不是在谷歌图像(Google Image)上寻找好看的图片。
|
你在准备一场演讲的时候,脑海可能会先被图文并茂、形象华丽的演示图稿所占据。诚然,没有人会否认一份生动形象的演讲稿所带来的积极作用。然而,并非所有的演讲都需要TED Talk的质量。更多时候,演讲稿只为传达特定的信息。 而这个,使用文本信息足以完成。在这种情况下,你的时间可以更好的花在信息的搜集和核实上面,而不是在谷歌图片搜索(Google Image)上寻找好看的图片。
|
||||||
|
|
||||||
在Linux的世界里,有几个不同的方式供你选择来做演讲。比如富多媒体展示,视觉冲击效果极佳的[Impress.js][1],还有专为LaTex用户提供的Beamer,等等。而如果你苦于寻找一种简单的方式来创建并且展示文本演示稿,[mdp][2]就能帮你实现。
|
在Linux的世界里,有几个不同的方式供你选择来做演讲。比如带有大量多媒体展示、视觉冲击效果极佳的[Impress.js][1],专为LaTex用户提供的Beamer,等等。而如果你苦于寻找一种简单的方式来创建并且展示文本演示稿,[mdp][2] 就能帮你实现。
|
||||||
|
|
||||||
### 什么是Mdp? ###
|
### 什么是Mdp? ###
|
||||||
|
|
||||||
mdp是Linux下一款基于菜单窗口的命令行演示工具。我喜欢mdp在于它对[markdown][3]的支持,使得很容易以熟悉的markdown格式来创建幻灯片。自然,还可以很轻松地用HTML格式来发布幻灯片。另一个好处是它支持UTF-8字符编码,这让非英语字符(如希腊或西里尔字母)的展示也变得很方便。
|
mdp是Linux下一款基于ncurses的命令行演示工具。我喜欢mdp在于它对[markdown][3]的支持,使得我很容易以熟悉的markdown格式来创建幻灯片。自然,它还可以很轻松地用HTML格式来发布幻灯片。另一个好处是它支持UTF-8字符编码,这让非英语字符(如希腊或西里尔字母)的展示也变得很方便。
|
||||||
|
|
||||||
### 在Linux中安装Mdp ###
|
### 在Linux中安装Mdp ###
|
||||||
|
|
||||||
mdp的少量依赖需求(也就是ncursesw)使得安装非常简单。
|
mdp的依赖需求很少(如 ncursesw),这使得安装非常简单。
|
||||||
|
|
||||||
#### Debian、Ubuntu或者它们的衍生版 ####
|
#### Debian、Ubuntu或者它们的衍生版 ####
|
||||||
|
|
||||||
@ -36,101 +36,101 @@ Arch Linux可以通过[AUR][4]轻松安装mdp。
|
|||||||
|
|
||||||
安装mdp完毕,你可以使用你喜欢的文本编辑器来轻松创建一个演示稿。如果你熟悉markdown的话,很快就可以驾驭mdp。而对于那些不熟悉markdown的人来说,学习mdp最好的方式就是从一个实例着手。
|
安装mdp完毕,你可以使用你喜欢的文本编辑器来轻松创建一个演示稿。如果你熟悉markdown的话,很快就可以驾驭mdp。而对于那些不熟悉markdown的人来说,学习mdp最好的方式就是从一个实例着手。
|
||||||
|
|
||||||
这里有一份6页的演示稿样本提供参考。
|
这里有一份6页的演示稿样本可供参考。
|
||||||
|
|
||||||
%标题: 利用mdp创建的演示稿样本(Xmodulo.com)
|
%title: Sample Presentation made with mdp (Xmodulo.com)
|
||||||
%作者: Dan Nanni
|
%author: Dan Nanni
|
||||||
%日期: 2015-01-28
|
%date: 2015-01-28
|
||||||
|
|
||||||
-> 这里是幻灯片标题 <-
|
-> This is a slide title <-
|
||||||
=========
|
=========
|
||||||
|
|
||||||
-> mdp是一款基于命令行的支持markdown的演示工具 <-
|
-> mdp is a command-line based presentation tool with markdown support. <-
|
||||||
|
|
||||||
*_特性_*
|
*_Features_*
|
||||||
|
|
||||||
* 多层次标题
|
* Multi-level headers
|
||||||
* 代码块格式
|
* Code block formatting
|
||||||
* 嵌套引用
|
* Nested quotes
|
||||||
* 嵌套列表
|
* Nested list
|
||||||
* 文本高亮以及下划线
|
* Text highlight and underline
|
||||||
* 引证
|
* Citation
|
||||||
* UTF-8编码特殊字符支持
|
* UTF-8 special characters
|
||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
-> # 嵌套列表实例 <-
|
-> # Example of nested list <-
|
||||||
|
|
||||||
这里是一个多层次标题以及嵌套列表的实例
|
This is an example of multi-level headers and a nested list.
|
||||||
|
|
||||||
# 第一层标题
|
# first-level title
|
||||||
|
|
||||||
第二层
|
second-level
|
||||||
------------
|
------------
|
||||||
|
|
||||||
- *item 1*
|
- *item 1*
|
||||||
- sub-item 1
|
- sub-item 1
|
||||||
- sub-sub-item 1
|
- sub-sub-item 1
|
||||||
- sub-sub-item 2
|
- sub-sub-item 2
|
||||||
- sub-sub-item 3
|
- sub-sub-item 3
|
||||||
- sub-item 2
|
- sub-item 2
|
||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
-> # 代码块格式实例 <-
|
-> # Example of code block formatting <-
|
||||||
|
|
||||||
此例展示如何排版代码片段。
|
This example shows how to format a code snippet.
|
||||||
|
|
||||||
1 /* Hello World program */
|
1 /* Hello World program */
|
||||||
2
|
2
|
||||||
3 #include <stdio.h>
|
3 #include <stdio.h>
|
||||||
4
|
4
|
||||||
5 int main()
|
5 int main()
|
||||||
6 {
|
6 {
|
||||||
7 printf("Hello World");
|
7 printf("Hello World");
|
||||||
8 return 0;
|
8 return 0;
|
||||||
9 }
|
9 }
|
||||||
|
|
||||||
此例展示内联代码: `sudo reboot`
|
This example shows inline code: `sudo reboot`
|
||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
-> # 嵌套引用实例 <-
|
-> # Example of nested quotes <-
|
||||||
|
|
||||||
这是一个嵌套引用实例
|
This is an example of nested quotes.
|
||||||
|
|
||||||
# 三层嵌套引用
|
# three-level nested quotes
|
||||||
|
|
||||||
> This is the first-level quote.
|
> This is the first-level quote.
|
||||||
>> This is the second-level quote
|
>> This is the second-level quote
|
||||||
>> and continues.
|
>> and continues.
|
||||||
>>> *This is the third-level quote, and so on.*
|
>>> *This is the third-level quote, and so on.*
|
||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
-> # 引证实例 <-
|
-> # Example of citations <-
|
||||||
|
|
||||||
此例展示如何在演示稿中放置引证。
|
This example shows how to place a citation inside a presentation.
|
||||||
|
|
||||||
This tutorial is published at [Xmodulo](http://xmodulo.com)
|
This tutorial is published at [Xmodulo](http://xmodulo.com)
|
||||||
|
|
||||||
You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo)
|
You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo)
|
||||||
|
|
||||||
很酷是吧?
|
Pretty cool, huh?
|
||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
-> # UTF-8编码特殊字符支持实例 <-
|
-> # Example of UTF-8 special characters <-
|
||||||
|
|
||||||
此例展示UTF-8编码特殊字符支持。
|
This example shows UTF-8 special characters.
|
||||||
|
|
||||||
ae = ä, oe = ö, ue = ü, ss = ß
|
ae = ä, oe = ö, ue = ü, ss = ß
|
||||||
alpha = ?, beta = ?, upsilon = ?, phi = ?
|
alpha = ?, beta = ?, upsilon = ?, phi = ?
|
||||||
Omega = ?, Delta = ?, Sigma = ?
|
Omega = ?, Delta = ?, Sigma = ?
|
||||||
|
|
||||||
???????????
|
???????????
|
||||||
?rectangle?
|
?rectangle?
|
||||||
???????????
|
???????????
|
||||||
|
|
||||||
### 在命令行中展示演示稿 ###
|
### 在命令行中展示演示稿 ###
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ Arch Linux可以通过[AUR][4]轻松安装mdp。
|
|||||||
|
|
||||||
$ mdp slide.md
|
$ mdp slide.md
|
||||||
|
|
||||||
你可以通过按键Enter/Space/Page-Down/Down-Arrow (下一张幻灯)、Backspace/Page-Up/Up-Arrow (上一张幻灯)、Home (幻灯首页)、 End (幻灯末页)或者 numeric-N (第N页幻灯)来操作你的演示稿。
|
你可以通过按键 回车/空格/下翻页/向下光标键 (下一张幻灯)、回退/上翻页/向上光标键 (上一张幻灯)、Home (幻灯首页)、 End (幻灯末页)或者 数字N (第N页幻灯)来操作你的演示稿。
|
||||||
|
|
||||||
演示稿的标题将在每页幻灯的顶部展示,而你的名字和页码则会出现在幻灯的底部。
|
演示稿的标题将在每页幻灯的顶部展示,而你的名字和页码则会出现在幻灯的底部。
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ Arch Linux可以通过[AUR][4]轻松安装mdp。
|
|||||||
|
|
||||||
![](https://farm9.staticflickr.com/8587/16393383115_0865c8b89b_c.jpg)
|
![](https://farm9.staticflickr.com/8587/16393383115_0865c8b89b_c.jpg)
|
||||||
|
|
||||||
这是放置引证的实例效果。
|
这是放置引文的实例效果。
|
||||||
|
|
||||||
![](https://farm8.staticflickr.com/7409/16392457712_ed36c14bc2_c.jpg)
|
![](https://farm8.staticflickr.com/7409/16392457712_ed36c14bc2_c.jpg)
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ via: http://xmodulo.com/presentation-command-line-linux.html
|
|||||||
|
|
||||||
作者:[Dan Nanni][a]
|
作者:[Dan Nanni][a]
|
||||||
译者:[soooogreen](https://github.com/soooogreen)
|
译者:[soooogreen](https://github.com/soooogreen)
|
||||||
校对:[校对者ID](https://github.com/校对者ID)
|
校对:[wxy](https://github.com/wxy)
|
||||||
|
|
||||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||||
|
|
Loading…
Reference in New Issue
Block a user