How to create and display a demo in Linux Command Line

Source: Internet
Author: User

How to create and display a demo in Linux Command Line
GuideWhen preparing a speech, your mind may first be occupied by graphic and vivid demo images. It is true that no one will deny the positive effects of a vivid speech. However, not all speeches require the quality of TED Talk. More often, the speech only serves to convey specific information. The text information is sufficient. In this case, your time can be better spent on information collection and verification, rather than searching for good-looking images on Google Image.

In the Linux world, there are several different ways for you to choose to give a speech. For example, Impress. js with a large number of multimedia presentations and excellent visual impact effects, Beamer for LaTex users, and so on. If you are struggling to find a simple way to create and display a text demo, mdp can help you.

What is Mdp?

Mdp is a ncurses-based command line demonstration tool in Linux. I like mdp because it supports markdown, which makes it easy for me to create slides in a familiar markdown format. Naturally, it can also easily publish slides in HTML format. Another benefit is that it supports UTF-8 character encoding, which makes it easy to display non-English characters (such as Greek or Spanish letters.

Install Mdp in Linux

Mdp has few dependencies (such as ncursesw), which makes installation very simple.

Debian, Ubuntu, or their derivative version
 $ sudo apt-get install git gcc make libncursesw5-dev $ 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
Arch Linux

Arch Linux can easily install mdp through AUR.

Create a demo in the command line

After mdp is installed, you can use your favorite text editor to easily create a demo. If you are familiar with markdown, you will soon be able to control mdp. For those who are not familiar with markdown, the best way to learn mdp is to start with an instance.

There is a 6-page demo sample for your reference.

 %title: Sample Presentation made with mdp (Xmodulo.com) %author: Dan Nanni %date: 2015-01-28  -> This is a slide title <- =========  -> 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 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* - sub-item 1 - sub-sub-item 1 - sub-sub-item 2 - sub-sub-item 3 - sub-item 2  -------------------------------------------------  -> # Example of code block formatting <-  This example shows how to format a code snippet.  1 /* Hello World program */ 2 3 #include <stdio.h> 4 5 int main() 6 { 7 printf("Hello World"); 8 return 0; 9 }  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 second-level quote >> and continues. >>> *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)  You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo)  Pretty cool, huh?  -------------------------------------------------  -> # Example of UTF-8 special characters <-  This example shows UTF-8 special characters.  ae = ä, oe = ö, ue = ü, ss = ß alpha = ?, beta = ?, upsilon = ?, phi = ? Omega = ?, Delta = ?, Sigma = ?  ??????????? ?rectangle? ???????????
Display demo in command line

After saving the above Code as a slide. md text file, you can run the following command to display the demo:

 $ mdp slide.md

You can press the press Key, press enter, space, page flip, click the next light icon (next magic light), roll back, page flip, click the up light icon (next magic light), Home (Home page of the magic light), End (the last page of the magic light), or number N (the nth page of the magic light) to operate on your demo.

The title of the demo will be displayed on the top of each page, and your name and page number will appear at the bottom of the slide.

This is the effect of nested lists and multi-level titles.

This is an example of code snippets and Inline code.

This is the effect of nested reference instances.

This is the effect of placing quotes.

This is an instance effect supported by special characters in UTF-8 encoding.

Summary

In this tutorial, I demonstrate how to use mdp in the command line to create and display a demo. The markdown compatibility of mdp saves us the trouble of learning other new formats, which is an advantage over another demo tool called tpp. Limited by mdp, it may not be used as your default demo tool. However, it is worth noting that it will certainly come in handy in a certain situation. What do you think of mdp? Do you like anything else?

From: http:// OS .51cto.com/art/201502/465566.htm

Address: http://www.linuxprobe.com/cmd-line-presentation.html


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.