Skip to content

Instantly share code, notes, and snippets.

@nozma
Created January 23, 2011 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nozma/791933 to your computer and use it in GitHub Desktop.
Save nozma/791933 to your computer and use it in GitHub Desktop.
(defun latex-to-google-chart-api (start end)
(interactive "r")
(let ((latex-expression (kill-region start end)))
(insert-string
(concat "<img src=\"http://chart.apis.google.com/shart?cnt=tx&chl="
(w3m-url-encode-string (car kill-ring))
"\" alt=\"\" />") )))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment