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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -