##// 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:

r8747:8d5925e8
r8804:70796c14
Show More
bloggerhtml.py
21 lines | 757 B | text/x-python | PythonLexer
from converters.html import ConverterHTML
import io
class ConverterBloggerHTML(ConverterHTML):
"""Convert a notebook to html suitable for easy pasting into Blogger.
It generates an html file that has *only* the pure HTML contents, and a
separate file with `_header` appended to the name with all header contents.
Typically, the header file only needs to be used once when setting up a
blog, as the CSS for all posts is stored in a single location in Blogger.
"""
def optional_header(self):
with io.open(self.outbase + '_header.html', 'w',
encoding=self.default_encoding) as f:
f.write('\n'.join(self.header_body()))
return []
def optional_footer(self):
return []