Hi Eric,

Eric S Fraga <e.fr...@ucl.ac.uk> writes:


> Interesting.  I have this behaviour as well in terms of background.  I
> use a dark theme on all of my windows, be they emacs or xterms.  The png
> generated by imagemagick sets the background to transparent which means
> I cannot see the images produced as the actual drawing and text are
> black.
>
> I am happy with this: just had to remember to set the drawing colour to
> white by "\begin{tikzpicture}[white]".

The background/foreground are supposed to be changed by setting the
:buffer yes header and by customizing org-format-latex-options. I didn't
try it though, I'm happy with the [white] option to tikzpicture.

However, I noticed something odd. If I use the following headers

--8<---------------cut here---------------start------------->8---
#+header: :results raw :file py2tikz_sin.png
#+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}")
#+header: :iminoptions -density 600 :imoutoptions -geometry 400
--8<---------------cut here---------------end--------------->8---

the png is transparent. If I remove the last line:
--8<---------------cut here---------------start------------->8---
#+header: :results raw :file py2tikz_sin.png
#+header: :imagemagick yes :fit yes :headers '("\\usepackage{tikz,pgfplots}")
--8<---------------cut here---------------end--------------->8---
I get the white background back, although in both cases, imagemagick is
used.

Julien.


Reply via email to