git clone 'git://github.com/aaptel/preview-latex.git'
px.el is an Emacs Lisp library that provides functions to preview LaTeX codes like $x^2$ in any buffer/mode.
Most of this code comes from weechat-latex.el which in turn uses org-mode previewer.
Place px.el somewhere on your load-path and load it.
px-preview-regionto preview LaTeX codes delimited by $ pairs in the region.
px-previewto process the whole buffer.
px-removeto remove all images and restore the text back.
px-toggleto toggle between images and text on the whole buffer.