From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Nikishkin Subject: LaTeX org-mode tikz with a dark background plots with black on black Date: Tue, 10 Sep 2019 00:14:55 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34696) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7MJp-0000VS-Tw for emacs-orgmode@gnu.org; Mon, 09 Sep 2019 12:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7MJo-0004sl-PD for emacs-orgmode@gnu.org; Mon, 09 Sep 2019 12:15:09 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:42802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7MJo-0004qo-Ig for emacs-orgmode@gnu.org; Mon, 09 Sep 2019 12:15:08 -0400 Received: by mail-ed1-x534.google.com with SMTP id y91so13474364ede.9 for ; Mon, 09 Sep 2019 09:15:08 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Hello, everyone I am trying to follow the example from the contributed manual: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#org30df2de The code I am trying to get compiled is the following: #+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 200 #+header: :fit yes :headers '("\\usepackage{tikz}") #+header: :buffer on #+begin_src latex :results raw file :exports code :file test.png \usetikzlibrary{trees} \begin{tikzpicture} \node [circle, draw, fill=red!20] at (0,0) {1} child { node [circle, draw, fill=blue!30] {2} child { node [circle, draw, fill=green!30] {3} } child { node [circle, draw, fill=yellow!30] {4} }}; \end{tikzpicture} #+end_src I am getting the picture, and the circles are where they should be, but (!), the arrows are black, which makes them not really visible on a black background. How would I either make the background white, or (better) just make the foreground white (just for this particular block of latex, not for export, and not even for the entire file). The formulate like \( e = mc^2 \) are properly rendered both in Emacs (white on black), and when exported (black on white). Any suggestions welcome. -- Yours sincerely, Vladimir Nikishkin