##// END OF EJS Templates
Improve conversion to latex of output cells...
Improve conversion to latex of output cells Improve the latex convert possibilites of pyout and display_data cells. Detailed changes: - set display_data_priority for latex output to start with 'latex' - use numbered equations - define relative figure size instead of absolute - specify image file position relative to input file position - pyout.text is only rendered if latex representation is not available - place display_data_format_latex output in equation environment - some minor code clean-up

File last commit:

r8744:867df9b7
r8804:70796c14
Show More
test.ipynb
219 lines | 23.6 KiB | text/plain | TextLexer

H1

H2

H3

H4

H5
H6

A bit of text, with important things:

  • and
  • more that are boldface, as well as verbatim.

Using markdown hyperlinks for ipython.

In [1]:
f = figure()
plot([1,2,3])
display(f)
No description has been provided for this image
No description has been provided for this image
In [2]:
# multiline input
x = 1
y = 2
In [3]:
1+2
Out[3]:
3
In [4]:
print 'hello world'
hello world

$e^{i\pi} + 1 = 0$

plain text
In [5]:
import sys
m = 'A message'
print m, 'to stdout'
print >> sys.stderr, m, 'to stderr'
m
A message to stdout
A message to stderr
Out[5]:
'A message'
In [6]:
# a traceback
1/0
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
/home/fperez/ipython/nbconvert/tests/<ipython-input-6-03412a6702b7> in <module>()
      1 # a traceback
----> 2 1/0

ZeroDivisionError: integer division or modulo by zero
In [ ]:
# This is intended to be a cell with missing prompt number, so don't execute it!