{"id":45987,"date":"2023-04-30T05:07:01","date_gmt":"2024-03-12T05:51:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/"},"modified":"2024-04-30T01:55:50","modified_gmt":"2024-04-29T17:55:50","slug":"45987-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/","title":{"rendered":""},"content":{"rendered":"<p>2\u5e74\u4ee5\u4e0a\u3082\u524d\u306b\u65e5\u672c\u8a9e\u306eJupyter Notebook\u3092PDF\u3068\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u5f8cnbconvert\u306a\u3069\u306e\u4ed5\u69d8\u5909\u66f4\u304c\u3042\u308a\u3001\u5f79\u306b\u7acb\u305f\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<br \/>\n\u305d\u3053\u3067\u3001\u6539\u8a02\u7248\u3092\u8a18\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>TeX\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h3>Ubuntu\u306e\u5834\u5408<\/h3>\n<p>\u4e0b\u8a18\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install <\/span>texlive-lang-japanese\r\n<span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install <\/span>texlive-xetex\r\n<span class=\"nb\">sudo <\/span>apt <span class=\"nb\">install <\/span>pandoc\r\n<\/code><\/pre>\n<h3>Mac\u306e\u5834\u5408<\/h3>\n<p>MacTex\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u3082\u3063\u3068\u3082\u7c21\u5358\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u79c1\u306e\u5834\u5408\u306b\u306fMacPorts\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3001ghostscript\u306fMacPorts\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4<\/h2>\n<p>nbconvert\u306b\u4ed8\u5c5e\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u306f\u65e5\u672c\u8a9e\u306e\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u4fee\u6b63\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u914d\u7f6e\u5148<\/h3>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u524d\u306fnbconvert\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u73fe\u5728\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u914d\u7f6e\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5909\u308f\u308b\u3088\u3046\u3067\u3059\u3002jupyter &#8211;path\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001jupyter\u304c\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3089\u306e\u5834\u6240\u3092\u63a2\u3057\u3066\u307f\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># jupiter --path \u306e\u5b9f\u884c\u4f8b<\/span>\r\n<span class=\"nv\">$ <\/span>jupyter <span class=\"nt\">--path<\/span>\r\nconfig:\r\n    \/home\/basicuser\/.jupyter\r\n    \/usr\/local\/etc\/jupyter\r\n    \/etc\/jupyter\r\ndata:\r\n    \/home\/basicuser\/.local\/share\/jupyter\r\n    \/usr\/local\/share\/jupyter\r\n    \/usr\/share\/jupyter\r\nruntime:\r\n    \/home\/basicuser\/.local\/share\/jupyter\/runtime\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306edata:\u4ee5\u4e0b\u306b\u5217\u6319\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3044\u305a\u308c\u304b\u304c\u914d\u7f6e\u5148\u3067\u3059\u3002<br \/>\n\u3053\u306e\u4f8b\u3067\u306f\u3001<br \/>\n\/home\/basicuser\/.local\/share\/jupyter\/nbconvert\/templates\/latex<br \/>\n\u306bTeX\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\uff08\u62e1\u5f35\u5b50.tex.j2\uff09\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<h3>\u5909\u66f4\u5185\u5bb9<\/h3>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30ebindex.tex.j2\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u3001<\/p>\n<pre class=\"post-pre\"><code>((=- Default to the notebook output style -=))\r\n((*- if not cell<span class=\"p\">_<\/span>style is defined -*))\r\n    ((* set cell<span class=\"p\">_<\/span>style = 'style<span class=\"p\">_<\/span>jupyter.tex.j2' *))\r\n((*- endif -*))\r\n\r\n((=- Inherit from the specified cell style. -=))\r\n((* extends cell<span class=\"p\">_<\/span>style *))\r\n\r\n\r\n<span class=\"c\">%===============================================================================<\/span>\r\n<span class=\"c\">% Latex Article<\/span>\r\n<span class=\"c\">%===============================================================================<\/span>\r\n\r\n((*- block docclass -*))\r\n<span class=\"k\">\\documentclass<\/span><span class=\"na\">[11pt]<\/span><span class=\"p\">{<\/span>article<span class=\"p\">}<\/span>\r\n((*- endblock docclass -*))\r\n<\/code><\/pre>\n<p>\u304b\u3089\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>((=- Default to the notebook output style -=))\r\n((*- if not cell<span class=\"p\">_<\/span>style is defined -*))\r\n    ((* set cell<span class=\"p\">_<\/span>style = 'style<span class=\"p\">_<\/span>jupyter.tex.j2' *))\r\n((*- endif -*))\r\n\r\n((=- Inherit from the specified cell style. -=))\r\n((* extends cell<span class=\"p\">_<\/span>style *))\r\n\r\n\r\n<span class=\"c\">%===============================================================================<\/span>\r\n<span class=\"c\">% Latex Article<\/span>\r\n<span class=\"c\">%===============================================================================<\/span>\r\n\r\n((*- block docclass -*))\r\n<span class=\"k\">\\documentclass<\/span><span class=\"na\">[xelatex,ja=standard]<\/span><span class=\"p\">{<\/span>bxjsarticle<span class=\"p\">}<\/span>\r\n((*- endblock docclass -*))\r\n<\/code><\/pre>\n<h2>\u6ce8\u610f\u3059\u308b\u3053\u3068<\/h2>\n<p>\u306a\u304a\u3001venv\u306a\u3069\u306e\u4eee\u60f3\u74b0\u5883\u306e\u5834\u5408\u306b\u306f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3082\u4eee\u60f3\u74b0\u5883\u3054\u3068\u306b\u7570\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070venv\u306e\u5834\u5408\u3001<br \/>\nvenv\/share\/jupyter\/nbconvert\/templates\/latex<br \/>\n\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\u3001jupyter_nbconvert_config.json\u3067\u6307\u5b9a\u53ef\u80fd\u3067\u3059\u3002\u4e0a\u8a18\u306ejupyter &#8211;path\u306econfig:\u3067\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u6a19\u6e96\u7684\u306a\u5834\u6240\u306b\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<\/h2>\n<p>Jupyter Notebook \u3092PDF\u3067\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\uff08\u65e5\u672c\u8a9e\u5bfe\u5fdc\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2\u5e74\u4ee5\u4e0a\u3082\u524d\u306b\u65e5\u672c\u8a9e\u306eJupyter Notebook\u3092PDF\u3068\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45987","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"2\u5e74\u4ee5\u4e0a\u3082\u524d\u306b\u65e5\u672c\u8a9e\u306eJupyter Notebook\u3092PDF\u3068\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-12T05:51:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T17:55:50+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-03-12T05:51:56+00:00\",\"dateModified\":\"2024-04-29T17:55:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/","og_locale":"zh_CN","og_type":"article","og_description":"2\u5e74\u4ee5\u4e0a\u3082\u524d\u306b\u65e5\u672c\u8a9e\u306eJupyter Notebook\u3092PDF\u3068\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-12T05:51:56+00:00","article_modified_time":"2024-04-29T17:55:50+00:00","author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-03-12T05:51:56+00:00","dateModified":"2024-04-29T17:55:50+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45987-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45987"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45987\/revisions"}],"predecessor-version":[{"id":88978,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45987\/revisions\/88978"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}