mpastell / Pweave

Pweave is a scientific report generator and a literate programming tool for Python. It can capture the results and plots from data analysis and works well with numpy, scipy and matplotlib.
http://mpastell.com/pweave
Other
435 stars 64 forks source link

pygments.sty #20

Closed AcidLeroy closed 9 years ago

AcidLeroy commented 9 years ago

Not sure if this is an issue, but when I install Pweave using pip there is no "pygments.sty" file. So when I attempt to run pdflatex after generating the .tex file I get the following error:

! LaTeX Error: File `pygments.sty' not found.

I solved this by cloning the repo from github and pointing it to the "pygments.sty" file in the examples directory. I am running RHEL6 x86 and I have texlive installed. Do other distributions come with the "pygements.sty" file?

mpastell commented 9 years ago

pygments.sty is not part of any distribution, but you can create it for different styles using pygments:

pygmentize -S default -f tex > pygments.sty

See: http://pygments.org/docs/cmdline/#generating-styles

AcidLeroy commented 9 years ago

Just saw this! Thanks!

abukaj commented 9 years ago

Had exactly the same problem. I think you should mention it in the examples section of Pweave website.

mpastell commented 8 years ago

This is now added to the docs: http://mpastell.com/pweave/examples/index.html#latex-with-pygments-syntax-highlighting