##// END OF EJS Templates
Merged from my trunk-dev:...
Merged from my trunk-dev: Lukasz Pankowski's patches: sh profile prefilter changes (allow ~/bin/foo, /bin/foo in addition to ./foo to be directly executed) allow multiple dashes in demo ---stop--- editor hook does TryNext shadow history docs Allow multiline macros in threaded shells Do not hang with dev version of PyGTK: do set_interactive(False)

File last commit:

r1248:19e3b286
r1783:1b690a90 merge
Show More
nbexample_latex.py
25 lines | 557 B | text/x-python | PythonLexer
from notebook.markup import latex
latex.document_class('article')
latex.title('This is a Python Notebook')
latex.section('A section title',label='sec:intro')
latex.text(r"""Below, we define a simple function
\begin{equation}
f: (x,y) \rightarrow x+y^2
\end{equation}""")
def f(x,y):
return x+y**2
# since the .text method passes directly to latex, all markup could be input
# in that way if so desired
latex.text(r"""
\section{Another section}
More text...
And now a picture showing our important results...""")
latex.include_graphic('foo.png')