Esempio n. 1
0
def tex2html_does_typography():
    """The tex2html util handles basic typography"""
    same(tex2html(r'\emph{coi}'), '<em>coi</em>')
    same(tex2html(r'\textbf{coi}'), '<strong>coi</strong>')
Esempio n. 2
0
def tex2html_does_typography():
    """The tex2html util handles basic typography"""
    same(tex2html(r'\emph{coi}'), '<em>coi</em>')
    same(tex2html(r'\textbf{coi}'), '<strong>coi</strong>')
Esempio n. 3
0
def tex2html_does_math():
    """The tex2html util handles basic math"""
    same(tex2html('$x_1$'), 'x<sub>1</sub>')
    same(tex2html('$10^2$'), '10<sup>2</sup>')
    same(tex2html('$1*10$'), u'1×10')
Esempio n. 4
0
def tex2html_does_math():
    """The tex2html util handles basic math"""
    same(tex2html('$x_1$'), 'x<sub>1</sub>')
    same(tex2html('$10^2$'), '10<sup>2</sup>')
    same(tex2html('$1*10$'), u'1×10')