emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: LaTeX brocs: Babel vs export
Date: Mon, 27 May 2024 14:55:53 +0000	[thread overview]
Message-ID: <8734q3e22u.fsf@localhost> (raw)
In-Reply-To: <87fru46v6k.fsf@k-7.ch>

Sébastien Gendre <seb@k-7.ch> writes:

> tl;dr: Which is the best option between LaTeX source bloc and LaTeX
>        export bloc to embed some LaTeX code in my Org-mode document ?
> ...
> But I remember that it's possible to use Babel source bloc, indicate
> "latex" as language then evaluate it. But I've never do it. Is it better
> than using export bloc ? Does it give a simple way to encapsulate the
> result into a figure with caption ?

When result is an image, you can use #+caption and other affiliated
keywords to control how the image is rendered in LaTeX. So, yes, you can
use LaTeX source block.

It will be also somewhat easier if you want to re-generate previews of
the rendered image only.

However, direct LaTeX is (naturally) more flexible. If you need some
non-trivial typesetting, you may have better luck with direct LaTeX.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


      reply	other threads:[~2024-05-27 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-26 22:54 LaTeX brocs: Babel vs export Sébastien Gendre
2024-05-27 14:55 ` Ihor Radchenko [this message]

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=8734q3e22u.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=seb@k-7.ch \
    /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).