[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: latex blocks preview inline [9.2.1 (release_9.2.1-217-g2321
From: |
Carlos Pita |
Subject: |
Re: [O] Bug: latex blocks preview inline [9.2.1 (release_9.2.1-217-g232160 )] |
Date: |
Wed, 13 Feb 2019 09:21:24 -0300 |
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