Skip to content

Instantly share code, notes, and snippets.

@nozma
Created April 29, 2011 02:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nozma/947770 to your computer and use it in GitHub Desktop.
Save nozma/947770 to your computer and use it in GitHub Desktop.
latex表現をgoogle chart apiの形式へ変換
(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/chart?cht=tx&chl="
(w3m-url-encode-string (car kill-ring))
"\" alt=\"\" />") )))
(global-set-key "\C-c\C-l\C-t" 'latex-to-google-chart-api)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment