emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is ob-latex maintained ?
@ 2022-06-17 13:08 DEBRY.Edouard
  2022-06-17 13:28 ` Fraga, Eric
  0 siblings, 1 reply; 6+ messages in thread
From: DEBRY.Edouard @ 2022-06-17 13:08 UTC (permalink / raw)
  To: Emacs-orgmode


I had a couple of small issues when trying to export latex src block to

Here is to fix ideas a src block :

#+HEADER: :file test1.png
#+HEADER: :exports results
#+HEADER: :results output silent graphics file
#+HEADER: :fit yes :noweb yes :headers '("\\usepackage{tikz}" "\\usetikzlibrary{backgrounds}")
#+begin_src latex
\begin{tikzpicture}[background rectangle/.style={fill=olive!30}, show background rectangle]
\draw[->] (-3,0) -- (-2,0) arc[radius=0.5cm,start angle=-180,end angle=0] (-1,0) -- (1,0) arc[radius=0.5cm,start angle=180,end angle=0] (2,0) -- (3,0);
\filldraw (-1.5,0) circle[radius=1mm];
\filldraw (1.5,0) circle[radius=3mm];

When hitting [C-c C-c], it did produce an "test1.png" however, it was
not a png file but ... a svg one !

I figured out that the process goes through first condition of
"org-babel-execute:latex (body params)" function (around line 150).
This one relies on function "org-create-formula-image" which should
have the process-type in argument, either 'dvipng, 'dvisvgm or
'imagemagick. If not given, the default one is given which for me is set
to 'dvisvgm.

The "org-create-formula-image" should be given in arguments the backend
corresponding to the desired image format. I tried adding 'dvipng
explicitely but image generation fails, however doing it manually (latex
+ dvipng) works.

Does someone maintains "ob-latex" ? and could make things clearer.



This email and any attachments are confidential to the intended recipient and may also be privileged.
If you are not the intended recipient please delete it from your system and notify the sender. 
You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person.

Ce courriel et ses pieces-jointes sont envoyes de maniere confidentielle et doivent etre traites avec attention.
Si vous n'etes pas le destinataire, merci de le detruire et d'en informer son auteur. 
Vous ne devez pas copier, utiliser, reveler ou diffuser son contenu a quiconque.

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

end of thread, other threads:[~2022-06-19 17:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17 13:08 Is ob-latex maintained ? DEBRY.Edouard
2022-06-17 13:28 ` Fraga, Eric
2022-06-17 13:48   ` DEBRY.Edouard
2022-06-17 14:47     ` Fraga, Eric
2022-06-19 13:31       ` Edouard Debry
2022-06-19 17:17         ` Thomas S. Dye

Code repositories for project(s) associated with this public inbox


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