From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: Bug: latex blocks preview inline [9.2.1 (release_9.2.1-217-g232160 )] Date: Wed, 13 Feb 2019 09:21:24 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gttj5-0003dj-4b for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 07:33:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gttXl-0006tw-Oo for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 07:21:40 -0500 Received: from mail-yw1-xc31.google.com ([2607:f8b0:4864:20::c31]:42587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gttXl-0006s2-1l for emacs-orgmode@gnu.org; Wed, 13 Feb 2019 07:21:37 -0500 Received: by mail-yw1-xc31.google.com with SMTP id v201so787253ywa.9 for ; Wed, 13 Feb 2019 04:21:36 -0800 (PST) In-Reply-To: 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" To: Joao Cortes Cc: "emacs-orgmode@gnu.org" Hi, > #+HEADER: :file latex.svg > #+HEADER: :results drawer > #+BEGIN_SRC latex I think you're missing some headers to get it working. For example, I use the following defaults to preview/export images generated with tikz to html/markdown documents: org-babel-default-header-args:latex '((:results . "file raw") (:exports . "results") (:cache . "yes") (:headers . ("\\usepackage{tikz}")) (:imagemagick . "yes") (:fit . "yes"))) Try adding them to you src block or to you config. :cache and :fit aren't necessary for your goal but desirable anyway. The others I think you will need them. Of course, if you're embedding your tikz environment in a document exported to latex, simply embed the fragment (that is, without the src block) and preview it with C-c C-x C-l. > When using the org-plus-contrib package from the org archive > (9.2.1-8-g1b1797-elpaplus), I don't know what is this, but could it be shipped with different babel defaults? Best regards -- Carlos