emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX brocs: Babel vs export
@ 2024-05-26 22:54 Sébastien Gendre
  2024-05-27 14:55 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Gendre @ 2024-05-26 22:54 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-27 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-26 22:54 LaTeX brocs: Babel vs export Sébastien Gendre
2024-05-27 14:55 ` Ihor Radchenko

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).