From: "Sébastien Gendre" <seb@k-7.ch>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: LaTeX brocs: Babel vs export
Date: Mon, 27 May 2024 00:54:27 +0200 [thread overview]
Message-ID: <87fru46v6k.fsf@k-7.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]
Hello,
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 ?
I'm a last year student and very soon I will have to write a "Mémoire"
about my diploma work. (Sorry for using the french name, I didn't found
the English word and I'm sure it's not "Memory", like in computer
memory).
I plan to use Org-mode to write my "Mémoire", then export it to LaTeX
then PDF. And because I will have to draw some electronic circuits, I
want to use the LaTeX pkg named "CircuitIkz". And I want to put the
drawn circuits in figures with a caption.
For doing it, the manual say I can write the latex code into an export
block, like this:
#+BEGIN_EXPORT latex
any arbitrary LaTeX code
#+END_EXPORT
I have done it with success, but I have to define the figure and the
caption in LaTeX, into the export bloc.
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 ?
Best regards
-------
Gendre Sébastien
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]
next reply other threads:[~2024-05-26 22:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 22:54 Sébastien Gendre [this message]
2024-05-27 14:55 ` LaTeX brocs: Babel vs export Ihor Radchenko
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=87fru46v6k.fsf@k-7.ch \
--to=seb@k-7.ch \
--cc=emacs-orgmode@gnu.org \
/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).