Rasmus <ras...@gmx.us> writes:

> 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.
>

Nope, this patch only touches ob-latex not ox-latex (easily mistaken
names).

>
> 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.
>

Correct.  I think that users of R or gnuplot should use R or gnuplot to
produce SVG or PDF images directly.  I don't think htlatex makes sense
in those use cases.

>
> —Rasmus

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

Reply via email to