emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Embedded diagrams


From: Yamagata Yoriyuki
Subject: Re: [emacs-wiki-discuss] Embedded diagrams
Date: Sun, 20 Feb 2005 19:07:32 +0900 (JST)

From: Trent Buck <address@hidden>
Subject: [emacs-wiki-discuss] Embedded diagrams
Date: Sun, 20 Feb 2005 20:14:47 +1100

> I'm interested in embedding graphviz, gnuplot and pic diagrams in
> emacs-wiki source.  The idea is you type something like
> 
>       <graph type="twopi">
>       a -> b -> c;
>       x -> y -> z;
>       a -> x -> a;
>       </graph>
> 
> and at publish time a function will create a PNG, save it at 
>       (concat imgdir "/" type "-" (md5sum buffer) ".png")
> and insert an <img> tag into the HTML.
> 
> Has anyone done something similar already?  I can sorta see how to adapt
> the <mathml> and <src> handlers to suit, but I'm fumbling a bit over the
> differences between CL and Elisp; it seemed prudent to ensure I'm not
> duplicating effort needlessly.

See my mimetex handler
http://www15.ocn.ne.jp/~rodinia/emacs-wiki-mimetex.el

My handler passes texts enclosed <tex> and </tex> to mimetex, and
generate gif files.

--
Yamagata Yoriyuki





reply via email to

[Prev in Thread] Current Thread [Next in Thread]