(My first question ever on SO)
Goal: to generate an svg
out of a tikz
block in orgmode with a minimal working example.
I have tried everything within my limited knowledge and I've broken down a supposedly minimal example to this.
#+name: circle
#+begin_src latex :imagemagick yes :file circle.svg
\begin{tikzpicture}
\fill[yellow] (0,0) circle (3cm);
\end{tikzpicture}
#+end_src
However, instead of producing a yellow circle, my snippet creates an svg
version of the body of the source block (see below):
svg generated by tikz block when C-c C-c
'ing over the block
I've changed the header arguments, changed the extension, I even installed Emacs (Doom Emacs) and Orgmode again and still can't get this to work. I don't know what else to try.
I've used as guide:
- https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html
- https://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01297.html
If someone could just paste a simple example that works on their machine I would really appreciate it so I could be sure that this thing actually works.
About:
I've seen countless examples of how to manipulate output and other things related to svg and orgmode: the resonant by-backend
macro so depending on the export you leave the tikz as is or transform it to svg (my next goal) -
-- I can't get that macro to work either, but that's for the future me ---.
However, I can't manage to create a simple working example to create an svg
from a tikz
source code block in the first place. I need help please.
I did as much research as possible before posting this question, however I am aware that it may not be enough so I will edit accordingly if necessary.