Long LaTeX posts in WordPress.com


WordPress does a good job supporting simple LaTeX expressions. You type $ latex 2^{2^k}$, and out comes 2^{2^k}.  Although adding “latex” in the middle of the dollar signs  is a slice difference between latex commands, when your have dozens of formulas in you article or your want to edit a long latex script to wordpress format, it definitely cost some labor, which is unnecessary as I believe.  No mention that we often need more complicate commands, such as numbering the equation. Since these differences between latex and wordpress have some patterns, they can be eliminated by programming as one can expect. I glad some one did put some effort  on the project:

There is a simple tool to convert your latex script  to html that can be pasted directly.

LaTeX2WP, written by Luca Trevisan, is a Python script that will convert a LaTeX file into a format suitable for pasting into a WordPress.com post. Hence you need Python, which is automatically embedded in Unix, Mac OS and Linux(all distributions), in your system.  Just click the link to see the details and instructions.  Please Make sure to download the latest version.

I have tried it several times and am aware that how to revise the python script to fit part of your latex preamble. In fact, due to the restrictions from wordpress and the current work load of the author, there are many latex commands and packages which is not supported, so the best way is to follow his definition in the style files.

If your like it, or have any questions, welcome to discuss with me.

Yang Liu (liu@math.osu.edu)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: