Jupyter notebook: How to \usepackage{} in for LaTeX -
i know how can \usepackage{}
latex in jupyter notebook.
not sure even best way of doing seems work. write template file ("mytemplate.tplx") in same directory ipynb notebook file ("mynotebook.ipynb"). mytemplate.tplx looks like:
((*- extends 'article.tplx' -*)) ((* block packages *)) ((( super() ))) \usepackage{amsmath} \usepackage{newtxtext,newtxmath} ((* endblock packages *))
build pdf latex file executing following:
jupyter nbconvert mynotebook.ipynb --to latex --template mytemplate.tplx pdflatex mynotebook.tex
Comments
Post a Comment