From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: Problems with LaTeX source block Date: Tue, 16 Jul 2013 17:04:46 +0200 Message-ID: <87y596h7g1.fsf@free.fr> References: <8761wcjk5y.fsf@free.fr> <87wqos42vm.fsf@med.uni-goettingen.de> <87oba3djid.fsf@free.fr> <87zjtmhica.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz6tE-0002uy-Pn for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 11:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz6tD-0006wq-1c for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 11:10:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:50534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz6tC-0006vs-Qk for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 11:10:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uz6tA-0002tA-16 for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 17:10:04 +0200 Received: from 37.160.46.132 ([37.160.46.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Jul 2013 17:10:04 +0200 Received: from j.cubizolles by 37.160.46.132 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Jul 2013 17:10:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Eric, Eric S Fraga 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.