emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: Joao Cortes <joaooneillcortes@outlook.pt>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <CAELgYhdJ4nhbr7iP0yrrkU2xRWQEOp5tbsRxdR4m9mM=m8sJqg@mail.gmail.com> (raw)
In-Reply-To: <DB8PR08MB41240D7ECC3A94DA522AB122A3660@DB8PR08MB4124.eurprd08.prod.outlook.com>

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

  reply	other threads:[~2019-02-13 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-13 10:57 Bug: latex blocks preview inline [9.2.1 (release_9.2.1-217-g232160 )] Joao Cortes
2019-02-13 12:21 ` Carlos Pita [this message]
2019-02-13 12:34   ` Carlos Pita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAELgYhdJ4nhbr7iP0yrrkU2xRWQEOp5tbsRxdR4m9mM=m8sJqg@mail.gmail.com' \
    --to=carlosjosepita@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=joaooneillcortes@outlook.pt \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).