{"id":19527,"date":"2024-07-06T07:15:11","date_gmt":"2024-07-05T23:15:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=19527"},"modified":"2024-07-06T07:15:11","modified_gmt":"2024-07-05T23:15:11","slug":"cmd-line-presentation","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/cmd-line-presentation.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f60\u5728\u51c6\u5907\u4e00\u573a\u6f14\u8bb2\u7684\u65f6\u5019\uff0c\u8111\u6d77\u53ef\u80fd\u4f1a\u5148\u88ab\u56fe\u6587\u5e76\u8302\u3001\u5f62\u8c61\u534e\u4e3d\u7684\u6f14\u793a\u56fe\u7a3f\u6240\u5360\u636e\u3002\u8bda\u7136\uff0c\u6ca1\u6709\u4eba\u4f1a\u5426\u8ba4\u4e00\u4efd\u751f\u52a8\u5f62\u8c61\u7684\u6f14\u8bb2\u7a3f\u6240\u5e26\u6765\u7684\u79ef\u6781\u4f5c\u7528\u3002\u7136\u800c\uff0c\u5e76\u975e\u6240\u6709\u7684\u6f14\u8bb2\u90fd\u9700\u8981TED Talk\u7684\u8d28\u91cf\u3002\u66f4\u591a\u65f6\u5019\uff0c\u6f14\u8bb2\u7a3f\u53ea\u4e3a\u4f20\u8fbe\u7279\u5b9a\u7684\u4fe1\u606f\u3002 \u800c\u8fd9\u4e2a\uff0c\u4f7f\u7528\u6587\u672c\u4fe1\u606f\u8db3\u4ee5\u5b8c\u6210\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u7684\u65f6\u95f4\u53ef\u4ee5\u66f4\u597d\u7684\u82b1\u5728\u4fe1\u606f\u7684\u641c\u96c6\u548c\u6838\u5b9e\u4e0a\u9762\uff0c\u800c\u4e0d\u662f\u5728\u8c37\u6b4c\u56fe\u7247\u641c\u7d22\uff08Google Image\uff09\u4e0a\u5bfb\u627e\u597d\u770b\u7684\u56fe\u7247\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5728Linux\u7684\u4e16\u754c\u91cc\uff0c\u6709\u51e0\u4e2a\u4e0d\u540c\u7684\u65b9\u5f0f\u4f9b\u4f60\u9009\u62e9\u6765\u505a\u6f14\u8bb2\u3002\u6bd4\u5982\u5e26\u6709\u5927\u91cf\u591a\u5a92\u4f53\u5c55\u793a\u3001\u89c6\u89c9\u51b2\u51fb\u6548\u679c\u6781\u4f73\u7684Impress.js\uff0c\u4e13\u4e3aLaTex\u7528\u6237\u63d0\u4f9b\u7684Beamer\uff0c\u7b49\u7b49\u3002\u800c\u5982\u679c\u4f60\u82e6\u4e8e\u5bfb\u627e\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u5e76\u4e14\u5c55\u793a\u6587\u672c\u6f14\u793a\u7a3f\uff0cmdp \u5c31\u80fd\u5e2e\u4f60\u5b9e\u73b0\u3002<\/p>\n

\u4ec0\u4e48\u662fMdp\uff1f<\/strong><\/div>\n

mdp\u662fLinux\u4e0b\u4e00\u6b3e\u57fa\u4e8encurses\u7684\u547d\u4ee4\u884c\u6f14\u793a\u5de5\u5177\u3002\u6211\u559c\u6b22mdp\u5728\u4e8e\u5b83\u5bf9markdown\u7684\u652f\u6301\uff0c\u4f7f\u5f97\u6211\u5f88\u5bb9\u6613\u4ee5\u719f\u6089\u7684markdown\u683c\u5f0f\u6765\u521b\u5efa\u5e7b\u706f\u7247\u3002\u81ea\u7136\uff0c\u5b83\u8fd8\u53ef\u4ee5\u5f88\u8f7b\u677e\u5730\u7528HTML\u683c\u5f0f\u6765\u53d1\u5e03\u5e7b\u706f\u7247\u3002\u53e6\u4e00\u4e2a\u597d\u5904\u662f\u5b83\u652f\u6301UTF-8\u5b57\u7b26\u7f16\u7801\uff0c\u8fd9\u8ba9\u975e\u82f1\u8bed\u5b57\u7b26\uff08\u5982\u5e0c\u814a\u6216\u897f\u91cc\u5c14\u5b57\u6bcd\uff09\u7684\u5c55\u793a\u4e5f\u53d8\u5f97\u5f88\u65b9\u4fbf\u3002<\/p>\n

\u5728Linux\u4e2d\u5b89\u88c5Mdp<\/strong><\/div>\n

mdp\u7684\u4f9d\u8d56\u9700\u6c42\u5f88\u5c11\uff08\u5982 ncursesw\uff09\uff0c\u8fd9\u4f7f\u5f97\u5b89\u88c5\u975e\u5e38\u7b80\u5355\u3002<\/p>\n

Debian\u3001Ubuntu\u6216\u8005\u5b83\u4eec\u7684\u884d\u751f\u7248<\/strong><\/span><\/div>\n
$ sudo apt-get install git gcc make libncursesw5-dev\t\r\n$ git clone https:\/\/github.com\/visit1985\/mdp.git \t\r\n$ cd mdp\r\n$ make\r\n$ sudo make install<\/pre>\n
Fedora\u6216\u8005CentOS\/RHEL<\/strong><\/span><\/div>\n
$ sudo yum install git gcc make ncurses-devel\r\n$ git clone https:\/\/github.com\/visit1985\/mdp.git\r\n$ cd mdp\r\n$ make\r\n$ sudo make install<\/pre>\n
Arch Linux<\/strong><\/span><\/div>\n

Arch Linux\u53ef\u4ee5\u901a\u8fc7AUR\u8f7b\u677e\u5b89\u88c5mdp\u3002<\/p>\n

\u5728\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u6f14\u793a\u7a3f<\/strong><\/div>\n

\u5b89\u88c5mdp\u5b8c\u6bd5\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4f60\u559c\u6b22\u7684\u6587\u672c\u7f16\u8f91\u5668\u6765\u8f7b\u677e\u521b\u5efa\u4e00\u4e2a\u6f14\u793a\u7a3f\u3002\u5982\u679c\u4f60\u719f\u6089markdown\u7684\u8bdd\uff0c\u5f88\u5feb\u5c31\u53ef\u4ee5\u9a7e\u9a6dmdp\u3002\u800c\u5bf9\u4e8e\u90a3\u4e9b\u4e0d\u719f\u6089markdown\u7684\u4eba\u6765\u8bf4\uff0c\u5b66\u4e60mdp\u6700\u597d\u7684\u65b9\u5f0f\u5c31\u662f\u4ece\u4e00\u4e2a\u5b9e\u4f8b\u7740\u624b\u3002<\/p>\n

\u8fd9\u91cc\u6709\u4e00\u4efd6\u9875\u7684\u6f14\u793a\u7a3f\u6837\u672c\u53ef\u4f9b\u53c2\u8003\u3002<\/p>\n

 \t%title: Sample Presentation made with mdp (Xmodulo.com)\r\n \t%author: Dan Nanni\r\n \t%date: 2015-01-28\r\n \t\r\n \t-> This is a slide title <-\r\n \t=========\r\n \t\r\n \t-> mdp is a command-line based presentation tool with markdown support. <-\r\n \t\r\n \t*_Features_*\r\n \t\r\n \t* Multi-level headers\r\n \t* Code block formatting\r\n \t* Nested quotes\r\n \t* Nested list\r\n \t* Text highlight and underline\r\n \t* Citation\r\n \t* UTF-8 special characters\r\n \t\r\n \t-------------------------------------------------\r\n \t\r\n \t-> # Example of nested list <-\r\n \t\r\n \tThis is an example of multi-level headers and a nested list.\r\n \t\r\n \t# first-level title\r\n \t\r\n \tsecond-level\r\n \t------------\r\n \t\r\n \t- *item 1*\r\n \t- sub-item 1\r\n \t- sub-sub-item 1\r\n \t- sub-sub-item 2\r\n \t- sub-sub-item 3\r\n \t- sub-item 2\r\n \t\r\n \t-------------------------------------------------\r\n \t\r\n \t-> # Example of code block formatting <-\r\n \t\r\n \tThis example shows how to format a code snippet.\r\n \t\r\n \t1 \/* Hello World program *\/\r\n \t2\r\n \t3 #include <stdio.h>\r\n \t4\r\n \t5 int main()\r\n \t6 {\r\n \t7 printf(\"Hello World\");\r\n \t8 return 0;\r\n \t9 }\r\n \t\r\n \tThis example shows inline code: `sudo reboot`\r\n \t\r\n \t-------------------------------------------------\r\n \t\r\n \t-> # Example of nested quotes <-\r\n \t\r\n \tThis is an example of nested quotes.\r\n \t\r\n \t# three-level nested quotes\r\n \t\r\n \t> This is the first-level quote.\r\n \t>> This is the second-level quote\r\n \t>> and continues.\r\n \t>>> *This is the third-level quote, and so on.*\r\n \t\r\n \t-------------------------------------------------\r\n \t\r\n \t-> # Example of citations <-\r\n \t\r\n \tThis example shows how to place a citation inside a presentation.\r\n \t\r\n \tThis tutorial is published at [Xmodulo](http:\/\/xmodulo.com)\r\n \t\r\n \tYou are welcome to connect with me at [LinkedIn](http:\/\/www.linkedin.com\/in\/xmodulo)\r\n \t\r\n \tPretty cool, huh?\r\n \t\r\n \t-------------------------------------------------\r\n \t\r\n \t-> # Example of UTF-8 special characters <-\r\n \t\r\n \tThis example shows UTF-8 special characters.\r\n \t\r\n \tae = \u00e4, oe = \u00f6, ue = \u00fc, ss = \u00df\r\n \talpha = ?, beta = ?, upsilon = ?, phi = ?\r\n \tOmega = ?, Delta = ?, Sigma = ?\r\n \t\r\n \t???????????\r\n \t?rectangle?\r\n \t???????????\r\n<\/pre>\n
\u5728\u547d\u4ee4\u884c\u4e2d\u5c55\u793a\u6f14\u793a\u7a3f<\/strong><\/div>\n

\u5f53\u4f60\u628a\u4ee5\u4e0a\u4ee3\u7801\u4fdd\u5b58\u4e3aslide.md\u7684\u6587\u672c\u6587\u4ef6\u540e\uff0c\u4f60\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5c55\u793a\u6f14\u793a\u7a3f\uff1a<\/p>\n

 \t$ mdp slide.md\r\n<\/pre>\n

\u4f60\u53ef\u4ee5\u901a\u8fc7\u6309\u952e \u56de\u8f66\/\u7a7a\u683c\/\u4e0b\u7ffb\u9875\/\u5411\u4e0b\u5149\u6807\u952e (\u4e0b\u4e00\u5f20\u5e7b\u706f)\u3001\u56de\u9000\/\u4e0a\u7ffb\u9875\/\u5411\u4e0a\u5149\u6807\u952e (\u4e0a\u4e00\u5f20\u5e7b\u706f)\u3001Home (\u5e7b\u706f\u9996\u9875)\u3001 End (\u5e7b\u706f\u672b\u9875)\u6216\u8005 \u6570\u5b57N (\u7b2cN\u9875\u5e7b\u706f)\u6765\u64cd\u4f5c\u4f60\u7684\u6f14\u793a\u7a3f\u3002<\/p>\n

\u6f14\u793a\u7a3f\u7684\u6807\u9898\u5c06\u5728\u6bcf\u9875\u5e7b\u706f\u7684\u9876\u90e8\u5c55\u793a\uff0c\u800c\u4f60\u7684\u540d\u5b57\u548c\u9875\u7801\u5219\u4f1a\u51fa\u73b0\u5728\u5e7b\u706f\u7684\u5e95\u90e8\u3002<\/p>\n

\"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f\"<\/p>\n

\u8fd9\u662f\u5d4c\u5957\u5217\u8868\u548c\u591a\u5c42\u6b21\u6807\u9898\u7684\u5b9e\u4f8b\u6548\u679c\u3002<\/p>\n

\"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f\"<\/p>\n

\u8fd9\u662f\u4ee3\u7801\u7247\u6bb5\u548c\u5185\u8054\u4ee3\u7801\u7684\u5b9e\u4f8b\u6548\u679c\u3002<\/p>\n

\"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f\"<\/p>\n

\u8fd9\u662f\u5d4c\u5957\u5f15\u7528\u7684\u5b9e\u4f8b\u6548\u679c\u3002<\/p>\n

\"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f\"<\/p>\n

\u8fd9\u662f\u653e\u7f6e\u5f15\u6587\u7684\u5b9e\u4f8b\u6548\u679c\u3002<\/p>\n

\"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f\"<\/p>\n

\u8fd9\u662fUTF-8\u7f16\u7801\u7279\u6b8a\u5b57\u7b26\u652f\u6301\u7684\u5b9e\u4f8b\u6548\u679c\u3002<\/p>\n

\"\u5982\u4f55\u5728Linux\u547d\u4ee4\u884c\u4e2d\u521b\u5efa\u4ee5\u53ca\u5c55\u793a\u6f14\u793a\u7a3f\"<\/p>\n

\u603b\u7ed3<\/strong><\/div>\n

\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u6f14\u793a\u4e86\u5728\u547d\u4ee4\u884c\u4e2d\u5982\u4f55\u4f7f\u7528mdp\u6765\u521b\u5efa\u5e76\u4e14\u5c55\u793a\u4e00\u4e2a\u6f14\u793a\u7a3f\u3002mdp\u7684markdown\u517c\u5bb9\u6027\u8ba9\u6211\u4eec\u7701\u53bb\u4e86\u5b66\u4e60\u5176\u5b83\u65b0\u683c\u5f0f\u7684\u9ebb\u70e6\uff0c\u8fd9\u76f8\u5bf9\u4e8e\u53e6\u4e00\u79cd\u540d\u4e3atpp\u7684\u6f14\u793a\u5de5\u5177\u6765\u8bf4\u662f\u4e00\u4e2a\u4f18\u52bf\u3002\u62d8\u4e8emdp\u7684\u5c40\u9650\u6027\uff0c\u5b83\u53ef\u80fd\u65e0\u6cd5\u4f5c\u4e3a\u4f60\u7684\u9ed8\u8ba4\u6f14\u793a\u5de5\u5177\u3002\u4f46\u662f\uff0c\u503c\u5f97\u80af\u5b9a\u7684\u662f\u5b83\u4e00\u5b9a\u80fd\u5728\u67d0\u4e2a\u573a\u5408\u4e0b\u6d3e\u4e0a\u7528\u573a\u3002\u4f60\u89c9\u5f97mdp\u600e\u4e48\u6837\u5462\uff1f\u4f60\u8fd8\u559c\u6b22\u5176\u5b83\u7684\u4ec0\u4e48\u4e1c\u897f\u5417\uff1f<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/os.51cto.com\/art\/201502\/465566.htm<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/cmd-line-presentation.html<\/a>\u7f16\u8f91\uff1a\u9004\u589e\u5b9d\uff0c\u5ba1\u6838\u5458\uff1a\u51af\u632f\u534e<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u4f60\u5728\u51c6\u5907\u4e00\u573a\u6f14\u8bb2\u7684\u65f6\u5019\uff0c\u8111\u6d77\u53ef\u80fd\u4f1a\u5148\u88ab\u56fe\u6587\u5e76\u8302\u3001\u5f62\u8c61\u534e\u4e3d\u7684\u6f14\u793a\u56fe\u7a3f\u6240\u5360\u636e\u3002\u8bda\u7136\uff0c\u6ca1\u6709\u4eba\u4f1a\u5426\u8ba4\u4e00\u4efd\u751f\u52a8\u5f62\u8c61\u7684\u6f14\u8bb2\u7a3f\u6240\u5e26\u6765\u7684\u79ef\u6781\u4f5c\u7528\u3002\u7136\u800c\uff0c\u5e76\u975e\u6240\u6709\u7684\u6f14\u8bb2\u90fd\u9700\u8981TED Talk\u7684\u8d28\u91cf\u3002\u66f4\u591a\u65f6\u5019\uff0c\u6f14\u8bb2\u7a3f\u53ea\u4e3a\u4f20\u8fbe\u7279\u5b9a\u7684\u4fe1\u606f\u3002 \u800c\u8fd9\u4e2a\uff0c\u4f7f\u7528\u6587\u672c\u4fe1\u606f\u8db3\u4ee5\u5b8c\u6210\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u7684\u65f6\u95f4\u53ef\u4ee5\u66f4\u597d\u7684\u82b1\u5728\u4fe1\u606f\u7684\u641c\u96c6\u548c\u6838\u5b9e\u4e0a\u9762\uff0c\u800c\u4e0d\u662f\u5728\u8c37\u6b4c\u56fe\u7247\u641c\u7d22\uff08Google Image\uff09\u4e0a\u5bfb\u627e\u597d\u770b\u7684\u56fe\u7247\u3002<\/p>\n","protected":false},"author":309,"featured_media":24213,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-19527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/19527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=19527"}],"version-history":[{"count":16,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/19527\/revisions"}],"predecessor-version":[{"id":292191,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/19527\/revisions\/292191"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/24213"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=19527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=19527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=19527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}