from __future__ import absolute_import from __future__ import print_function from pyth.plugins.plaintext.writer import PlaintextWriter import pythonDoc doc = pythonDoc.buildDoc() print(PlaintextWriter.write(doc).getvalue())
from pyth.plugins.latex.writer import LatexWriter import pythonDoc if __name__ == "__main__": doc = pythonDoc.buildDoc() print LatexWriter.write(doc).getvalue()