From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: tikz for multiple targets Date: Thu, 11 Jul 2013 10:01:41 -0600 Message-ID: <87k3kx5bcq.fsf@gmail.com> References: <87k3kztlam.fsf@ucl.ac.uk> <87wqoyagmh.fsf@gmx.us> <87obaa65uu.fsf@ucl.ac.uk> <87ehb62lhe.fsf@med.uni-goettingen.de> <878v1d7his.fsf@gmail.com> <87a9ltxzig.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxJR6-0006QL-2e for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 12:09:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxJR4-00076D-PK for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 12:09:40 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:50238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxJR4-000763-IH for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 12:09:38 -0400 Received: by mail-pa0-f48.google.com with SMTP id kp12so7993534pab.35 for ; Thu, 11 Jul 2013 09:09:37 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Eric Schulte 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. > > =E2=80=94Rasmus --=20 Eric Schulte http://cs.unm.edu/~eschulte