{"id":352,"date":"2024-07-06T20:06:43","date_gmt":"2024-07-06T11:06:43","guid":{"rendered":"https:\/\/www.flumen-jp.com\/wordpress\/?p=352"},"modified":"2024-07-11T23:55:24","modified_gmt":"2024-07-11T14:55:24","slug":"pandoc","status":"publish","type":"post","link":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/2024\/07\/06\/pandoc\/","title":{"rendered":"pandoc"},"content":{"rendered":"\n<p>\u3000\u7b2c\u4e09\u5f3e\u306f\u6587\u66f8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u63db\u30c4\u30fc\u30eb <a href=\"https:\/\/pandoc-doc-ja.readthedocs.io\/ja\/latest\/users-guide.html\">pandoc<\/a> \u3067\u3059\u3002\u63a5\u982d\u8f9e\u300cpan\u300d\u306f\u300c\u5168\u3066\u3001\u7dcf\u3001\u6c4e\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u5927\u8888\u88df\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5909\u63db\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f 44 \u7a2e\u985e\u3001\u5909\u63db\u5148\u306e\u305d\u308c\u306f 62 \u7a2e\u985e\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u5909\u308f\u308a\u7a2e\u3068\u3057\u3066\u306f Microsoft Word\uff08.docx\uff09\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<br>\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"https:\/\/pandoc.org\/installing.html\">\u3053\u3061\u3089<\/a>\u304b\u3089\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u306f\u6700\u3082\u81ea\u7531\u5ea6\u304c\u9ad8\u3044 <a href=\"https:\/\/ja.wikipedia.org\/wiki\/GNU_General_Public_License#Version_2\">GNU GPLv2<\/a>\u3002<br>\u3000\u3053\u306e\u3068\u3053\u308d\u6587\u66f8\u306f\u5c02\u3089 <a href=\"https:\/\/qiita.com\/oreo\/items\/82183bfbaac69971917f\">Markdown<\/a>\uff08\u62e1\u5f35\u5b50 .md\uff09\u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u3053\u306e\u8a18\u4e8b\u3082 .md \u3092 wordpress \u306e\u30a8\u30c7\u30a3\u30bf\u306b\u30b3\u30d4\u30da\u3057\u3066\u3044\u307e\u3059\u3002<br>\u3000\u3067\u3001\u4ed6\u306e\u65b9\u306b\u898b\u3066\u9802\u304f\u5834\u5408\u306f\u3001\u5148\u65b9\u306eWeb \u30d6\u30e9\u30a6\u30b6\u306b <a href=\"https:\/\/qiita.com\/SUZUKI_Masaya\/items\/6476dbbcb3e369640c78\">Markdown Viewer<\/a> \u3092\u30a2\u30c9\u30a4\u30f3\u3057\u3066\u8cb0\u3046\u304b\u3001html \u306b\u5909\u63db\u3057\u305f\u3082\u306e\u3092\u304a\u6e21\u3057\u3057\u3066\u3044\u307e\u3059\u3002<br>\u3000\u5f8c\u8005\u306e\u5834\u5408\u306f\u30b5\u30fc\u30c1\u30d1\u30b9\u4e0a\u306b\u914d\u7f6e\u3057\u305f\u6b21\u306e\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3067\u3069\u3053\u304b\u3089\u3067\u3082 html \u3078\u306e\u5909\u63db\u3092\u884c\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>@echo off\nsetlocal\n\nwhere pandoc &gt; nul\nif not %ERRORLEVEL% equ 0 (\n    echo pandoc not found.\n    goto :eof\n)\nif &quot;%1&quot; == &quot;&quot; (\n    echo transrate markdown to html.\n    echo   usage : %~n0 [src]\n    goto :eof\n)\nset src=%~n1.md\nif not exist %src% (\n    echo not found %src%.\n    goto :eof\n)\nset dst=%~n1.html\n\npandoc ^\n    -f markdown ^\n    -t html ^\n    --standalone ^\n    --mathjax ^\n    --template=easy_template ^\n    %src% -o %dst%\n    @REM --self-contained ^<\/code><\/pre><\/div>\n\n\n\n<p>\u3000<code><mark style=\"background-color:#b5bdbc\" class=\"has-inline-color\">--template=easy_template<\/mark><\/code> \u306f <mark style=\"background-color:#b5bdbc\" class=\"has-inline-color\"><code>%APPDATA%\/pandoc\/templates<\/code> <\/mark> \u306b\u767b\u9332\u3057\u3066\u3042\u308b <a href=\"https:\/\/github.com\/ryangrose\/easy-pandoc-templates\/blob\/master\/html\/easy_template.html\">easy_template.html<\/a> \u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u7528\u3044\u308b\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002\u3053\u308c\u304c\u7121\u304f\u3066\u3082\u652f\u969c\u306a\u304f\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u51fa\u529b\u304c\u30aa\u30b7\u30e3\u30ec\u306b\u306a\u308a\u307e\u3059\u3002<a href=\"https:\/\/github.com\/cawpea\/md2html-template-for-pandoc\/blob\/master\/md2html.html\">md2html.html<\/a> \u3092\u5f53\u3066\u308b\u3068 Github \u306e\u30b9\u30bf\u30a4\u30eb\u306b\u8fd1\u3044\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<br>\u3000<code><mark style=\"background-color:#b5bdbc\" class=\"has-inline-color\">--self-contained<\/mark><\/code> \u3092\u4ed8\u3051\u308b\u3068\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304c .html \u306b\u57cb\u3081\u8fbc\u307e\u308c\u307e\u3059\u3002\u753b\u50cf\u304c .svg \u306a\u3069\u8efd\u91cf\u306a\u3082\u306e\u3067\u3042\u308c\u3070\u30a2\u30ea\u3067\u3059\u3002<br>\u3000<code><mark style=\"background-color:#b5bdbc\" class=\"has-inline-color\">--mathjax<\/mark><\/code> \u3067 TeX \u3082\u6271\u3048\u307e\u3059\u3002\u79c1\u306b\u3068\u3063\u3066\u306f\u30de\u30b9\u30c8\u3002<br>\u3000\u3068\u3053\u308d\u3067\u3001\u96fb\u5b50\u7d0d\u54c1\u306e REPORT\/ORG \u306e\u5185\u5bb9\u7269\u304c .html \u3084 .md \u3060\u3063\u305f\u3089\u53d7\u3051\u53d6\u3063\u3066\u3082\u3089\u3048\u308b\u306e\u3060\u308d\u3046\u304b\uff1f\u3000\u7279\u5b9a\u306e\u30d9\u30f3\u30c0\u30fc\u3084\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u4f9d\u5b58\u3057\u306a\u3044\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u65b9\u304c\u5065\u5168\u306a\u3093\u3060\u3051\u3069\u306a\u3041\uff5e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u7b2c\u4e09\u5f3e\u306f\u6587\u66f8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u63db\u30c4\u30fc\u30eb pandoc \u3067\u3059\u3002\u63a5\u982d\u8f9e\u300cpan\u300d\u306f\u300c\u5168\u3066\u3001\u7dcf\u3001\u6c4e\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u5927\u8888\u88df\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5909\u63db\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f 44 \u7a2e\u985e\u3001\u5909\u63db\u5148\u306e\u305d\u308c\u306f 62 \u7a2e\u985e\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u5909\u308f\u308a\u7a2e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[36,12,35,13],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry","category-it","tag-html","tag-markdown","tag-pandoc","tag-tex"],"_links":{"self":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":9,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/352\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flumen-jp.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}