前提・実現したいこと
jupyter notebookの機能、nbconvertで日本語のipynbファイルをpdfに変換したい。
発生しているエラーメッセージ
python
1This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX) (preloaded format=xelatex) 2 restricted \write18 enabled. 3entering extended mode 4! Undefined control sequence. 5<*> .\notebook 6 .tex 7? 8! Emergency stop. 9<*> .\notebook 10 .tex 11No pages of output. 12Transcript written on ?. 13
試したこと
①jupyterのinstallし直し
②デフォルトのtemplateであるarticle.tplxを編集しdocumentclassを編集したjsarticle.ptlxを作成し同じtemplatesに保存
③再起動後pdf変換を試みるも失敗
作成したtemplateコード
tplx
1 2% Default to the notebook output style 3((* if not cell_style is defined *)) 4 ((* set cell_style = 'style_ipython.tplx' *)) 5((* endif *)) 6 7% Inherit from the specified cell style. 8((* extends cell_style *)) 9 10 11%=============================================================================== 12% Latex Article 13%=============================================================================== 14 15((* block docclass *)) 16\documentclass[a4j, dvipdfmx]{jsarticle} 17((* endblock docclass *)) 18((* block predoc *)) 19((* block maketitle *))\maketitle((* endblock maketitle *)) 20((* block tableofcontents *))\tableofcontents\newpage((* endblock tableofcontents *)) 21((* endblock predoc *))
なお、これはnbconvert\templates\latex\に存在
あなたの回答
tips
プレビュー