Linux command line creation and Presentation MDP Demo text Tutorial

Source: Internet
Author: User
Tags git clone arch linux

In the Linux world, there are several different ways you can choose to make a speech. For example, with a large number of multimedia display, visual impact of excellent impress.js, specifically for latex users to provide Beamer, and so on. And if you're struggling to find a simple way to create and present a text presentation, MDP can help you achieve it.

What is MDP?

MDP is the next Linux based ncurses command line demo tool. I like MDP because of its support for Markdown, which makes it easy to create slides in a familiar markdown format. Naturally, it also makes it easy to publish slides in HTML format. Another advantage is that it supports UTF-8 character encoding, which makes it easy to display non-English characters, such as Greek or Cyrillic letters.

Installing MDP in Linux

MDP's reliance requirements are few (such as NCURSESW), which makes installation very simple.

Debian, Ubuntu, or their derivative editions.

$ 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 via Aur.

Create a presentation on the command line

Install MDP complete, you can use your favorite text editor to easily create a presentation. If you are familiar with markdown, you will soon be able to harness MDP. And for those unfamiliar with markdown, the best way to learn MDP is to start with an example.

Here's a 6-page demo sample for your reference.

The code is as follows Copy Code
%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 a 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 you 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 a 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 is example shows how to place a citation inside a presentation.

This tutorial was published at [Xmodulo] (http://xmodulo.com)

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?
???????????

Presenting a presentation on the command line

When you save the above code as a slide.md text file, you can run the following command to show the presentation:

$ MDP Slide.md

You can press Enter/space/down page/down cursor key (next slide), roll back/up/up/UP cursor key (previous slide), home (slide top), end (slide last), or number n (n page slide) to manipulate your presentation.

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

This is an instance effect of nested lists and multiple-level headings.

This is an instance effect of the code fragment and the inline code.

This is an instance effect of a nested reference.

This is the instance effect where the citation is placed.

This is the instance effect supported by the UTF-8 encoding special character.

Summarize

In this tutorial, I demonstrated how to use MDP to create and present a presentation on the command line. MDP's markdown compatibility eliminates the hassle of learning other new formats, which is an advantage over another demo tool called TPP. The limitations of MDP, it may not be your default demo tool. However, it is worth affirming that it can be useful in a certain situation.

Related Article

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.