python - pyreport LaTeX formulae not working -
i'm trying create html report using pyreport
, works single point, latex formulae not generated.
here input file use testing:
#$ \latex : $c = 2\cdot(a+b)$
than run pyreport -l -t html --verbose file.py
, report empty. when add other comments input file, or python code, displayed within report. here output pyreport
:
running python script /tmp/file.py:
outputing report /tmp/file.html ran script in 0.13s
i'm using ubuntu , have texlive
package installed. why isn't formula added report?
i think have find problem. problem rst tools convert in html.
in pyreport, when choose math mode, program sentence in bock
.. raw:: latex
in new version of rst2html, command doesnt work, it's replace by: .. math::
if use command:
pyreport -l -e -t rst --verbose file.py
, after rst2html file.rst > test.html
you see problem. can change in pyreport code, in main.py of pyreport. (use locate find it). , replace
.. raw:: latex
, .. math::
the last problem command \latex, that's not in math mode of latex. it's not work.
you can report rst documentation http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw
Comments
Post a Comment