From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: tikz for multiple targets Date: Thu, 11 Jul 2013 10:38:15 +0200 Message-ID: <87a9ltxzig.fsf@gmx.us> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxCOT-0004E2-Sd for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 04:38:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxCOR-0005gV-Mh for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 04:38:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:40356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxCOR-0005gI-GV for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 04:38:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UxCOQ-00072O-Ib for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 10:38:26 +0200 Received: from f053034184.adsl.alicedsl.de ([78.53.34.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jul 2013 10:38:26 +0200 Received: from rasmus by f053034184.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jul 2013 10:38:26 +0200 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: emacs-orgmode@gnu.org 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. 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