[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LaTeX brocs: Babel vs export
From: |
Ihor Radchenko |
Subject: |
Re: LaTeX brocs: Babel vs export |
Date: |
Mon, 27 May 2024 14:55:53 +0000 |
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>