Sunday, May 19, 2013

Latex to HTML using Pandoc

Latex to HTML using Pandoc

I have a bunch of tutorials I have written and they are written in Latex. Now I want to convert them to HTML and to Blogger also.
I heard about Pandoc and decided to try it. Below are my results :
My original latex file : https://github.com/abidrahmank/OpenCV2-Python-Tutorials/blob/master/thresholding/threshold.tex
HTML created from that file : https://github.com/abidrahmank/OpenCV2-Python-Tutorials/blob/master/thresholding/threshold.html
Below is the command I used to create HTML :
pandoc -s  --listings --latexmathml threshold.tex -o threshold.html
Problem 1 :
If you check the HTML file, you can see there are some latex labels and parameters printed out near images and equations. How to avoid that?
Problem 2 :
There is no code highlighting. How can I add code highlighting in HTML?
Problem 3 :
When I copied this HTML to blogger, it doesn't work. How can I create a blogger friendly HTML file using Pandoc.
Problem 4 :
Is there any other better option other than Pandoc ?

No comments:

Post a Comment