0

I do wonder if this is the appropriate place to ask but I have been searching for a bit without any success about how to run the latex2wp that is used in the Terry Tao's Wordpress. It would be greatly appreciated if anyone with experience of using this can advise me.

In particular, I am rather confused about this line in the ReadMe after the download. "In the directory in which latex2wp.py and your tex file are both present, type python latex2wp.py yourlatexfile.tex this will produce a file called yourlatexfile.html whichis ready to be cut and pasted into WordPress."

I presumed this is something I type into the command prompt after getting the correct directory and I alter the name of the tex file to an appropriate one.

Apologies but I have not used Python so sorry if I am missing something obvious.

  • 1
    Your presumption is correct. Did you try it? – ShreevatsaR Jul 7 '17 at 15:20
  • I did. I typed in "cd" and then the appropriate file directory where I copied the latex2wp files and then typed "python latex2wp.py yourlatexfile.tex " where I changed youlatexfile to the corresponding name of the Tex file. – daruma Jul 8 '17 at 5:13
  • 1
    Cool then, that should work (if you have python installed and available in the commandline). If everything has gone correctly, it would have produced a .html file in the same directory. You can open that file in any plain text editor (e.g. Notepad) and paste the contents into your WordPress blog. – ShreevatsaR Jul 8 '17 at 5:52
  • Do I need to have Python installed in the same directory as the tex file that I want to convert in? I am still unable to get any html file – daruma Jul 8 '17 at 12:13
  • It will help if you say (and read) what happens when you run that command: what gets printed at the command prompt? – ShreevatsaR Jul 8 '17 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.