{"id":8646,"date":"2025-08-25T13:36:55","date_gmt":"2025-08-25T04:36:55","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=8646"},"modified":"2025-08-25T13:36:55","modified_gmt":"2025-08-25T04:36:55","slug":"vscode-markdown2pdf-8646","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/vscode-markdown2pdf-8646\/","title":{"rendered":"VS Code\u3067Markdown\u8a18\u6cd5\u3092PDF\u306b\u5909\u63db\u30fb\u6574\u5f62\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>VS Code\uff08Visual Studio Code\uff09\u306e\u62e1\u5f35\u6a5f\u80fd\u300cMarkdown PDF\u300d\u3092\u4f7f\u3048\u3070\u3001Markdown\u30d5\u30a1\u30a4\u30eb\u3092PDF\u306b\u7c21\u5358\u306b\u5909\u63db\u3067\u304d\u3001CSS\u3092\u4f7f\u3063\u305f\u898b\u305f\u76ee\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3082\u53ef\u80fd\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304b\u3089\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u307e\u3067\u3001\u5305\u62ec\u7684\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n<!-- \u2605\u76ee\u6b21\u30ea\u30b9\u30c8 -->\n<nav class=\"toc-container mt-2r\">\n\t<ul class=\"toc-list\" data-toc-id=\"js-tocBWGD\"><\/ul>\n<\/nav>\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">\u74b0\u5883\u69cb\u7bc9<\/h2>\n\n<h3 class=\"fz-lg\">1. \u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<h4 class=\"fz-sl\">VS Code\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p><cite><a href=\"https:\/\/code.visualstudio.com\/\" class=\"link\" target=\"_blank\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a><\/cite> \u304b\u3089\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h4 class=\"fz-sl\">Markdown PDF\u62e1\u5f35\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<ol style=\"list-style-type:decimal;\">\n\t<li>VS Code\u3092\u8d77\u52d5<\/li>\n\t<li>\u5de6\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u62e1\u5f35\u6a5f\u80fd\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\uff08\u307e\u305f\u306fCtrl+Shift+X\uff09<\/li>\n\t<li>\u300cMarkdown PDF\u300d\u3092\u691c\u7d22<\/li>\n\t<li>\u62e1\u5f35\u6a5f\u80fd\u300cMarkdown PDF (yzane)\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n\n\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n\n<h3 class=\"fz-lg\">PDF\u3078\u306e\u5909\u63db\u65b9\u6cd5<\/h3>\n<ol style=\"list-style-type:decimal;\">\n\t<li><code>.md<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/li>\n\t<li>\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u53f3\u30af\u30ea\u30c3\u30af\n\t\t<picture class=\"bd-bounds my-0.5r\"><img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/SS-20260810-115913.jpg?ver=20261027193313\" alt=\"\" width=\"820\" height=\"641\" class=\"alignnone size-full wp-image-13994\" \/><\/picture>\n\t<\/li>\n\t<li><b class=\"fw-600\">Markdown PDF: Export (pdf)<\/b> \u3092\u9078\u629e<\/li>\n\t<li>\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b<code>.pdf<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u308b\n\t\t<picture class=\"bd-bounds my-0.5r\"><img decoding=\"async\" src=\"https:\/\/code-plus.jp\/gp\/wp-content\/uploads\/SS-20260810-120253.jpg?ver=20261027193313\" alt=\"\" width=\"648\" height=\"791\" class=\"alignnone size-full wp-image-13995\" \/><\/picture>\n\t<\/li>\n<\/ol>\n\n<h3 class=\"fz-lg\">\u4ed6\u306e\u5f62\u5f0f\u3078\u306e\u5909\u63db<\/h3>\n<p>Markdown PDF\u306f\u4ee5\u4e0b\u306e\u5f62\u5f0f\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\uff1a<\/p>\n<ul style=\"list-style-type:bullet;\">\n\t<li>HTML<\/li>\n\t<li>PNG<\/li>\n\t<li>JPEG<\/li>\n<\/ul>\n<p>\u53f3\u30af\u30ea\u30c3\u30af\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u5404\u5f62\u5f0f\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">CSS\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/h2>\n\n<h3 class=\"fz-lg\">1. CSS\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n<p><code>markdown-pdf.css<\/code>\u3092\u4f5c\u6210\uff1a<\/p>\n\n<cite><a class=\"link\" href=\"https:\/\/gist.github.com\/sarap422\/03d76cfbad7fddd7c773b80b368ec463\" target=\"_blank\">\n\t\thttps:\/\/gist.github.com\/sarap422\/03d76cfbad7fddd7c773b80b368ec463\n\t<\/a><\/cite>\n\n<pre><code class=\"language-css\">\/**\n* \u25bcCSS: markdown-pdf.css\n* \uff08Markdown \u2192 PDF\u7528\uff09\n***************************************\/\n\t\u2307\n\t\u2307\n\/* list\n=============================\u0f1a\u0f36\u22b0\u27e1\u22b1\u0f36\u0f3a*\/\nbody ul,\nbody ol {\n\t\/* padding  \u4e0a  \u53f3  \u4e0b  \u5de6 *\/\n\tpadding: 0.5rem 0rem 0.5rem 2rem;\n}\n\nbody ol ol,\nbody ul ol {\n\tlist-style-type: lower-roman;\n}\n\nbody ul ul ol,\nbody ul ol ol,\nbody ol ul ol,\nbody ol ol ol {\n\tlist-style-type: lower-alpha;\n}\n\nbody li {\n\tmargin-top: .125em;\n\tmargin-bottom: .125em;\n}\n\n\n\/* table\n=============================\u0f1a\u0f36\u22b0\u27e1\u22b1\u0f36\u0f3a*\/\n\/* table\uff08collapse\uff09 *\/\nbody table {\n\twidth: 100%;\n\tmax-width: 100%;\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n\tbackground: var(--c-base, hsl(223, 6%, 100%));\n\tborder-top: 1px solid var(--c-base-300, hsl(223, 6%, 74%));\n\tborder-left: 1px solid var(--c-base-300, hsl(223, 6%, 74%));\n\tfont-variant: tabular-nums;\n}\n\nbody table:after {\n\tcontent: \"\";\n\tdisplay: block;\n\tclear: both\n}\n\n\/* inline-block \u306e\u4f59\u767d\u524a\u9664 *\/\nbody table:not(.token),\nbody table:not(.token) thead,\nbody table:not(.token) tbody,\nbody table:not(.token) tfoot,\nbody table:not(.token) tr {\n\tfont-size: 0;\n\tletter-spacing: 0;\n\twidth: 100%;\n\tmax-width: 100%;\n}\n\n\/* font-size\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09 *\/\nbody table caption,\nbody table th,\nbody table td {\n\tline-height: clamp(1.44em, calc(1.44em + ((1vw - 0.225em) * 0.55)), 1.66em);\n\tfont-size: clamp(0.8125rem, calc(0.8125rem + ((1vw - 0.225rem) * 0.3125)), 0.9375rem);\n}\n\nbody table th,\nbody table td {\n\tborder-bottom: 1px solid var(--c-base-300, hsl(223, 6%, 74%));\n\tborder-right: 1px solid var(--c-base-300, hsl(223, 6%, 74%));\n}\n\nbody table th {\n\tpadding: 0.5pc 1rem 0.5pc 1rem;\n\tbackground: var(--c-secondary-30, hsl(223, 47%, 97%))\n}\n\nbody table td {\n\tpadding: 0.5pc 1rem 0.5pc 1rem\n}\n\nbody table thead th,\nbody table thead td {\n\tbackground: var(--c-primary, hsl(223, 50%, 33%));\n\tcolor: #FFF\n}\n\n\/* img\uff08border\u3092\u4ed8\u3051\u308b\uff09 *\/\nbody img {\n\tborder: 2px solid var(--c-base-300, hsl(223, 6%, 74%));\n}\n\n\n\/* \u2740Headings\uff08h1, h2, h3, h4, h5, h6\uff09\n=============================\u0f1a\u0f36\u22b0\u27e1\u22b1\u0f36\u0f3a*\/\nbody h1,\nbody h2,\nbody h3,\nbody h4,\nbody h5,\nbody h6 {\n\tposition: relative;\n\tdisplay: block;\n\tz-index: 10;\n\twidth: 100%;\n\tmax-width: 100%;\n\tmargin-bottom: 0.5rem;\n}\n\n\/* Headings\uff08\u6700\u521d\u4ee5\u5916\uff09 *\/\nbody h2:nth-child(n+2) {\n\tmargin-top: 2em;\n}\n\nbody h3:nth-child(n+2) {\n\tmargin-top: 1.17em;\n}\n\nbody h4:nth-child(n+2) {\n\tmargin-top: 1em;\n}\n\nbody h5:nth-child(n+2) {\n\tmargin-top: 0.83em;\n}\n\nbody h6:nth-child(n+2) {\n\tmargin-top: 0.67em;\n}\n\n\/* \u30bf\u30a4\u30c8\u30eb *\/\nbody h1 {\n\tposition: relative;\n\tdisplay: flow-root;\n\t\/* margin: \u4e0a  \u6a2a  \u4e0b *\/\n\tmargin: 0.5rem auto 2.5rem;\n\tpadding: 0.5rem;\n\tline-height: 1.44;\n\tletter-spacing: clamp(0.03em, calc(0.03em + ((1vw - 0.225em) * 0.15)), 0.09em);\n\tfont-size: clamp(1.025rem, calc(1.025rem + ((1vw - 0.225rem) * 0.7188)), 1.3125rem);\n\tfont-weight: 500;\n\ttext-align: center;\n\tborder-color: var(--c-secondary-30, hsl(223, 24%, 47%));\n}\n\nbody h1[class*=\"ta-center\"] {\n\ttext-indent: clamp(0.05em, calc(0.05em + ((1vw - 0.225em) * 0.25)), 0.15em);\n}\n\nbody h1:before,\nbody h1:after {\n\tposition: absolute;\n\tz-index: 20;\n\tpointer-events: none;\n\twidth: 100%;\n\tmargin: auto;\n\tcontent: \"\";\n}\n\nbody h1:before {\n\ttop: 0px;\n\tright: 0px;\n\tleft: 0px;\n\tborder-top: 1px solid;\n\tborder-color: inherit;\n}\n\nbody h1:after {\n\tright: 0px;\n\tbottom: 0px;\n\tleft: 0px;\n\tborder-bottom: 1px solid;\n\tborder-color: inherit;\n}\n\n\/* h2\u301ch6 *\/\nbody h2 {\n\tline-height: 1.33;\n\tletter-spacing: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n\tfont-size: clamp(1.05rem, calc(1.05rem + ((1vw - 0.225rem) * 1.125)), 1.5rem);\n\tfont-weight: 500;\n\t\/* padding  \u4e0a  \u6a2a  \u4e0b *\/\n\tpadding: 0.125em 0.25rem 0em;\n\tbackground: var(--c-primary-100, hsl(223, 50%, 93%));\n\tborder-left: 0.5rem solid var(--c-primary, #2a417e);\n}\n\nbody h2 {\n\tline-height: 1.33;\n\tletter-spacing: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n\tfont-size: clamp(1.05rem, calc(1.05rem + ((1vw - 0.225rem) * 1.125)), 1.5rem);\n\tfont-weight: 500;\n\t\/* padding  \u4e0a  \u6a2a  \u4e0b *\/\n\tpadding: 0.125em 0.25rem 0em;\n\tbackground: var(--c-primary-100, hsl(223, 50%, 93%));\n\tborder-left: 0.5rem solid var(--c-primary, #2a417e);\n}\n\nbody h2[class*=\"ta-center\"] {\n\ttext-indent: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n}\n\nbody h3 {\n\tline-height: 1.33;\n\tletter-spacing: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n\tfont-size: clamp(1rem, calc(1rem + ((1vw - 0.225rem) * 0.4688)), 1.1875rem);\n\tfont-weight: 500;\n\tborder-bottom: 1px solid var(--c-base-300, hsl(223, 6%, 74%));\n\tcolor: var(--c-primary, #2a417e);\n}\n\nbody h3[class*=\"ta-center\"] {\n\ttext-indent: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n}\n\nbody h4 {\n\tline-height: 1.33;\n\tletter-spacing: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n\tfont-size: clamp(0.9563rem, calc(0.9563rem + ((1vw - 0.225rem) * 0.2656)), 1.0625rem);\n\tfont-weight: 500;\n}\n\nbody h4[class*=\"ta-center\"] {\n\ttext-indent: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n}\n\nbody h5 {\n\tline-height: 1.33;\n\tletter-spacing: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n\tfont-size: clamp(0.8750rem, calc(0.8750rem + ((1vw - 0.225rem) * 0.1563)), 0.9375rem);\n\tfont-weight: 500;\n}\n\nbody h5[class*=\"ta-center\"] {\n\ttext-indent: clamp(0.01em, calc(0.01em + ((1vw - 0.225em) * 0.05)), 0.03em);\n}\n\nbody h6 {\n\tline-height: 1.33;\n\tletter-spacing: 0;\n\tfont-size: clamp(0.7500rem, calc(0.7500rem + ((1vw - 0.225rem) * 0.1563)), 0.8125rem);\n\tfont-weight: 500;\n}\n\nbody h6[class*=\"ta-center\"] {\n\ttext-indent: 0;\n}\n\n\/* \u0f3b.separator\uff08\u533a\u5207\u308a\u7dda\uff09\u0f3a *\/\nbody hr {\n\tdisplay: block;\n\tposition: relative;\n\twidth: 100%;\n\tclear: both;\n\tborder: 0;\n\tborder-color: var(--c-base-300, hsl(223, 6%, 74%));\n\tbackground-color: var(--c-base-300, hsl(223, 6%, 74%));\n\theight: 4px;\n\t-webkit-mask: repeat-x 50% 50%;\n\t-webkit-mask-image: url('data:image\/svg+xml;charset=utf8,<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 10\"><circle cx=\"5\" cy=\"5\" r=\"5\" \/><\/svg>');\n\tmask: repeat-x 50% 50%;\n\tmask-image: url('data:image\/svg+xml;charset=utf8,<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 20 10\"><circle cx=\"5\" cy=\"5\" r=\"5\" \/><\/svg>');\n\tmargin-top: 3rem;\n}\n<\/code><\/pre>\n\n\n<h3 class=\"fz-lg\">2. \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08settings.json\uff09\u3067\u8a2d\u5b9a<\/h3>\n<p>VS Code\u306e\u8a2d\u5b9a\u304b\u3089\u76f4\u63a5\u8a2d\u5b9a\u3059\u308b\u5834\u5408\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;markdown-pdf.displayHeaderFooter&quot;: false,\n  &quot;markdown-pdf.includeDefaultStyles&quot;: false,\n  &quot;markdown-pdf.styles&quot;: [\n    &quot;\/Users\/[\u30e6\u30fc\u30b6\u30fc\u540d]\/Dropbox\/VSCode\/css\/style-color-palette1.min.css&quot;, \/* \u2190 \u8272\u8a2d\u5b9a\u3092\u7f6e\u3044\u3066\u304a\u304f\u3068\u5909\u66f4\u3057\u3084\u3059\u3044 *\/\n    &quot;\/Users\/[\u30e6\u30fc\u30b6\u30fc\u540d]\/Dropbox\/VSCode\/css\/style-color-palette2.min.css&quot;,\n    &quot;\/Users\/[\u30e6\u30fc\u30b6\u30fc\u540d]\/Dropbox\/VSCode\/css\/markdown-pdf.css&quot;,\n  ],\n  &quot;markdown-pdf.type&quot;: [&quot;pdf&quot;],\n  &quot;markdown-pdf.outputDirectory&quot;: &quot;.\/output&quot;,\n  &quot;markdown-pdf.convertOnSave&quot;: false\n}\n<\/code><\/pre>\n\n\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">\u6539\u30da\u30fc\u30b8\u306e\u8a2d\u5b9a<\/h2>\n\n<h3 class=\"fz-lg\">\u57fa\u672c\u7684\u306a\u6539\u30da\u30fc\u30b8<\/h3>\n<p>\u4efb\u610f\u306e\u4f4d\u7f6e\u3067\u6539\u30da\u30fc\u30b8\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306eHTML\u30bf\u30b0\u3092\u633f\u5165\uff1a<\/p>\n<pre><code class=\"language-markdown\"># \u7b2c1\u7ae0\n\u5185\u5bb9...\n\n&lt;div style=&quot;page-break-after:always&quot;&gt;&lt;\/div&gt;\n\n# \u7b2c2\u7ae0\n\u65b0\u3057\u3044\u30da\u30fc\u30b8\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\n<\/code><\/pre>\n\n<h3 class=\"fz-lg\">\u6539\u30da\u30fc\u30b8\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3<\/h3>\n<pre><code class=\"language-html\">&lt;!-- \u30da\u30fc\u30b8\u306e\u524d\u3067\u6539\u30da\u30fc\u30b8 --&gt;\n&lt;div style=&quot;page-break-before:always&quot;&gt;&lt;\/div&gt;\n\n&lt;!-- \u30da\u30fc\u30b8\u306e\u5f8c\u3067\u6539\u30da\u30fc\u30b8 --&gt;\n&lt;div style=&quot;page-break-after:always&quot;&gt;&lt;\/div&gt;\n\n&lt;!-- \u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6539\u30da\u30fc\u30b8\u3092\u907f\u3051\u308b --&gt;\n&lt;div style=&quot;page-break-inside:avoid&quot;&gt;&lt;\/div&gt;\n<\/code><\/pre>\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">\u30d8\u30c3\u30c0\u30fc\u30fb\u30d5\u30c3\u30bf\u30fc\u306e\u8a2d\u5b9a<\/h2>\n\n<h3 class=\"fz-lg\">\u30da\u30fc\u30b8\u756a\u53f7\u306e\u8868\u793a<\/h3>\n<ol style=\"list-style-type:decimal;\">\n\t<li>VS Code\u306e\u8a2d\u5b9a\u3092\u958b\u304f\uff08Ctrl + ,\uff09<\/li>\n\t<li>\u691c\u7d22\u6b04\u306b\u300cfooter\u300d\u3068\u5165\u529b<\/li>\n\t<li><b class=\"fw-600\">Markdown-pdf: Display Header Footer<\/b> \u306b\u30c1\u30a7\u30c3\u30af<\/li>\n<\/ol>\n\n<h3 class=\"fz-lg\">\u30ab\u30b9\u30bf\u30e0\u30d8\u30c3\u30c0\u30fc\u30fb\u30d5\u30c3\u30bf\u30fc<\/h3>\n<p>settings.json\u3067\u8a73\u7d30\u8a2d\u5b9a\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;markdown-pdf.displayHeaderFooter&quot;: true,\n  &quot;markdown-pdf.headerTemplate&quot;: &quot;&lt;div style=&#39;font-size: 9px; margin-left: 1cm;&#39;&gt;My Document&lt;\/div&gt;&quot;,\n  &quot;markdown-pdf.footerTemplate&quot;: &quot;&lt;div style=&#39;font-size: 9px; margin: 0 auto;&#39;&gt;&lt;span class=&#39;pageNumber&#39;&gt;&lt;\/span&gt; \/ &lt;span class=&#39;totalPages&#39;&gt;&lt;\/span&gt;&lt;\/div&gt;&quot;\n}\n<\/code><\/pre>\n\n\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">\u4fbf\u5229\u306aTips\u96c6<\/h2>\n\n<h3 class=\"fz-lg\">1. Markdown\u3067\u76ee\u6b21\u3092\u4f5c\u6210<\/h3>\n<pre><code class=\"language-markdown\">## \u76ee\u6b21\n- [\u306f\u3058\u3081\u306b](#\u306f\u3058\u3081\u306b)\n- [\u7b2c1\u7ae0](#\u7b2c1\u7ae0)\n  - [1.1 \u6982\u8981](#11-\u6982\u8981)\n  - [1.2 \u8a73\u7d30](#12-\u8a73\u7d30)\n- [\u7b2c2\u7ae0](#\u7b2c2\u7ae0)\n<\/code><\/pre>\n\n<h3 class=\"fz-lg\">2. \u5370\u5237\u7528\u30b9\u30bf\u30a4\u30eb\u306e\u6700\u9069\u5316<\/h3>\n<pre><code class=\"language-css\">@media print {\n  body {\n    font-size: 11pt;\n    line-height: 1.5;\n  }\n  \n  h1 { font-size: 18pt; }\n  h2 { font-size: 14pt; }\n  h3 { font-size: 12pt; }\n  \n  \/* URL\u3092\u5370\u5237\u6642\u306b\u8868\u793a *\/\n  a[href]:after {\n    content: &quot; (&quot; attr(href) &quot;)&quot;;\n    font-size: 9pt;\n    color: #666;\n  }\n  \n  \/* \u6539\u30da\u30fc\u30b8\u306e\u5236\u5fa1 *\/\n  h1, h2 {\n    page-break-after: avoid;\n  }\n  \n  table, figure {\n    page-break-inside: avoid;\n  }\n}\n<\/code><\/pre>\n\n<h3 class=\"fz-lg\">3. \u8907\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u62ec\u5909\u63db<\/h3>\n<p>VS Code\u306e\u30bf\u30b9\u30af\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u5909\u63db\uff1a<\/p>\n<p><code>.vscode\/tasks.json<\/code>\u3092\u4f5c\u6210\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;version&quot;: &quot;2.0.0&quot;,\n  &quot;tasks&quot;: [\n    {\n      &quot;label&quot;: &quot;Convert all MD to PDF&quot;,\n      &quot;type&quot;: &quot;shell&quot;,\n      &quot;command&quot;: &quot;echo &#39;Batch conversion started&#39;&quot;,\n      &quot;problemMatcher&quot;: []\n    }\n  ]\n}\n<\/code><\/pre>\n\n<h3 class=\"fz-lg\">4. Mermaid\u30c0\u30a4\u30a2\u30b0\u30e9\u30e0\u306e\u6d3b\u7528<\/h3>\n<p>\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3084\u30b7\u30fc\u30b1\u30f3\u30b9\u56f3\u3092\u542b\u3081\u308b\uff1a<\/p>\n<pre><code class=\"language-markdown\">```mermaid\ngraph TD\n    A[\u958b\u59cb] --&gt; B{\u6761\u4ef6\u5206\u5c90}\n    B --&gt;|Yes| C[\u51e6\u74061]\n    B --&gt;|No| D[\u51e6\u74062]\n    C --&gt; E[\u7d42\u4e86]\n    D --&gt; E\n<\/code><\/pre>\n<pre><code class=\"language-\">\n### 7. \u6570\u5f0f\u306e\u8868\u793a\uff08KaTeX\uff09\n\n\u6570\u5f0f\u3092\u542b\u3081\u308b\u5834\u5408\uff1a\n\n```markdown\n\u30a4\u30f3\u30e9\u30a4\u30f3\u6570\u5f0f: $E = mc^2$\n\n\u30d6\u30ed\u30c3\u30af\u6570\u5f0f\uff1a\n$$\n\\frac{d}{dx}\\left( \\int_{a}^{x} f(t)\\,dt \\right) = f(x)\n$$\n<\/code><\/pre>\n\n\n\n<hr class=\"separator mx-auto mt-3r\" \/>\n\n<h2 class=\"fz-xl\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h2>\n\n<h3 class=\"fz-lg\">\u3088\u304f\u3042\u308b\u554f\u984c\u3068\u89e3\u6c7a\u7b56<\/h3>\n<h4 class=\"fz-sl\">1. \u65e5\u672c\u8a9e\u304c\u6587\u5b57\u5316\u3051\u3059\u308b<\/h4>\n<ul style=\"list-style-type:bullet;\">\n\t<li><b class=\"fw-600\">\u89e3\u6c7a<\/b>: settings.json\u306b\u8ffd\u52a0<\/li>\n<\/ul>\n<pre><code class=\"language-json\">{\n  &quot;markdown-pdf.executablePath&quot;: &quot;\/path\/to\/chromium&quot;\n}\n<\/code><\/pre>\n<h4 class=\"fz-sl\">2. \u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u306a\u3044<\/h4>\n<ul style=\"list-style-type:bullet;\">\n\t<li><b class=\"fw-600\">\u539f\u56e0<\/b>: \u76f8\u5bfe\u30d1\u30b9\u306e\u554f\u984c<\/li>\n\t<li><b class=\"fw-600\">\u89e3\u6c7a<\/b>: \u753b\u50cf\u30d1\u30b9\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u7d76\u5bfe\u30d1\u30b9\u3092\u4f7f\u7528<\/li>\n<\/ul>\n<h4 class=\"fz-sl\">3. \u6539\u30da\u30fc\u30b8\u304c\u52b9\u304b\u306a\u3044<\/h4>\n<ul style=\"list-style-type:bullet;\">\n\t<li><b class=\"fw-600\">\u539f\u56e0<\/b>: \u30d7\u30ec\u30d3\u30e5\u30fc\u3067\u306f\u6539\u30da\u30fc\u30b8\u306f\u8868\u793a\u3055\u308c\u306a\u3044<\/li>\n\t<li><b class=\"fw-600\">\u89e3\u6c7a<\/b>: PDF\u51fa\u529b\u5f8c\u306b\u78ba\u8a8d<\/li>\n<\/ul>\n\n<p class=\"mt-1r\">VS Code\u3068Markdown PDF\u3092\u4f7f\u3048\u3070\u3001\u30c7\u30b6\u30a4\u30f3\u306e\u7d71\u4e00\u3055\u308c\u305fPDF\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u52b9\u7387\u7684\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002CSS\u306b\u3088\u308b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u3001\u30d6\u30e9\u30f3\u30c9\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306b\u6cbf\u3063\u305f\u30c7\u30b6\u30a4\u30f3\u3082\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u3092\u57fa\u672c\u3068\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4f5c\u6210\u74b0\u5883\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"VS Code\uff08Visual Studio Code\uff09\u306e\u62e1\u5f35\u6a5f\u80fd\u300cMarkdown PDF\u300d\u3092\u4f7f\u3048\u3070\u3001Markdown\u30d5\u30a1\u30a4\u30eb\u3092PDF\u306b\u7c21\u5358\u306b\u5909\u63db\u3067\u304d\u3001CSS\u3092\u4f7f\u3063\u305f\u898b\u305f\u76ee\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3082\u53ef\u80fd\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30c3\u30c8\u30a2\u30c3[...]","protected":false},"author":1,"featured_media":13994,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[398,397,399,396,279,253,81,94],"group":[],"pg":[],"class_list":["post-8646","post","type-post","status-publish","format-standard","has-post-thumbnail","category-textedit","tag-vs-code","tag-397","tag-399","tag-396","tag-279","tag-pdf","tag-css","tag-markdown"],"acf":[],"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=8646"}],"version-history":[{"count":0,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8646\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/13994"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=8646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=8646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=8646"},{"taxonomy":"group","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/group?post=8646"},{"taxonomy":"pg","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/pg?post=8646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}