emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is ob-latex maintained ?


From: DEBRY . Edouard
Subject: Is ob-latex maintained ?
Date: Fri, 17 Jun 2022 13:08:12 +0000

Hello,

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

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];
\end{tikzpicture}
#+end_src
<=====================================================================================>

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.

Regards




___________________________________________________________________________________________________________________________________

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]