module helpgen.pandoc_helper

Short summary

module pyquickhelper.helpgen.pandoc_helper

Helpers to call pandoc and convert documents

source on GitHub

Functions

function

truncated documentation

call_pandoc

Call pandoc.

latex2rst

convert a latex document into a rst document using pandoc

Documentation

Helpers to call pandoc and convert documents

source on GitHub

pyquickhelper.helpgen.pandoc_helper.call_pandoc(params, fLOG=<function noLOG>)[source][source]

Call pandoc.

Parameters
  • params – parameters

  • fLOG – logging function

Returns

out, err

source on GitHub

pyquickhelper.helpgen.pandoc_helper.latex2rst(input, output, encoding='utf-8', fLOG=<function noLOG>, temp_file=None)[source][source]

convert a latex document into a rst document using pandoc

Parameters
  • input – input file

  • output – output file

  • encoding – encoding

  • temp_file – temporary file

  • fLOG – logging function

Returns

see call_pandoc

If the encoding is not utf-8, the function uses temp_file to store the temporary conversion into utf-8.

source on GitHub