emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: DEBRY.Edouard <edouard.debry@mbda-systems.com>
To: Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Is ob-latex maintained ?
Date: Fri, 17 Jun 2022 13:08:12 +0000	[thread overview]
Message-ID: <yu1mv8szphdw.fsf@mbda-systems.com> (raw)


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	other threads:[~2022-06-17 13:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-17 13:08 DEBRY.Edouard [this message]
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

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=yu1mv8szphdw.fsf@mbda-systems.com \
    --to=edouard.debry@mbda-systems.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Is ob-latex maintained ?' \
    /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

Code repositories for project(s) associated with this 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).