Created
April 29, 2011 02:58
-
-
Save nozma/947770 to your computer and use it in GitHub Desktop.
latex表現をgoogle chart apiの形式へ変換
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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