Python Documentation

class json2latex.python2latex.python2latex(name, obj)[source]

A class for converting a nested Python structure into a form accessible using LaTeX.

Parameters:
  • name (str) – The name of the LaTeX variable to save the data to.
  • obj (dict or list) – The Python object to make accessible in LaTeX.
dump()[source]

Get the string of LaTeX commands.

The returned string is a set of LaTeX commands which can be used to access the values of the object provided when initializing the class.

save(fp)[source]

Write the LaTeX commands to a filelike object.

The string writen includes a set of LaTeX commands which can be used to access the values of the object provided when initializing the class.