1
from notebook.markup import latex
3
latex.document_class('article')
4
latex.title('This is a Python Notebook')
6
latex.section('A section title',label='sec:intro')
8
latex.text(r"""Below, we define a simple function
10
f: (x,y) \rightarrow x+y^2
16
# since the .text method passes directly to latex, all markup could be input
17
# in that way if so desired
19
\section{Another section}
23
And now a picture showing our important results...""")
25
latex.include_graphic('foo.png')