{"id":141,"date":"2026-10-18T12:04:39","date_gmt":"2026-10-18T04:04:39","guid":{"rendered":"http:\/\/laoke.pw\/?p=141"},"modified":"2026-10-18T12:04:39","modified_gmt":"2026-10-18T04:04:39","slug":"103-pandoc-%e4%b8%80%e4%bb%bd%e7%a8%bf%e5%ad%90%e8%bd%ac%e6%88%90%e5%8d%81%e7%a7%8d%e6%a0%bc%e5%bc%8f%ef%bc%8c%e4%b8%80%e8%a1%8c%e5%91%bd%e4%bb%a4%e5%b0%b1%e5%a4%9f%e4%ba%86","status":"publish","type":"post","link":"https:\/\/laoke.pw\/?p=141","title":{"rendered":"103 Pandoc \u2014\u2014 \u4e00\u4efd\u7a3f\u5b50\u8f6c\u6210\u5341\u79cd\u683c\u5f0f\uff0c\u4e00\u884c\u547d\u4ee4\u5c31\u591f\u4e86"},"content":{"rendered":"<p>\u4e00\u53e5\u8bdd\u5b9a\u4f4d\uff1aPandoc \u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u901a\u7528\u6587\u6863\u8f6c\u6362\u5668\uff0cMarkdown\u3001Word\u3001HTML\u3001EPUB\u3001LaTeX\u3001\u7eaf\u6587\u672c\u4e4b\u95f4\u57fa\u672c\u90fd\u80fd\u4e92\u8f6c\uff0c\u547d\u4ee4\u884c\u6572\u4e00\u884c\u5c31\u51fa\u7ed3\u679c\uff0c\u4e0d\u9700\u8981\u88c5 Office\u3002<\/p>\n<h2>\u75db\u70b9\uff1a\u5199\u5b8c\u53ea\u662f\u7b2c\u4e00\u6b65\uff0c\u4ea4\u51fa\u53bb\u624d\u662f\u9ebb\u70e6<\/h2>\n<p>\u7528 Markdown \u5199\u4e1c\u897f\u7684\u4eba\u5927\u6982\u90fd\u9047\u5230\u8fc7\u8fd9\u4e2a\u5faa\u73af\uff1a\u81ea\u5df1\u5199\u7740\u8212\u670d\uff0c\u4f46\u7532\u65b9\u8981 Word\uff0c\u516c\u4f17\u53f7\u8981 HTML\uff0c\u505a\u7535\u5b50\u4e66\u8981 EPUB\uff0c\u6295\u7a3f\u7cfb\u7edf\u53ea\u6536 PDF\u3002\u624b\u5de5\u590d\u5236\u7c98\u8d34\u8fdb Word\uff0c\u6807\u9898\u5c42\u7ea7\u3001\u5217\u8868\u7f29\u8fdb\u3001\u4ee3\u7801\u5757\u5168\u5f97\u91cd\u6392\u4e00\u904d\uff0c\u4e00\u7bc7\u4e94\u5343\u5b57\u7684\u7a3f\u5b50\u8c03\u683c\u5f0f\u80fd\u82b1\u6389\u534a\u5c0f\u65f6\u3002<\/p>\n<p>\u5728\u7ebf\u8f6c\u6362\u7ad9\u4e5f\u4e0d\u662f\u6ca1\u8bd5\u8fc7\u3002\u514d\u8d39\u7248\u9650\u5236 10MB\u3001\u8f6c\u4e09\u4efd\u5c31\u8981\u767b\u5f55\u3001\u9875\u9762\u4e0a\u5e7f\u544a\u6bd4\u6309\u94ae\u5927\u3002\u66f4\u8981\u7d27\u7684\u662f\u6587\u4ef6\u8981\u4f20\u5230\u522b\u4eba\u670d\u52a1\u5668\u4e0a\u2014\u2014\u5408\u540c\u3001\u4e66\u7a3f\u3001\u5185\u90e8\u6587\u6863\uff0c\u591a\u6570\u4eba\u5fc3\u91cc\u662f\u4e0d\u8e0f\u5b9e\u7684\u3002<\/p>\n<h2>\u6838\u5fc3\u80fd\u529b<\/h2>\n<ul>\n<li><strong>\u683c\u5f0f\u8986\u76d6\u9762\u5e7f<\/strong>\uff1a\u8f93\u5165\u652f\u6301 Markdown\u3001docx\u3001HTML\u3001LaTeX\u3001EPUB\u3001ODT\u3001rst\u3001org \u7b49\u51e0\u5341\u79cd\uff0c\u8f93\u51fa\u540c\u6837\u51e0\u5341\u79cd\uff0c\u4e24\u4e2a\u65b9\u5411\u90fd\u80fd\u8d70\u3002<\/li>\n<li><strong>\u5355\u6587\u4ef6\u7eff\u8272\u8fd0\u884c<\/strong>\uff1aWindows \u7248\u5c31\u662f\u4e00\u4e2a exe \u52a0\u5b89\u88c5\u5305\uff0c\u4e0d\u4f9d\u8d56 Word \u6216 WPS\uff0c\u670d\u52a1\u5668\u4e0a\u4e5f\u80fd\u8dd1\u3002<\/li>\n<li><strong>\u6a21\u677f\u5957\u6837\u5f0f<\/strong>\uff1a<code>--reference-doc<\/code> \u6307\u5b9a\u4e00\u4e2a\u73b0\u6210\u7684 docx\uff0c\u5bfc\u51fa\u7684 Word \u76f4\u63a5\u7ee7\u627f\u5b83\u7684\u5b57\u4f53\u3001\u5b57\u53f7\u3001\u9875\u8fb9\u8ddd\u548c\u6807\u9898\u6837\u5f0f\uff0c\u4ea4\u51fa\u53bb\u5c31\u662f\u516c\u53f8\u6a21\u677f\u7684\u6837\u5b50\u3002<\/li>\n<li><strong>\u53cd\u5411\u8f6c\u6362<\/strong>\uff1adocx \u8f6c Markdown \u662f\u5b83\u7684\u5f3a\u9879\uff0c\u65e7\u7a3f\u5b50\u60f3\u642c\u8fdb\u7b14\u8bb0\u8f6f\u4ef6\uff0c\u4e00\u6761\u547d\u4ee4\u5c31\u80fd\u62c6\u51fa\u5e72\u51c0\u7684\u6587\u672c\u3002<\/li>\n<li><strong>\u6279\u91cf\u4e0e\u811a\u672c\u5316<\/strong>\uff1a\u914d\u5408\u6279\u5904\u7406\u6216 PowerShell \u5faa\u73af\uff0c\u4e00\u4e2a\u6587\u4ef6\u5939\u51e0\u5341\u4efd\u6587\u6863\u53ef\u4ee5\u4e00\u6b21\u8f6c\u5b8c\u3002<\/li>\n<li><strong>\u6a21\u677f\u53d8\u91cf\u4e0e\u8fc7\u6ee4\u5668<\/strong>\uff1a\u5199\u6280\u672f\u6587\u6863\u65f6\u80fd\u81ea\u52a8\u7f16\u53f7\u56fe\u8868\u3001\u751f\u6210\u76ee\u5f55\u3001\u63d2\u5165\u6587\u732e\uff0c\u9760\u7684\u662f pandoc-crossref \u8fd9\u7c7b\u8fc7\u6ee4\u5668\u3002<\/li>\n<\/ul>\n<h2>\u5b9e\u6d4b\u4f53\u9a8c<\/h2>\n<p>\u6211\u62ff\u4e00\u4efd 42 \u9875\u3001\u5e26\u4e09\u7ea7\u6807\u9898\u548c\u5341\u51e0\u4e2a\u8868\u683c\u7684\u4ea7\u54c1\u6587\u6863\u505a\u6d4b\u8bd5\uff1adocx \u8f6c Markdown \u7528\u4e86\u4e0d\u5230 3 \u79d2\uff0c\u8f93\u51fa\u7684\u6807\u9898\u5c42\u7ea7\u3001\u5217\u8868\u3001\u7c97\u4f53\u5168\u90e8\u6b63\u786e\uff0c\u8868\u683c\u8f6c\u6210\u4e86\u7ba1\u9053\u8868\u683c\uff0c\u53ea\u6709\u4e24\u5904\u5408\u5e76\u5355\u5143\u683c\u88ab\u62c6\u6210\u4e86\u666e\u901a\u884c\u2014\u2014\u8fd9\u5df2\u7ecf\u662f\u8fd9\u7c7b\u5de5\u5177\u91cc\u76f8\u5f53\u5e72\u51c0\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u518d\u62ff\u540c\u4e00\u4efd Markdown \u5bfc\u51fa Word\uff0c\u5957\u4e0a\u4e8b\u5148\u505a\u597d\u7684\u4e00\u4efd reference-doc\uff0c\u5b57\u4f53\u3001\u884c\u8ddd\u3001\u9875\u811a\u9875\u7801\u90fd\u8ddf\u7740\u6a21\u677f\u8d70\uff0c\u6253\u5f00\u540e\u57fa\u672c\u4e0d\u7528\u518d\u52a8\u3002\u5bfc\u51fa HTML \u662f\u77ac\u65f6\u7684\uff0c\u6837\u5f0f\u5e72\u51c0\uff0c\u6ca1\u6709\u4e00\u5806\u5197\u4f59\u7684 span \u6807\u7b7e\u3002<\/p>\n<p>PDF \u662f\u552f\u4e00\u9700\u8981\u989d\u5916\u51c6\u5907\u7684\u4e00\u73af\u3002Pandoc \u672c\u8eab\u4e0d\u751f\u6210 PDF\uff0c\u5b83\u8c03\u7528 LaTeX \u5f15\u64ce\uff08\u5982 MiKTeX\u3001TinyTeX\uff09\u6216 HTML \u8f6c PDF \u7684\u5f15\u64ce\u6765\u5b8c\u6210\u3002\u7b2c\u4e00\u6b21\u88c5 TinyTeX \u5927\u7ea6 100MB\uff0c\u4e4b\u540e\u4e2d\u6587\u5b57\u4f53\u914d\u7f6e\u8981\u82b1\u70b9\u65f6\u95f4\uff0c\u914d\u597d\u4e00\u6b21\u5c31\u4e00\u52b3\u6c38\u9038\u3002<\/p>\n<h2>\u9002\u5408\u8c01<\/h2>\n<ul>\n<li><strong>\u957f\u671f\u7528 Markdown \u5199\u4f5c\u7684\u4eba<\/strong>\uff1a\u535a\u5ba2\u3001\u6280\u672f\u6587\u6863\u3001\u4e66\u7a3f\uff0c\u5199\u5b8c\u76f4\u63a5\u51fa\u591a\u79cd\u683c\u5f0f\u3002<\/li>\n<li><strong>\u9700\u8981\u6309\u4e0d\u540c\u6e20\u9053\u4ea4\u7a3f\u7684\u7f16\u8f91\u548c\u4f5c\u8005<\/strong>\uff1a\u4e00\u4efd\u6e90\u6587\u4ef6\uff0cWord \u7ed9\u7532\u65b9\u3001HTML \u7ed9\u7f51\u7ad9\u3001EPUB \u7ed9\u9605\u8bfb\u5668\u3002<\/li>\n<li><strong>\u8981\u628a\u65e7\u6587\u6863\u8fc1\u79fb\u5230\u65b0\u7b14\u8bb0\u7cfb\u7edf\u7684\u4eba<\/strong>\uff1adocx \u6279\u91cf\u8f6c Markdown\uff0c\u6bd4\u624b\u5de5\u590d\u5236\u5feb\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002<\/li>\n<li><strong>\u5199\u8bba\u6587\u7684\u5b66\u751f\u548c\u7814\u7a76\u8005<\/strong>\uff1aMarkdown \u5199\u6b63\u6587\uff0c\u5f15\u7528\u4ea4\u7ed9\u8fc7\u6ee4\u5668\uff0c\u6700\u540e\u51fa PDF\u3002<\/li>\n<\/ul>\n<h2>\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/h2>\n<ul>\n<li><strong>\u5b83\u662f\u547d\u4ee4\u884c\u5de5\u5177<\/strong>\uff1a\u6ca1\u6709\u56fe\u5f62\u754c\u9762\uff0c\u7b2c\u4e00\u6b21\u7528\u8981\u67e5\u6587\u6863\u3002\u5e38\u7528\u53c2\u6570\u5c31\u90a3\u4e48\u4e03\u516b\u4e2a\uff0c\u4f46\u786e\u5b9e\u6709\u95e8\u69db\u3002<\/li>\n<li><strong>PDF \u8f93\u51fa\u8981\u53e6\u88c5\u5f15\u64ce<\/strong>\uff1a\u4e0d\u88c5 LaTeX \u5c31\u5bfc\u4e0d\u51fa PDF\uff0c\u4e2d\u6587\u8fd8\u8981\u989d\u5916\u914d\u5b57\u4f53\uff0c\u8fd9\u662f\u6700\u5bb9\u6613\u529d\u9000\u65b0\u624b\u7684\u4e00\u6b65\u3002<\/li>\n<li><strong>\u590d\u6742\u6392\u7248\u4f1a\u8d70\u6837<\/strong>\uff1aWord \u91cc\u7684\u6587\u672c\u6846\u3001\u591a\u680f\u3001\u6d6e\u52a8\u56fe\u7247\u3001\u827a\u672f\u5b57\uff0c\u8f6c\u6210 Markdown \u57fa\u672c\u7559\u4e0d\u4f4f\u3002\u5b83\u7684\u5b9a\u4f4d\u662f\u5904\u7406&quot;\u7ed3\u6784\u5316\u6587\u672c&quot;\uff0c\u4e0d\u662f\u8fd8\u539f\u50cf\u7d20\u7ea7\u7248\u5f0f\u3002<\/li>\n<li><strong>\u7248\u672c\u5dee\u5f02\u8981\u6ce8\u610f<\/strong>\uff1a\u4e0d\u540c\u5927\u7248\u672c\u4e4b\u95f4\u53c2\u6570\u6709\u8c03\u6574\uff0c\u7f51\u4e0a\u6284\u6765\u7684\u8001\u547d\u4ee4\u53ef\u80fd\u62a5\u9519\uff0c\u9047\u5230\u95ee\u9898\u5148\u770b\u5f53\u524d\u7248\u672c\u7684\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<h2>\u5c0f\u7ed3<\/h2>\n<p>Pandoc \u4e0d\u662f\u90a3\u79cd\u88c5\u5b8c\u5c31\u80fd\u7acb\u523b\u4e0a\u624b\u7684\u5de5\u5177\uff0c\u5b83\u7684\u4ef7\u503c\u5728\u4e8e\u628a&quot;\u683c\u5f0f\u8f6c\u6362&quot;\u8fd9\u4ef6\u4e8b\u4ece\u624b\u5de5\u52b3\u52a8\u53d8\u6210\u4e00\u6761\u53ef\u590d\u7528\u7684\u547d\u4ee4\u3002\u5982\u679c\u4f60\u4e00\u5e74\u53ea\u8f6c\u4e24\u4e09\u6b21\u6587\u6863\uff0c\u5b83\u53ef\u80fd\u6709\u70b9\u91cd\uff1b\u4f46\u5982\u679c\u4f60\u6bcf\u5468\u90fd\u8981\u5728\u51e0\u79cd\u683c\u5f0f\u4e4b\u95f4\u6765\u56de\u5012\u817e\uff0c\u914d\u597d\u4e00\u6b21\u6a21\u677f\u548c\u53c2\u6570\u4e4b\u540e\uff0c\u5b83\u7701\u4e0b\u7684\u65f6\u95f4\u76f8\u5f53\u53ef\u89c2\u3002\u514d\u8d39\u3001\u5f00\u6e90\u3001\u65e0\u5e7f\u544a\u3001\u4e0d\u8054\u7f51\uff0c\u8fd9\u51e0\u4e2a\u5c5e\u6027\u5728\u6587\u6863\u5de5\u5177\u91cc\u5df2\u7ecf\u5f88\u96be\u5f97\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u53e5\u8bdd\u5b9a\u4f4d\uff1aPandoc \u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u901a\u7528\u6587\u6863\u8f6c\u6362\u5668\uff0cMarkdown\u3001Word\u3001HTML\u3001EPUB\u3001LaTeX\u3001\u7eaf\u6587\u672c\u4e4b\u95f4\u57fa\u672c\u90fd\u80fd\u4e92\u8f6c\uff0c\u547d\u4ee4\u884c\u6572\u4e00\u884c\u5c31\u51fa\u7ed3\u679c\uff0c\u4e0d\u9700\u8981\u88c5 Office\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":0,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}