http://xmodulo.com/presentation-command-line-linux.html
When you prepare a talk for audience, the first thing that will probably come to your mind is shiny presentation charts filled with fancy diagrams, graphics and animation effects. Fine. No one can deny the power of visually charming presentation. However, not all presentations need to be Ted talk quality. Often times, the purpose of a presentation is to convey specific information, which can easily be done with textual messages. In such cases, your time can be better spent on gathering information and checking facts, rather than searching for good-looking graphics from Google Image.
In the world of Linux, you can do presentation in several different ways, e.g., Impress for multimedia-rich content, Impress.js for stunning visualization, Beamer for hardcore LaTex users, and so on. If you are looking for a simple means to create and show a textual presentation, look no further. mdp can get the job done for you.
Here is a 6-page sample presentation for your reference.
The title of the presentation appears on top of each slide, and your name and page number are shown at the bottom.
This is an example of a nested list and multi-level headers.
This is an example of a code snippet and inline code.
This is an example of nested quotes.
This is an example of placing citations.
This is an example of UTF-8 special characters.
When you prepare a talk for audience, the first thing that will probably come to your mind is shiny presentation charts filled with fancy diagrams, graphics and animation effects. Fine. No one can deny the power of visually charming presentation. However, not all presentations need to be Ted talk quality. Often times, the purpose of a presentation is to convey specific information, which can easily be done with textual messages. In such cases, your time can be better spent on gathering information and checking facts, rather than searching for good-looking graphics from Google Image.
In the world of Linux, you can do presentation in several different ways, e.g., Impress for multimedia-rich content, Impress.js for stunning visualization, Beamer for hardcore LaTex users, and so on. If you are looking for a simple means to create and show a textual presentation, look no further. mdp can get the job done for you.
What is Mdp?
mdp is an ncurses-based command-line presentation tool for Linux. What I like about mdp is its markdown support, which makes it easy to create slides with familiar markdown format. Naturally, it becomes painless to publish the slides in HTML format as well. Another plus is its support for UTF-8 character encoding, which comes in handy when showing non-English characters (e.g., Greek or Cyrillic alphabets).Install Mdp on Linux
Installation of mdp is mostly painless due to its light dependency requirement (i.e., ncursesw).Debian, Ubuntu or their derivatives
$ sudo apt-get install git gcc make libncursesw5-dev
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
Fedora or CentOS/RHEL
$ sudo yum install git gcc make ncurses-devel
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
$ git clone https://github.com/visit1985/mdp.git
$ cd mdp
$ make
$ sudo make install
Arch Linux
On Arch Linux, you can easily install mdp from AUR.Create a Presentation from the Command Line
Once you installed mdp, you can easily create a presentation by using your favorite text editor. If you are familiar with markdown, it will take no time to master mdp. For those of you who are not familiar with markdown, starting with an example is the best way to learn mdp.Here is a 6-page sample presentation for your reference.
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
| %title: Sample Presentation made with mdp (Xmodulo.com) %author: Dan Nanni %date: 2015-01-28 -> This is a slide title <- code="">-> ========= -> mdp is a command-line based presentation tool with markdown support. <- code="">-> *_Features_* * Multi-level headers * Code block formatting * Nested quotes * Nested list * Text highlight and underline * Citation * UTF-8 special characters ------------------------------------------------- -> # Example of nested list <- code="">-> This is an example of multi-level headers and a nested list. # first-level title second-level ------------ - *item 1* - sub-item 1 - sub-sub-item 1 - sub-sub-item 2 - sub-sub-item 3 - sub-item 2 ------------------------------------------------- -> # Example of code block formatting <- code="">-> This example shows how to format a code snippet. 1 /* Hello World program */ 2 3 #include 4 5 int main() 6 { 7 printf("Hello World"); 8 return 0; 9 } This example shows inline code: `sudo reboot` ------------------------------------------------- -> # Example of nested quotes <- code="">-> This is an example of nested quotes. # three-level nested quotes > This is the first-level quote. >> This is the second-level quote >> and continues. >>> *This is the third-level quote, and so on.* ------------------------------------------------- -> # Example of citations <- code="">-> This example shows how to place a citation inside a presentation. This tutorial is published at [Xmodulo](http://xmodulo.com) You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo) Pretty cool, huh? ------------------------------------------------- -> # Example of UTF-8 special characters <- code="">-> This example shows UTF-8 special characters. ae = ä, oe = ö, ue = ü, ss = ß alpha = ?, beta = ?, upsilon = ?, phi = ? Omega = ?, Delta = ?, Sigma = ? ??????????? ?rectangle? ??????????? |
Show a Presentation from the Command Line
Once you save the above code as slide.md text file, you can show the presentation by simply running:
$ mdp slide.md
You can navigate the presentation by pressing
Enter/Space/Page-Down/Down-Arrow (next slide),
Backspace/Page-Up/Up-Arrow (previous slide), Home (first slide), End
(last slide), or numeric-N (N-th slide).The title of the presentation appears on top of each slide, and your name and page number are shown at the bottom.
This is an example of a code snippet and inline code.
This is an example of nested quotes.
This is an example of placing citations.
This is an example of UTF-8 special characters.
No comments:
Post a Comment