Re: [Orgmode] Generated images in buffer
Thanks! So it possible for LaTeX, but not for other image generators. That's a bit unfair. How difficult would it be to generalize this so that it would support any image generator? Regards, Dov On Sun, Nov 28, 2010 at 09:34, Jeff Horn jrhorn...@gmail.com wrote: On Sun, Nov 28, 2010 at 2:04 AM, Dov Grobgeld dov.grobg...@gmail.com wrote: The same idea could be used for any system generating images, e.g. LaTeX formulas, asymptote, a python script using cairo, etc. I think evaluating Babel code blocks can insert output into your org-file. Also, I regularly use =C-c C-x C-l= to display rendered LaTeX equations in-buffer. That keystroke only displays the current subtree's equations. With a prefix, it will generate previews for the entire document. Best, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Generated images in buffer
You can place the ditaa code into a code block and then evaluate the code block with C-c C-c. This will insert a link to the generated image into your Org-mode file. If you then turn on inline images with M-x org-toggle-inline-images you can preview the generated image from within your Org-mode buffer. For more information on code blocks see http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code Best -- Eric Dov Grobgeld dov.grobg...@gmail.com writes: Thanks! So it possible for LaTeX, but not for other image generators. That's a bit unfair. How difficult would it be to generalize this so that it would support any image generator? Regards, Dov On Sun, Nov 28, 2010 at 09:34, Jeff Horn jrhorn...@gmail.com wrote: On Sun, Nov 28, 2010 at 2:04 AM, Dov Grobgeld dov.grobg...@gmail.com wrote: The same idea could be used for any system generating images, e.g. LaTeX formulas, asymptote, a python script using cairo, etc. I think evaluating Babel code blocks can insert output into your org-file. Also, I regularly use =C-c C-x C-l= to display rendered LaTeX equations in-buffer. That keystroke only displays the current subtree's equations. With a prefix, it will generate previews for the entire document. Best, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Generated images in buffer
I'm still feel quite a newbie to org-mode and I've been looking for a way to include dependent images within the emacs buffer, but I still haven't found it. As an example, assume that I have manully created a diagram with ditaa code, and once I am finishede diting I'd like to press a keystroke e.g. Ctrl-C Ctrl-C and have the contents change to the generated output image, and the ditaa code will be hidden. When subsequently navigating to the image there should be some indicator that this is a generated image and some keystroke should allow turning the image back to its source code. The same idea could be used for any system generating images, e.g. LaTeX formulas, asymptote, a python script using cairo, etc. Similarly if the source code is svg I might not want to display the source code at all (which might be large), but would like to invoke inkscape to edit the svg data. This is better done by referencing the svg as an external image, instead of having it inline, but I would still like to easily invoke an editor application from within emacs with a simple keystroke. So is this currently possible? Thanks, Dov ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Generated images in buffer
On Sun, Nov 28, 2010 at 2:04 AM, Dov Grobgeld dov.grobg...@gmail.com wrote: The same idea could be used for any system generating images, e.g. LaTeX formulas, asymptote, a python script using cairo, etc. I think evaluating Babel code blocks can insert output into your org-file. Also, I regularly use =C-c C-x C-l= to display rendered LaTeX equations in-buffer. That keystroke only displays the current subtree's equations. With a prefix, it will generate previews for the entire document. Best, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode