Functions | Variables
wikidot::tex2png Namespace Reference

Functions

def from_html
def from_tex

Variables

 tex_file = \
tuple tex_file_template = Template(tex_file)
tuple tex_math_re = re.compile(r"<span class=\"math-inline\">(.*?)</span>")

Function Documentation

def wikidot.tex2png.from_html (   source_html_file,
  output_basename 
)
Given an HTML file, convert all LaTeX codes enclosed between <span class="math-inline"> tags.

Inputs:
    source_html_file    Path to the HTML file
    output_basename     Basename for the output files, without any extension.
                        Corresponding .html and .png files will be generated.

Output:
    No output.

Definition at line 73 of file tex2png.py.

def wikidot.tex2png.from_tex (   tex_code,
  filename,
  density = 100 
)
Given a LaTeX string, generates a PNG file at a given density.
Temporary files are generated in the current folder, prefixed by filename, 
then erased.

Inputs:
    tex_code:       String with a valid LaTeX code (ex: $a_i = b_i$)
    filename        Filename, without the extension. Can be located in another directory
    density         (Optional) Output density, by default at 100

Output:
    No output.

Definition at line 40 of file tex2png.py.


Variable Documentation

Definition at line 28 of file tex2png.py.

Definition at line 37 of file tex2png.py.

tuple wikidot::tex2png::tex_math_re = re.compile(r"<span class=\"math-inline\">(.*?)</span>")

Definition at line 38 of file tex2png.py.



aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:40