From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Hafner Subject: Tikz-->LaTeX/HTML Date: Sun, 25 Mar 2012 16:27:06 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBvu3-0002zC-E9 for emacs-orgmode@gnu.org; Sun, 25 Mar 2012 18:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBvu1-0007cS-HU for emacs-orgmode@gnu.org; Sun, 25 Mar 2012 18:27:11 -0400 Received: from mail-vb0-f41.google.com ([209.85.212.41]:55409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBvu1-0007Xl-AE for emacs-orgmode@gnu.org; Sun, 25 Mar 2012 18:27:09 -0400 Received: by vbbey12 with SMTP id ey12so2834256vbb.0 for ; Sun, 25 Mar 2012 15:27:06 -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: emacs-orgmode I'm trying to get a LaTeX scr block with Tikz code either to go native into LaTeX or to be converted into a PNG file and included in HTML, as described in http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html. That document refers to a thread on this list in which two example were given: http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01297.html and http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01302.html. Both examples behave in a similar way for me on Org-7.8.06, but not in the way I expected. If I export to PDF then I just get "[[file:test.png]]" in the PDF where I expected the image to be visible, and if I export to HTML then nothing is visible in the HTML file. Either way I export, the file test.png is indeed generated. So I wonder if these examples are valid with respect to 7.8.06 or maybe my expectations are off. I would not think that the PNG file should be generated for the PDF export, but would expect the image to be visible when viewing either document. Reading the manual, it seems that maybe the behavior has changed in the last year with respect to these examples. So I've tried to figure it out with the manual. If I don't worry about the HTML export, I'm able to set up the document so that the Tikz code is included into LaTeX in the correct way; not too difficult. On the other hand, if I don't worry about the LaTeX export, I can get the PNG file to generate but can't get it automatically included into the HTML. If I could get this second part figured out, then the plan would be to have an elisp conditional testing on "backend" (if this is still a valid symbol to test on) that would determine whether on not to include :file etc. in the header for the src block. Any thoughts? --Steve