![]() svg file created with Inkscape and written as a string in Elisp so with the double quotes escaped like this \". Note also that the mess in the middle of the function is just a plain. Please note that I'm using a shell based approach to create files and run applications and I'm on OSX, indeed I use the open -a applicationName shell command, if you are on linux you have to modify this. (setq command (concat "open -a Inkscape " dirname "/" string ".svg")) (concat "# begin_export latex\n\\begin\n# end_export")) (setq command (concat "echo " "' ' > " dirname "/" string ".svg open -a Inkscape " dirname "/" string ".svg")) (if (not (file-exists-p (concat "./" dirname "/" string ".svg"))) (setq dirname (concat (f-base (buffer-file-name)) "-org-img")) (setq string (read-from-minibuffer "Insert image name: ")) :)īasically the two functions that I use (I know they are basically the same and probably redundant so I'm posting just the Inkscape one) are: (defun org-inkscape-img() This community helped me a lot, so please feel free to help me more improving with suggestions. I've been using Emacs for a month now since I've switched from vim, so I'm totally a newbie with the whole emacs-lisp and emacs configuration world. ![]() Yes, of course I'm publishing it but I don't think it's in a very good shape.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |