自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何在Linux命令行中創(chuàng)建以及展示演示稿

系統(tǒng) Linux
mdp是Linux下一款基于ncurses的命令行演示工具。我喜歡mdp在于它對markdown的支持,使得我很容易以熟悉的markdown格式來創(chuàng)建幻燈片。自然,它還可以很輕松地用HTML格式來發(fā)布幻燈片。另一個好處是它支持UTF-8字符編碼,這讓非英語字符(如希臘或西里爾字母)的展示也變得很方便。

你在準備一場演講的時候,腦??赡軙缺粓D文并茂、形象華麗的演示圖稿所占據(jù)。誠然,沒有人會否認一份生動形象的演講稿所帶來的積極作用。然而,并非所有的演講都需要TED Talk的質(zhì)量。更多時候,演講稿只為傳達特定的信息。 而這個,使用文本信息足以完成。在這種情況下,你的時間可以更好的花在信息的搜集和核實上面,而不是在谷歌圖片搜索(Google Image)上尋找好看的圖片。

在Linux的世界里,有幾個不同的方式供你選擇來做演講。比如帶有大量多媒體展示、視覺沖擊效果***的Impress.js,專為LaTex用戶提供的Beamer,等等。而如果你苦于尋找一種簡單的方式來創(chuàng)建并且展示文本演示稿,mdp 就能幫你實現(xiàn)。

 

什么是Mdp?

mdp是Linux下一款基于ncurses的命令行演示工具。我喜歡mdp在于它對markdown的支持,使得我很容易以熟悉的markdown格式來創(chuàng)建幻燈片。自然,它還可以很輕松地用HTML格式來發(fā)布幻燈片。另一個好處是它支持UTF-8字符編碼,這讓非英語字符(如希臘或西里爾字母)的展示也變得很方便。

 

在Linux中安裝Mdp

mdp的依賴需求很少(如 ncursesw),這使得安裝非常簡單。

 

Debian、Ubuntu或者它們的衍生版

  1. $ sudo apt-get install git gcc make libncursesw5-dev
  2. $ git clone https://github.com/visit1985/mdp.git
  3. $ cd mdp
  4. $ make
  5. $ sudo make install

 

Fedora或者CentOS/RHEL

  1. $ sudo yum install git gcc make ncurses-devel
  2. $ git clone https://github.com/visit1985/mdp.git
  3. $ cd mdp
  4. $ make
  5. $ sudo make install

 

Arch Linux

Arch Linux可以通過AUR輕松安裝mdp。

 

在命令行中創(chuàng)建演示稿

安裝mdp完畢,你可以使用你喜歡的文本編輯器來輕松創(chuàng)建一個演示稿。如果你熟悉markdown的話,很快就可以駕馭mdp。而對于那些不熟悉markdown的人來說,學習mdp***的方式就是從一個實例著手。

這里有一份6頁的演示稿樣本可供參考。

  1. %title: Sample Presentation made with mdp (Xmodulo.com)
  2. %author: Dan Nanni
  3. %date: 2015-01-28
  4.  
  5. -> This is a slide title <-
  6. =========
  7.  
  8. -> mdp is a command-line based presentation tool with markdown support. <-
  9.  
  10. *_Features_*
  11.  
  12. * Multi-level headers
  13. * Code block formatting
  14. * Nested quotes
  15. * Nested list
  16. * Text highlight and underline
  17. * Citation
  18. * UTF-8 special characters
  19.  
  20. -------------------------------------------------
  21.  
  22. -> # Example of nested list <-
  23.  
  24. This is an example of multi-level headers and a nested list.
  25.  
  26. # first-level title
  27.  
  28. second-level
  29. ------------
  30.  
  31. - *item 1*
  32. - sub-item 1
  33. - sub-sub-item 1
  34. - sub-sub-item 2
  35. - sub-sub-item 3
  36. - sub-item 2
  37.  
  38. -------------------------------------------------
  39.  
  40. -> # Example of code block formatting <-
  41.  
  42. This example shows how to format a code snippet.
  43.  
  44. 1 /* Hello World program */
  45. 2
  46. 3 #include <stdio.h>
  47. 4
  48. 5 int main()
  49. 6 {
  50. 7 printf("Hello World");
  51. 8 return 0;
  52. 9 }
  53.  
  54. This example shows inline code: `sudo reboot`
  55.  
  56. -------------------------------------------------
  57.  
  58. -> # Example of nested quotes <-
  59.  
  60. This is an example of nested quotes.
  61.  
  62. # three-level nested quotes
  63.  
  64. > This is the first-level quote.
  65. >> This is the second-level quote
  66. >> and continues.
  67. >>> *This is the third-level quote, and so on.*
  68.  
  69. -------------------------------------------------
  70.  
  71. -> # Example of citations <-
  72.  
  73. This example shows how to place a citation inside a presentation.
  74.  
  75. This tutorial is published at [Xmodulo](http://xmodulo.com)
  76.  
  77. You are welcome to connect with me at [LinkedIn](http://www.linkedin.com/in/xmodulo)
  78.  
  79. Pretty cool, huh?
  80.  
  81. -------------------------------------------------
  82.  
  83. -> # Example of UTF-8 special characters <-
  84.  
  85. This example shows UTF-8 special characters.
  86.  
  87. ae = ä, oe = ö, ue = ü, ss = ß
  88. alpha = ?, beta = ?, upsilon = ?, phi = ?
  89. Omega = ?, Delta = ?, Sigma = ?
  90.  
  91. ???????????
  92. ?rectangle?
  93. ???????????

 

在命令行中展示演示稿

當你把以上代碼保存為slide.md的文本文件后,你可以運行以下命令來展示演示稿:

  1. $ mdp slide.md

你可以通過按鍵 回車/空格/下翻頁/向下光標鍵 (下一張幻燈)、回退/上翻頁/向上光標鍵 (上一張幻燈)、Home (幻燈首頁)、 End (幻燈末頁)或者 數(shù)字N (第N頁幻燈)來操作你的演示稿。

演示稿的標題將在每頁幻燈的頂部展示,而你的名字和頁碼則會出現(xiàn)在幻燈的底部。

這是嵌套列表和多層次標題的實例效果。

這是代碼片段和內(nèi)聯(lián)代碼的實例效果。

這是嵌套引用的實例效果。

這是放置引文的實例效果。

這是UTF-8編碼特殊字符支持的實例效果。

 

總結(jié)

在本教程中,我演示了在命令行中如何使用mdp來創(chuàng)建并且展示一個演示稿。mdp的markdown兼容性讓我們省去了學習其它新格式的麻煩,這相對于另一種名為tpp的演示工具來說是一個優(yōu)勢。拘于mdp的局限性,它可能無法作為你的默認演示工具。但是,值得肯定的是它一定能在某個場合下派上用場。你覺得mdp怎么樣呢?你還喜歡其它的什么東西嗎?


via: http://xmodulo.com/presentation-command-line-linux.html

作者:Dan Nanni 譯者:soooogreen 校對:wxy

責任編輯:林師授 來源: Linux中國
相關(guān)推薦

2023-02-07 09:49:26

Linux命令行合并文件

2019-08-15 15:00:31

Linux命令行PDF

2022-10-14 19:30:29

Linux

2019-08-27 08:00:10

OpenStack命令虛擬機

2014-05-04 10:58:18

Linux命令行Linux發(fā)行版

2018-04-25 10:46:05

Linux命令行日歷

2022-11-18 12:47:51

LinuxAWS命令行工具

2022-10-18 14:52:36

2009-08-06 20:14:16

linux命令行模式linux命令行修改系統(tǒng)時間

2015-12-30 14:47:01

LinuxDropbox訪問

2021-08-30 07:50:42

腳本語言命令行

2014-09-16 10:09:40

Linux

2015-10-19 17:16:10

天氣預報命令行Linux

2022-11-02 08:20:43

Linux

2018-02-10 17:30:41

Linux命令

2014-06-09 10:23:20

2023-01-17 19:30:52

Linux命令行目錄

2019-04-12 15:25:15

Fedora 30內(nèi)核命令行

2016-10-12 08:38:24

Windows 10Defender命令行

2023-03-21 09:31:30

Linux命令行文件夾
點贊
收藏

51CTO技術(shù)棧公眾號