{"id":7071,"date":"2025-07-16T11:35:34","date_gmt":"2025-07-16T03:35:34","guid":{"rendered":"https:\/\/www.xinyixx.com\/?p=7071"},"modified":"2025-07-16T11:35:34","modified_gmt":"2025-07-16T03:35:34","slug":"pandoc","status":"publish","type":"post","link":"https:\/\/www.xinyixx.com\/index.php\/2025\/07\/16\/pandoc\/","title":{"rendered":"pandoc\u7684\u4f7f\u7528\u65b9\u5f0f"},"content":{"rendered":"<p>Pandoc \u662f\u4e00\u6b3e\u81ea\u7531\u5f00\u6e90\u3001\u8de8\u5e73\u53f0\u7684\u547d\u4ee4\u884c\u754c\u9762\u6807\u8bb0\u8bed\u8a00\u8f6c\u6362\u5de5\u5177\uff0c\u4f7f\u7528 Haskell \u7f16\u5199\u3002<\/p>\n\n\n\n<p>Pandoc \u6700\u7a81\u51fa\u7684\u529f\u80fd\u5728\u4e8e\u4e0d\u540c\u6807\u8bb0\u8bed\u8a00\u95f4\u7684\u683c\u5f0f\u8f6c\u6362\u3002\u5b83\u652f\u6301\u7684\u8f93\u5165\u683c\u5f0f\u6781\u4e3a\u5e7f\u6cdb\uff0c\u5305\u542b Markdown \u7684\u591a\u79cd\u53d8\u4f53\u3001HTML\u3001LaTeX\u3001DocBook\u3001EPUB \u7b49\u5e38\u89c1\u683c\u5f0f\u3002\u5728\u8f93\u51fa\u683c\u5f0f\u65b9\u9762\u540c\u6837\u8868\u73b0\u5353\u8d8a\uff0c\u53ef\u751f\u6210 HTML\u3001PDF\u3001Markdown\u3001EPUB\u3001DocBook \u7b49\u6587\u4ef6\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u5c06\u64b0\u5199\u597d\u7684 Markdown \u683c\u5f0f\u5b66\u672f\u8bba\u6587\uff0c\u501f\u52a9 Pandoc \u8f7b\u677e\u8f6c\u6362\u4e3a PDF \u683c\u5f0f\u7528\u4e8e\u6253\u5370\u63d0\u4ea4\uff0c\u6216\u8005\u8f6c\u6362\u4e3a HTML \u683c\u5f0f\u4ee5\u4fbf\u5728\u7f51\u9875\u4e0a\u53d1\u5e03\u5206\u4eab \u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4 1\uff1a\u5b89\u88c5 Pandoc<\/h2>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u4ece\u8fd9\u4e2a\u94fe\u63a5\u4e0b\u8f7d\u8f6f\u4ef6\uff1a<a href=\"https:\/\/github.com\/jgm\/pandoc\/releases\/tag\/3.7.0.2\">https:\/\/github.com\/jgm\/pandoc\/releases\/tag\/3.7.0.2<\/a> \u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u7cfb\u7edf\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4ee5windows\u4e3a\u4f8b\uff0c\u70b9\u51fb\u4e0a\u9762\u94fe\u63a5\u4e0b\u8f7d\u76f4\u63a5\u5b89\u88c5\uff0c\u4f7f\u7528<strong>cmd<\/strong>\u6216\u8005<strong>powshell<\/strong>\u6253\u5f00\u3002\u4f7f\u7528\u547d\u4ee4<strong>pandoc &#8211;version<\/strong>\u5982\u679c\u51fa\u73b0\u5982\u4e0b\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><noscript><img decoding=\"async\" width=\"664\" height=\"218\" src=\"http:\/\/101.42.96.217:21080\/wp-content\/uploads\/2025\/07\/image-22.png\" alt class=\"wp-image-7072\" srcset=\"https:\/\/www.xinyixx.com\/wp-content\/uploads\/2025\/07\/image-22.png 664w, https:\/\/www.xinyixx.com\/wp-content\/uploads\/2025\/07\/image-22-300x98.png 300w\" sizes=\"(max-width: 664px) 100vw, 664px\"><\/noscript><img decoding=\"async\" width=\"664\" height=\"218\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20664%20218%22%3E%3C%2Fsvg%3E\" alt class=\"wp-image-7072 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20664%20218%22%3E%3C%2Fsvg%3E 664w\" sizes=\"(max-width: 664px) 100vw, 664px\" data-srcset=\"https:\/\/www.xinyixx.com\/wp-content\/uploads\/2025\/07\/image-22.png 664w, https:\/\/www.xinyixx.com\/wp-content\/uploads\/2025\/07\/image-22-300x98.png 300w\" data-src=\"http:\/\/101.42.96.217:21080\/wp-content\/uploads\/2025\/07\/image-22.png\"><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4 2\uff1a\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3<\/h2>\n\n\n\n<p><code>Pandoc<\/code> \u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6ca1\u6709\u56fe\u5f62\u7528\u6237\u754c\u9762\u3002\u56e0\u6b64\uff0c\u8981\u4f7f\u7528\u5b83\uff0c\u60a8\u9700\u8981\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728 <code>OS X<\/code> \u4e0a\uff0c\u7ec8\u7aef\u5e94\u7528\u7a0b\u5e8f\u4f4d\u4e8e <code>\/Applications\/Utilities<\/code> \u4e2d\u3002\u6253\u5f00 <code>Finder<\/code>\uff0c\u5bfc\u822a\u5230\u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u662f\u5b9e\u7528\u5de5\u5177\u3002\u53cc\u51fb\u6253\u5f00 <code>Terminal<\/code>\u3002\u6216\u8005\uff0c\u70b9\u51fb\u5c4f\u5e55\u53f3\u4e0a\u89d2\u7684\u805a\u7126\u641c\u7d22\u56fe\u6807\u5e76\u8f93\u5165 <code>Terminal<\/code>\uff0c\u60a8\u5e94\u5728\u5e94\u7528\u4e2d\u770b\u5230 <code>Terminal<\/code>\u3002<\/li>\n\n\n\n<li>\u5728 <code>Windows<\/code> \u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7ecf\u5178\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u66f4\u73b0\u4ee3\u7684 <code>PowerShell<\/code> \u7ec8\u7aef\u3002\u82e5\u5728\u684c\u9762\u6a21\u5f0f\u4e0b\u4f7f\u7528 <code>Windows<\/code>\uff0c\u4ece\u5f00\u59cb\u83dc\u5355\u8fd0\u884c <code>cmd<\/code> \u6216 <code>powershell<\/code> \u547d\u4ee4\u3002\u82e5\u60a8\u4f7f\u7528\u7684\u662f <code>Windows 8<\/code> \u5f00\u59cb\u5c4f\u5e55\uff0c\u76f4\u63a5\u952e\u5165 <code>cmd<\/code> \u6216 <code>powershell<\/code>\uff0c\u7136\u540e\u8fd0\u884c \u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d \u6216 \u201cWindows PowerShell\u201d \u5e94\u7528\u3002\u5982\u679c\u4f7f\u7528 <code>cmd<\/code>\uff0c\u8bf7\u5148\u8f93\u5165 <code>chcp 65001<\/code> \u8bbe\u7f6e\u7f16\u7801\u4e3a <code>UTF-8<\/code>\u3002<\/li>\n\n\n\n<li>\u5728 <code>Linux<\/code> \u4e0a\uff0c\u5177\u4f53\u64cd\u4f5c\u4f9d\u60a8\u7684\u684c\u9762\u73af\u5883\u800c\u5f02\uff1a\n<ul class=\"wp-block-list\">\n<li>\u5728 <code>Unity<\/code> \u4e2d\uff0c\u4f7f\u7528 Dash \u7684\u641c\u7d22\u529f\u80fd\uff0c\u641c\u7d22 <code>Terminal<\/code>\u3002\u6216\u4f7f\u7528\u5feb\u6377\u952e <code>Ctrl-Alt-T<\/code>\u3002<\/li>\n\n\n\n<li>\u5728 <code>Gnome<\/code> \u4e2d\uff0c\u524d\u5f80\u5e94\u7528\u7a0b\u5e8f&gt;\u9644\u4ef6\uff0c\u9009\u62e9 <code>Terminal<\/code>\uff0c\u6216\u7528 <code>Ctrl-Alt-T<\/code> \u5feb\u6377\u952e\u3002<\/li>\n\n\n\n<li>\u5728 <code>XFCE<\/code> \u4e2d\uff0c\u8fdb\u5165 <code>\u5e94\u7528\u7a0b\u5e8f&gt;\u7cfb\u7edf&gt;Terminal<\/code>\uff0c\u6216\u4f7f\u7528 <code>Super-T<\/code> \u5feb\u6377\u952e\u3002<\/li>\n\n\n\n<li>\u5728 <code>KDE<\/code> \u4e2d\uff0c\u6253\u5f00 <code>KMenu<\/code>\uff0c\u63a5\u7740 <code>\u7cfb\u7edf&gt;\u7ec8\u7aef\u7a0b\u5e8f<\/code> (Konsole)\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u73b0\u5728\uff0c\u60a8\u5e94\u8be5\u80fd\u770b\u5230\u4e00\u4e2a\u5e26\u6709 \u201c\u63d0\u793a\u7b26\u201d\uff08\u53ef\u80fd\u53ea\u662f\u4e00\u4e2a\u7b26\u53f7\u5982 <code>%<\/code> \uff0c\u4f46\u901a\u5e38\u8fd8\u5305\u62ec\u7528\u6237\u540d\u548c\u76ee\u5f55\u7b49\u66f4\u591a\u4fe1\u606f\uff09\u7684\u77e9\u5f62\u6846\uff0c\u4ee5\u53ca\u4e00\u4e2a\u95ea\u70c1\u7684\u5149\u6807\u3002<\/p>\n\n\n\n<p>\u8ba9\u6211\u4eec\u9a8c\u8bc1 <code>Pandoc<\/code> \u662f\u5426\u5df2\u6210\u529f\u5b89\u88c5\u3002\u952e\u5165<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc --version<\/pre>\n\n\n\n<p>\u7136\u540e\u6309\u56de\u8f66\u3002\u60a8\u5e94\u770b\u5230\u4e00\u6761\u6d88\u606f\uff0c\u663e\u793a\u5df2\u5b89\u88c5\u7684 <code>Pandoc<\/code> \u7248\u672c\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u989d\u5916\u4fe1\u606f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4 3\uff1a\u66f4\u6539\u76ee\u5f55<\/h2>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u770b\u770b\u5f53\u524d\u6240\u5728\u4f4d\u7f6e\u3002\u5728 Linux \u6216 OSX \u4e0a\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pwd<\/pre>\n\n\n\n<p>\u5728 Windows \u4e0a\u5219\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;echo %cd%<\/pre>\n\n\n\n<p>\u7136\u540e\u6309\u56de\u8f66\u3002\u7ec8\u7aef\u4f1a\u663e\u793a\u51fa\u60a8\u5f53\u524d\u7684\u5de5\u4f5c\u76ee\u5f55\u3002\uff08\u731c\u731c <code>pwd<\/code> \u4ee3\u8868\u4ec0\u4e48\uff1f\uff09\u8fd9\u5e94\u8be5\u662f\u60a8\u7684\u4e3b\u76ee\u5f55\uff08\u5bb6\u76ee\u5f55\uff09\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u8ba9\u6211\u4eec\u5bfc\u822a\u5230 <code>Documents<\/code> \u76ee\u5f55\u4e0b\uff1a\u8f93\u5165<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;cd Documents<\/pre>\n\n\n\n<p>\u6309\u56de\u8f66\u3002\u518d\u8f93\u5165<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pwd<\/pre>\n\n\n\n<p>\uff08Windows \u4e0a\u5219\u662f <code>echo %cd%<\/code> \uff09\uff0c\u518d\u6b21\u56de\u8f66\u3002\u60a8\u5e94\u8be5\u5904\u4e8e\u5bb6\u76ee\u5f55\u4e0b\u7684 <code>Documents<\/code> \u5b50\u76ee\u5f55\u4e2d\u3002\u82e5\u8981\u8fd4\u56de\u5bb6\u76ee\u5f55\uff0c\u53ef\u4ee5\u8f93\u5165<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;cd ..<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u7684 <code>..<\/code> \u8868\u793a \u201c\u4e0a\u4e00\u7ea7\u201d \u3002<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u8fd8\u6ca1\u6709\u5728 <code>Documents<\/code> \u76ee\u5f55\u91cc\uff0c\u8bf7\u56de\u5230\u90a3\u91cc\u3002\u63a5\u4e0b\u6765\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <code>pandoc-test<\/code> \u7684\u5b50\u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;mkdir pandoc-test<\/pre>\n\n\n\n<p>\u73b0\u5728\u5207\u6362\u5230 <code>pandoc-test<\/code> \u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;cd pandoc-test<\/pre>\n\n\n\n<p>\u5982\u679c\u63d0\u793a\u7b26\u6ca1\u6709\u544a\u8bc9\u60a8\u5f53\u524d\u6240\u5728\u76ee\u5f55\uff0c\u53ef\u4ee5\u901a\u8fc7\u518d\u6b21\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pwd<\/pre>\n\n\n\n<p>\uff08\u6216 Windows \u4e0a\u7684 <code>echo %cd%<\/code> \uff09\u6765\u786e\u8ba4\u3002<\/p>\n\n\n\n<p>\u597d\u7684\uff0c\u76ee\u524d\u5173\u4e8e\u4f7f\u7528\u7ec8\u7aef\u7684\u77e5\u8bc6\u5c31\u8fd9\u4e9b\u4e86\u3002\u4f46\u8fd9\u91cc\u6709\u4e00\u4e2a\u79d8\u8bc0\u53ef\u4ee5\u5e2e\u60a8\u7701\u53bb\u5927\u91cf\u6253\u5b57\uff1a\u60a8\u968f\u65f6\u53ef\u4ee5\u6309\u4e0a\u7bad\u5934\u952e\u56de\u987e\u4e4b\u524d\u8f93\u5165\u8fc7\u7684\u547d\u4ee4\u5386\u53f2\u3002\u5982\u679c\u60a8\u60f3\u91cd\u590d\u4f7f\u7528\u4e4b\u524d\u7684\u67d0\u4e2a\u547d\u4ee4\uff0c\u4e0d\u5fc5\u91cd\u65b0\u8f93\u5165\uff0c\u53ea\u9700\u6309\u4e0a\u7bad\u5934\u952e\u76f4\u5230\u627e\u5230\u8be5\u547d\u4ee4\u5373\u53ef\u3002\u8bd5\u8bd5\u770b\u3002\uff08\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e0b\u7bad\u5934\u952e\u53cd\u5411\u6d4f\u89c8\u3002\uff09\u4e00\u65e6\u627e\u5230\u547d\u4ee4\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5de6\u53f3\u7bad\u5934\u952e\u548c\u9000\u683c\/\u5220\u9664\u952e\u8fdb\u884c\u7f16\u8f91\u3002<\/p>\n\n\n\n<p>\u5927\u591a\u6570\u7ec8\u7aef\u8fd8\u652f\u6301\u76ee\u5f55\u548c\u6587\u4ef6\u540d\u7684\u81ea\u52a8\u8865\u5168\u529f\u80fd\u3002\u4e3a\u4e86\u5c1d\u8bd5\u8fd9\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u5148\u56de\u5230 <code>Documents<\/code> \u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;cd ..<\/pre>\n\n\n\n<p>\u73b0\u5728\u8f93\u5165<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;cd pandoc-<\/pre>\n\n\n\n<p>\u7136\u540e\u6309 Tab \u952e\u800c\u4e0d\u662f\u56de\u8f66\u3002\u7ec8\u7aef\u4f1a\u81ea\u52a8\u8865\u5168\u5269\u4f59\u90e8\u5206\uff08 <code>test<\/code> \uff09\uff0c\u4e4b\u540e\u6309\u56de\u8f66\u3002<\/p>\n\n\n\n<p>\u603b\u7ed3\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 <code>pwd<\/code>\uff08Windows \u4e0a\u4e3a <code>echo %cd%<\/code> \uff09\u67e5\u770b\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002<\/li>\n\n\n\n<li>\u8f93\u5165 <code>cd foo<\/code> \u4ee5\u5207\u6362\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e0b\u7684 <code>foo<\/code> \u5b50\u76ee\u5f55\u3002<\/li>\n\n\n\n<li>\u8f93\u5165 <code>cd ..<\/code> \u4e0a\u5347\u5230\u5de5\u4f5c\u76ee\u5f55\u7684\u7236\u76ee\u5f55\u3002<\/li>\n\n\n\n<li>\u8f93\u5165 <code>mkdir foo<\/code> \u5728\u5de5\u4f5c\u76ee\u5f55\u4e0b\u521b\u5efa\u540d\u4e3a <code>foo<\/code> \u7684\u5b50\u76ee\u5f55\u3002<\/li>\n\n\n\n<li>\u4e0a\u7bad\u5934\u952e\u56de\u987e\u547d\u4ee4\u5386\u53f2\u3002<\/li>\n\n\n\n<li>Tab \u952e\u8865\u5168\u76ee\u5f55\u548c\u6587\u4ef6\u540d\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4 4\uff1a\u4f7f\u7528 pandoc \u4f5c\u4e3a\u8fc7\u6ee4\u5668<\/h2>\n\n\n\n<p>\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309\u56de\u8f66\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc<\/pre>\n\n\n\n<p>\u4f60\u5e94\u8be5\u770b\u5230\u5149\u6807\u505c\u7559\u5728\u90a3\u91cc\uff0c\u7b49\u5f85\u4f60\u8f93\u5165\u5185\u5bb9\u3002\u8f93\u5165\u4ee5\u4e0b\u6587\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;Hello *pandoc*!<br>&nbsp;\u200b<br>&nbsp;- one<br>&nbsp;- two<\/pre>\n\n\n\n<p>\u5f53\u4f60\u5b8c\u6210\u8f93\u5165\uff08\u5149\u6807\u5e94\u4f4d\u4e8e\u884c\u9996\u65f6\uff09\uff0c\u5728 OS X \u6216 Linux \u4e0a\u6309\u4e0b <code>Ctrl-D<\/code>\uff0c\u6216\u5728 Windows \u4e0a\u6309\u4e0b <code>Ctrl-Z<\/code> \u540e\u8ddf <code>Enter<\/code>\u3002\u73b0\u5728\uff0c\u4f60\u5e94\u8be5\u770b\u5230\u4f60\u7684\u6587\u672c\u5df2\u8f6c\u6362\u4e3a HTML\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;&lt;p&gt;Hello &lt;em&gt;pandoc&lt;\/em&gt;!&lt;\/p&gt;<br>&nbsp;&lt;ul&gt;<br>&nbsp; &nbsp;&lt;li&gt;one&lt;\/li&gt;<br>&nbsp; &nbsp;&lt;li&gt;two&lt;\/li&gt;<br>&nbsp;&lt;\/ul&gt;<\/pre>\n\n\n\n<p>\u521a\u624d\u53d1\u751f\u4e86\u4ec0\u4e48\uff1f\u5f53 pandoc \u88ab\u8c03\u7528\u800c\u6ca1\u6709\u6307\u5b9a\u4efb\u4f55\u8f93\u5165\u6587\u4ef6\u65f6\uff0c\u5b83\u4f1a\u4f5c\u4e3a\u4e00\u4e2a \u201c\u8fc7\u6ee4\u5668\u201d \u8fd0\u884c\uff0c\u4ece\u7ec8\u7aef\u63a5\u6536\u8f93\u5165\uff0c\u5e76\u5c06\u5176\u8f93\u51fa\u8fd4\u56de\u5230\u7ec8\u7aef\u3002\u4f60\u53ef\u4ee5\u5229\u7528\u8fd9\u4e2a\u7279\u6027\u6765\u5c1d\u8bd5\u4f7f\u7528 pandoc\u3002<\/p>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8f93\u5165\u88ab\u89e3\u91ca\u4e3a pandoc \u6807\u8bb0\u8bed\u8a00\uff0c\u8f93\u51fa\u4e3a HTML\u3002\u4f46\u6211\u4eec\u53ef\u4ee5\u6539\u53d8\u8fd9\u4e00\u70b9\u3002\u8ba9\u6211\u4eec\u5c1d\u8bd5\u4ece HTML \u8f6c\u6362\u4e3a markdown\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -f html -t markdown<\/pre>\n\n\n\n<p>\u73b0\u5728\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;&lt;p&gt;Hello &lt;em&gt;pandoc&lt;\/em&gt;!&lt;\/p&gt;<\/pre>\n\n\n\n<p>\u7136\u540e\u6309\u4e0b <code>Ctrl-D<\/code>\uff08\u6216\u5728 Windows \u4e0a\u6309\u4e0b <code>Ctrl-Z<\/code> \u540e\u8ddf <code>Enter<\/code>\uff09\u3002\u4f60\u5e94\u8be5\u770b\u5230\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;Hello *pandoc*!<\/pre>\n\n\n\n<p>\u73b0\u5728\u5c1d\u8bd5\u5c06\u67d0\u4e2a\u5185\u5bb9\u4ece <code>markdown<\/code> \u8f6c\u6362\u4e3a <code>LaTeX<\/code>\u3002\u4f60\u8ba4\u4e3a\u5e94\u8be5\u4f7f\u7528\u4ec0\u4e48\u547d\u4ee4\u5462\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4 5\uff1a\u6587\u672c\u7f16\u8f91\u5668\u57fa\u7840<\/h2>\n\n\n\n<p>\u4f60\u53ef\u80fd\u5e0c\u671b\u4f7f\u7528 pandoc \u6765\u8f6c\u6362\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u4ece\u7ec8\u7aef\u8bfb\u53d6\u6587\u672c\u3002\u8fd9\u5f88\u7b80\u5355\uff0c\u4f46\u9996\u5148\u6211\u4eec\u9700\u8981\u5728 <code>pandoc-test<\/code> \u5b50\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u3002<\/p>\n\n\n\n<p><strong>\u91cd\u8981\u63d0\u793a\uff1a<\/strong><\/p>\n\n\n\n<p>\u4e3a\u4e86\u521b\u5efa\u6587\u672c\u6587\u4ef6\uff0c\u4f60\u9700\u8981\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff0c<strong>\u800c\u4e0d\u662f<\/strong> \u50cf Microsoft Word \u8fd9\u6837\u7684\u6587\u5b57\u5904\u7406\u8f6f\u4ef6\u3002\u5728 Windows \u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u8bb0\u4e8b\u672c\uff08\u4f4d\u4e8e <code>\u9644\u4ef6<\/code> \u4e2d\uff09\u3002\u5728 OS X \u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>TextEdit<\/code>\uff08\u4f4d\u4e8e <code>\u5e94\u7528\u7a0b\u5e8f<\/code> \u4e2d\uff09\u3002\u5728 Linux \u4e0a\uff0c\u4e0d\u540c\u7684\u5e73\u53f0\u9884\u88c5\u4e86\u4e0d\u540c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff1aGnome \u63d0\u4f9b\u4e86 <code>GEdit<\/code>\uff0c\u800c KDE \u5219\u6709 <code>Kate<\/code>\u3002<\/p>\n\n\n\n<p>\u542f\u52a8\u4f60\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u952e\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;---<br>&nbsp;title: \u6d4b\u8bd5<br>&nbsp;...<br>&nbsp;\u200b<br>&nbsp;# \u6d4b\u8bd5\uff01<br>&nbsp;\u200b<br>&nbsp;\u8fd9\u662f\u5bf9*pandoc*\u7684\u6d4b\u8bd5\u3002<br>&nbsp;\u200b<br>&nbsp;- \u5217\u8868\u4e00\u9879<br>&nbsp;- \u5217\u8868\u4e8c\u9879<\/pre>\n\n\n\n<p>\u73b0\u5728\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a <code>test1.md<\/code>\uff0c\u5b58\u653e\u5728 <code>Documents\/pandoc-test<\/code> \u76ee\u5f55\u4e0b\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u7ecf\u5e38\u4f7f\u7528\u7eaf\u6587\u672c\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u4e00\u4e2a\u6bd4 <code>\u8bb0\u4e8b\u672c<\/code> \u6216 <code>TextEdit<\/code> \u66f4\u597d\u7684\u7f16\u8f91\u5668\u3002\u4f60\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fcode.visualstudio.com%2f\">Visual Studio Code<\/a> \u6216 <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fwww.sublimetext.com%2f\">Sublime Text<\/a>\uff0c\u6216\u8005\uff08\u5982\u679c\u4f60\u613f\u610f\u82b1\u65f6\u95f4\u5b66\u4e60\u4e00\u4e2a\u4e0d\u719f\u6089\u7684\u754c\u9762\uff09<a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fwww.vim.org\">Vim<\/a> \u6216 <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fwww.gnu.org%2fsoftware%2femacs\">Emacs<\/a>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4 6\uff1a\u8f6c\u6362\u6587\u4ef6<\/h2>\n\n\n\n<p>\u56de\u5230\u4f60\u7684\u7ec8\u7aef\uff0c\u6211\u4eec\u5e94\u5f53\u4ecd\u5904\u4e8e <code>Documents\/pandoc-test<\/code> \u76ee\u5f55\u4e0b\u3002\u4f7f\u7528 <code>pwd<\/code> \u547d\u4ee4\u786e\u8ba4\u5f53\u524d\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u952e\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;ls<\/pre>\n\n\n\n<p>\uff08\u5982\u679c\u4f60\u5728 Windows \u4e0a\uff0c\u5219\u4f7f\u7528 <code>dir<\/code>\uff09\u3002\u8fd9\u4f1a\u5217\u51fa\u5f53\u524d\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u4f60\u521b\u5efa\u7684\u6587\u4ef6 <code>test1.md<\/code>\u3002<\/p>\n\n\n\n<p>\u8981\u5c06\u5176\u8f6c\u6362\u4e3a HTML\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc test1.md -f markdown -t html -s -o test1.html<\/pre>\n\n\n\n<p>\u6587\u4ef6\u540d <code>test1.md<\/code> \u544a\u8bc9 pandoc \u8981\u8f6c\u6362\u54ea\u4e2a\u6587\u4ef6\u3002\u9009\u9879 <code>-s<\/code> \u8868\u793a\u521b\u5efa\u4e00\u4e2a\u5e26\u6709\u9875\u7709\u548c\u9875\u811a\u7684\u201c\u72ec\u7acb\u201d\u6587\u4ef6\uff0c\u800c\u4e0d\u53ea\u662f\u4e00\u4e2a\u7247\u6bb5\u3002\u800c <code>-o test1.html<\/code> \u8868\u793a\u5c06\u8f93\u51fa\u653e\u7f6e\u5728\u6587\u4ef6 <code>test1.html<\/code> \u4e2d\u3002\u8bf7\u6ce8\u610f\uff0c\u6211\u4eec\u672c\u53ef\u4ee5\u7701\u7565 <code>-f markdown<\/code> \u548c <code>-t html<\/code>\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u662f\u4ece markdown \u8f6c\u6362\u4e3a HTML\uff0c\u4f46\u5305\u542b\u5b83\u4eec\u4e5f\u65e0\u59a8\u3002<\/p>\n\n\n\n<p>\u518d\u6b21\u952e\u5165 <code>ls<\/code> \u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5df2\u521b\u5efa\u3002\u4f60\u5e94\u8be5\u80fd\u770b\u5230 <code>test1.html<\/code>\u3002\u73b0\u5728\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u5b83\u3002\u5728 OS X \u4e0a\uff0c\u4f60\u53ef\u4ee5\u952e\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;open test1.html<\/pre>\n\n\n\n<p>\u5728 Windows \u4e0a\uff0c\u952e\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;.\\test1.html<\/pre>\n\n\n\n<p>\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u5305\u542b\u4f60\u7684\u6587\u6863\u7684\u6d4f\u89c8\u5668\u7a97\u53e3\u3002<\/p>\n\n\n\n<p>\u8981\u521b\u5efa LaTeX \u6587\u6863\uff0c\u53ea\u9700\u7a0d\u5fae\u4fee\u6539\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc test1.md -f markdown -t latex -s -o test1.tex<\/pre>\n\n\n\n<p>\u5c1d\u8bd5\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u6253\u5f00 <code>test1.tex<\/code>\u3002<\/p>\n\n\n\n<p>Pandoc \u7ecf\u5e38\u80fd\u6839\u636e\u6587\u4ef6\u540d\u6269\u5c55\u540d\u63a8\u65ad\u8f93\u5165\u548c\u8f93\u51fa\u683c\u5f0f\u3002\u6240\u4ee5\uff0c\u4f60\u5176\u5b9e\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc test1.md -s -o test1.tex<\/pre>\n\n\n\n<p>\u7531\u4e8e <code>.tex<\/code> \u6269\u5c55\u540d\uff0cPandoc \u77e5\u9053\u4f60\u8981\u521b\u5efa\u7684\u662f LaTeX \u6587\u6863\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a Word \u6587\u6863\uff08\u6269\u5c55\u540d\u4e3a <code>docx<\/code>\uff09\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u60f3\u521b\u5efa PDF\uff0c\u4f60\u9700\u8981\u5b89\u88c5 LaTeX\u3002\uff08\u5728 OS X \u4e0a\u67e5\u770b <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2ftug.org%2fmactex%2f\">MacTeX<\/a>\uff0c\u5728 Windows \u4e0a\u67e5\u770b <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fmiktex.org\">MiKTeX<\/a>\uff0c\u6216\u5728 Linux \u4e0a\u5b89\u88c5 <code>texlive<\/code> \u5305\u3002\uff09\u7136\u540e\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc test1.md -s -o test1.pdf<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u7b2c7\u6b65\uff1a\u547d\u4ee4\u884c\u9009\u9879<\/h2>\n\n\n\n<p>\u81f3\u6b64\uff0c\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u57fa\u672c\u77e5\u8bc6\u3002Pandoc\u63d0\u4f9b\u4e86\u5927\u91cf\u9009\u9879\u3002\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb <a href=\"https:\/\/www.koudingke.cn\/docs\/zh-Hans\/pandoc-docs\/master\/User-Guide\/Synopsis\">Pandoc\u7528\u6237\u6307\u5357<\/a> \u6765\u8fdb\u4e00\u6b65\u5b66\u4e60\u5b83\u4eec\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002\u4f7f\u7528 <code>--mathml<\/code> \u9009\u9879\u53ef\u4ee5\u8ba9 <code>Pandoc<\/code> \u5c06 <code>TeX<\/code> \u6570\u5b66\u516c\u5f0f\u8f6c\u6362\u6210 <code>MathML<\/code> \u683c\u5f0f\u3002\u5728\u547d\u4ee4\u884c\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc --mathml<\/pre>\n\n\n\n<p>\u63a5\u7740\u8f93\u5165\u4ee5\u4e0b\u6587\u672c\uff0c\u7136\u540e\u6309 <code>Ctrl-D<\/code>\uff08 \u5728 Windows \u7cfb\u7edf\u4e2d\u662f <code>Ctrl-Z<\/code> \u540e\u8ddf <code>Enter<\/code> \uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;$x = y^2$<\/pre>\n\n\n\n<p>\u73b0\u5728\u5c1d\u8bd5\u4e0d\u4f7f\u7528 <code>--mathml<\/code> \u9009\u9879\u91cd\u590d\u4e0a\u8ff0\u64cd\u4f5c\u3002\u6ce8\u610f\u8f93\u51fa\u7684\u5dee\u5f02\u4e86\u5417\uff1f<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u5fd8\u8bb0\u4e86\u67d0\u4e2a\u9009\u9879\uff0c\u6216\u8005\u4e0d\u786e\u5b9a\u652f\u6301\u54ea\u4e9b\u683c\u5f0f\uff0c\u53ef\u4ee5\u968f\u65f6\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc --help<\/pre>\n\n\n\n<p>\u4ee5\u83b7\u53d6\u6240\u6709\u652f\u6301\u9009\u9879\u7684\u5217\u8868\u3002<\/p>\n\n\n\n<p>\u5728 <code>OS X<\/code> \u6216 <code>Linux<\/code> \u7cfb\u7edf\u4e0a\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;man pandoc<\/pre>\n\n\n\n<p>\u6765\u67e5\u770bPandoc\u7684\u624b\u518c\u9875\u3002\u6240\u6709\u8fd9\u4e9b\u4fe1\u606f\u540c\u6837\u53ef\u4ee5\u5728\u7528\u6237\u6307\u5357\u4e2d\u627e\u5230\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u5728 <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fgithub.com%2fjgm%2fpandoc%2fdiscussions\">Pandoc\u8ba8\u8bba\u8bba\u575b<\/a> \u63d0\u95ee\u3002\u4f46\u5728\u63d0\u95ee\u524d\uff0c\u8bf7\u786e\u4fdd\u5148\u67e5\u9605 <a href=\"https:\/\/www.koudingke.cn\/go?link=https%3a%2f%2fpandoc.org%2ffaqs.html\">\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/a> \uff0c\u5e76\u641c\u7d22\u8bba\u575b\u770b\u770b\u662f\u5426\u5df2\u7ecf\u6709\u4e86\u89e3\u7b54\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u8fdb\u9636\u6280\u5de7\uff1a<\/h1>\n\n\n\n<p><strong>HTML \u7247\u6bb5<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.txt -o example1.html<\/pre>\n\n\n\n<p><strong>\u72ec\u7acb HTML \u6587\u4ef6<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -o example2.html<\/pre>\n\n\n\n<p><strong>\u5e26\u76ee\u5f55\u3001CSS \u548c\u81ea\u5b9a\u4e49\u9875\u811a\u7684 HTML<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s --toc -c pandoc.css -A footer.html MANUAL.txt -o example3.html<\/pre>\n\n\n\n<p>\u751f\u6210\u5e26\u6709\u76ee\u5f55\u3001\u5916\u90e8 CSS \u6837\u5f0f\u8868\u548c\u81ea\u5b9a\u4e49\u9875\u811a\u7684 HTML \u6587\u4ef6\u3002<\/p>\n\n\n\n<p><strong>LaTeX \u8f6c\u6362<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -o example4.tex<\/pre>\n\n\n\n<p>\u5c06\u6587\u672c\u6587\u4ef6\u8f6c\u6362\u4e3a LaTeX \u683c\u5f0f\u3002<\/p>\n\n\n\n<p><strong>\u4ece LaTeX \u5230 Markdown<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s example4.tex -o example5.text<\/pre>\n\n\n\n<p><strong>reStructuredText \u8f6c\u6362<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s -t rst --toc MANUAL.txt -o example6.text<\/pre>\n\n\n\n<p><strong>RTF \u683c\u5f0f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -o example7.rtf<\/pre>\n\n\n\n<p>\u751f\u6210\u5bcc\u6587\u672c\u683c\u5f0f\uff08RTF\uff09\u6587\u4ef6\u3002<\/p>\n\n\n\n<p><strong>Beamer \u5e7b\u706f\u7247<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -t beamer SLIDES -o example8.pdf<\/pre>\n\n\n\n<p><strong>DocBook XML<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s -t docbook MANUAL.txt -o example9.db<\/pre>\n\n\n\n<p><strong>Man \u9875\u9762<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s -t man pandoc.1.md -o example10.1<\/pre>\n\n\n\n<p><strong>ConTeXt \u683c\u5f0f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s -t context MANUAL.txt -o example11.tex<\/pre>\n\n\n\n<p><strong>\u7f51\u9875\u8f6c Markdown<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s -r html http:\/\/www.gnu.org\/software\/make\/ -o example12.text<\/pre>\n\n\n\n<p>\u4ece\u7f51\u9875\u76f4\u63a5\u8f6c\u6362\u4e3a Markdown \u6587\u672c\u3002<\/p>\n\n\n\n<p><strong>Markdown \u5230 PDF<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.txt --pdf-engine=xelatex -o example13.pdf<\/pre>\n\n\n\n<p><strong>PDF \u589e\u5f3a\u914d\u7f6e\uff08\u5305\u542b\u7f16\u53f7\u7ae0\u8282\u3001\u81ea\u5b9a\u4e49 LaTeX \u9875\u7709\u7b49\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -N --variable \"geometry=margin=1.2in\" --variable mainfont=\"Palatino\" --variable sansfont=\"Helvetica\" --variable monofont=\"Menlo\" --variable fontsize=12pt --variable version=2.0 MANUAL.txt --include-in-header fancyheaders.tex --pdf-engine=lualatex --toc -o example14.pdf<\/pre>\n\n\n\n<p><strong>Jupyter Notebook<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc example15.md -o example15.ipynb<\/pre>\n\n\n\n<p><strong>HTML \u5e7b\u706f\u7247<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s --mathml -i -t dzslides SLIDES -o example16a.html<br>&nbsp;pandoc -s --webtex -i -t slidy SLIDES -o example16b.html<br>&nbsp;pandoc -s --mathjax -i -t revealjs SLIDES -o example16d.html<\/pre>\n\n\n\n<p><strong>\u6570\u5b66\u516c\u5f0f\u5728 HTML \u4e2d\u7684\u6e32\u67d3<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc math.text -s -o mathDefault.html<br>&nbsp;pandoc math.text -s --mathml &nbsp;-o mathMathML.html<br>&nbsp;pandoc math.text -s --webtex &nbsp;-o mathWebTeX.html<br>&nbsp;pandoc math.text -s --mathjax -o mathMathJax.html<br>&nbsp;pandoc math.text -s --katex &nbsp; -o mathKaTeX.html<\/pre>\n\n\n\n<p><strong>\u4ee3\u7801\u5757\u8bed\u6cd5\u9ad8\u4eae<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc code.text -s --highlight-style pygments -o example18a.html<br>&nbsp;pandoc code.text -s --highlight-style kate -o example18b.html<br>&nbsp;pandoc code.text -s --highlight-style monochrome -o example18c.html<br>&nbsp;pandoc code.text -s --highlight-style espresso -o example18d.html<br>&nbsp;pandoc code.text -s --highlight-style haddock -o example18e.html<br>&nbsp;pandoc code.text -s --highlight-style tango -o example18f.html<br>&nbsp;pandoc code.text -s --highlight-style zenburn -o example18g.html<\/pre>\n\n\n\n<p><strong>GNU Texinfo<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.txt -s -o example19.texi<\/pre>\n\n\n\n<p><strong>OpenDocument XML<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.txt -s -t opendocument -o example20.xml<\/pre>\n\n\n\n<p><strong>ODT (OpenDocument Text, readable by OpenOffice)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.txt -o example21.odt<\/pre>\n\n\n\n<p><strong>MediaWiki markup<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s -t mediawiki --toc MANUAL.txt -o example22.wiki<\/pre>\n\n\n\n<p><strong>EPUB ebook<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.txt -o MANUAL.epub<\/pre>\n\n\n\n<p><strong>Markdown \u5f15\u7528<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s --bibliography biblio.bib --citeproc CITATIONS -o example24a.html<br>&nbsp;pandoc -s --bibliography biblio.json --citeproc --csl chicago-fullnote-bibliography.csl CITATIONS -o example24b.html<br>&nbsp;pandoc -s --bibliography biblio.yaml --citeproc --csl ieee.csl CITATIONS -t man -o example24c.1<\/pre>\n\n\n\n<p><strong>Textile \u7f16\u8f91\u5668<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -t textile -o example25.textile<\/pre>\n\n\n\n<p><strong>Textile \u9605\u8bfb\u5668<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s example25.textile -f textile -t html -o example26.html<\/pre>\n\n\n\n<p><strong>Org-mode<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -o example27.org<\/pre>\n\n\n\n<p><strong>AsciiDoc<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -t asciidoc -o example28.txt<\/pre>\n\n\n\n<p><strong>\u8f6c\u4e3a docx<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s MANUAL.txt -o example29.docx<\/pre>\n\n\n\n<p><strong>\u5c06 LaTeX \u6570\u5b66\u516c\u5f0f\u8f6c\u6362\u4e3a Docx \u6587\u6863<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s math.tex -o example30.docx<\/pre>\n\n\n\n<p><strong>DocBook \u8f6c\u4e3a markdown<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -f docbook -t markdown -s howto.xml -o example31.text<\/pre>\n\n\n\n<p><strong>MediaWiki \u8f6c\u4e3a html5<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -f mediawiki -t html5 -s haskell.wiki -o example32.html<\/pre>\n\n\n\n<p><strong>\u5206\u5757 HTML<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -t chunkedhtml --split-level=2 --toc --toc-depth=2 --number-sections -o example33 MANUAL.txt<\/pre>\n\n\n\n<p><strong>\u4f7f\u7528\u53c2\u8003\u6a21\u677f\u7684 Docx \u6587\u6863<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc --reference-doc twocolumns.docx -o UsersGuide.docx MANUAL.txt<\/pre>\n\n\n\n<p><strong>Docx \u8f6c\u4e3a markdown, \u5305\u62ec\u6570\u5b66\u516c\u5f0f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc -s example30.docx -t markdown -o example35.md<\/pre>\n\n\n\n<p><strong>EPUB \u8f6c\u4e3a\u7eaf\u6587\u672c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc MANUAL.epub -t plain -o example36.text<\/pre>\n\n\n\n<p><strong>\u4f7f\u7528\u6a21\u677f\u6839\u636e\u7ed3\u6784\u5316\u6570\u636e\u751f\u6210\u8868\u683c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc fishwatch.yaml -t rst --template fishtable.rst -o fish.rst # see also the partial species.rst<\/pre>\n\n\n\n<p><strong>\u5c06 BibTeX \u683c\u5f0f\u7684\u53c2\u8003\u4e66\u76ee\u8f6c\u6362\u4e3a CSL JSON \u683c\u5f0f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;pandoc biblio.bib -t csljson -o biblio2.json<\/pre>\n\n\n\n<p><strong>\u751f\u6210\u683c\u5f0f\u5316\u7248\u672c\u7684\u53c2\u8003\u6587\u732e\u5217\u8868<\/strong><\/p>\n\n\n\n<p><code>pandoc biblio.bib --citeproc --csl ieee.csl -s -o biblio.html<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pandoc \u662f\u4e00\u6b3e\u81ea\u7531\u5f00\u6e90\u3001\u8de8\u5e73\u53f0\u7684\u547d\u4ee4\u884c\u754c\u9762\u6807\u8bb0\u8bed\u8a00\u8f6c\u6362\u5de5\u5177\uff0c\u4f7f\u7528 Haskell \u7f16\u5199\u3002 Pandoc  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-7071","post","type-post","status-publish","format-standard","hentry","category-software","entry"],"_links":{"self":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts\/7071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/comments?post=7071"}],"version-history":[{"count":2,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts\/7071\/revisions"}],"predecessor-version":[{"id":7074,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/posts\/7071\/revisions\/7074"}],"wp:attachment":[{"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/media?parent=7071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/categories?post=7071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xinyixx.com\/index.php\/wp-json\/wp\/v2\/tags?post=7071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}