Eric Schulte <schulte.e...@gmail.com> writes:
> Building from this example, the attached patch to ob-latex.el combined > with the attached org-mode file should export the latex (tikz) code as > an inline SVG image to HTML and as embedded tikz to latex. > > If this works generally I can commit the patch to ob-latex.el. Looks good to me, although it would make ox-html depend on ox-latex which may or may not be desirable. . . For instance math stuff is handled internally by ox-html, it seems (correct me if I'm wrong). While TikZ clearly is a LaTeX feature, producing SVGs are more of a way of support this type of figures in html output, although it depends on TeX binaries. File links to tikz files [[file:pix.pgf]] (e.g. produced with R or matplotlib) won't be understood with this patch. It should automatically convert the picture to an svg figure, I think. Perhaps support for file links can be added later. —Rasmus -- In theory, practice and theory are the same. In practice they are not