From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: Bug: Latex preview fg color w/tikz (known problem, fix suggested) [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.90/lisp/org/)] Date: Sat, 22 Dec 2018 11:00:02 -0300 Message-ID: References: <878t13n5qo.fsf@gmail.com> <87d0qfa6j7.fsf@nicolasgoaziou.fr> <87o99wfije.fsf@nicolasgoaziou.fr> <87mupg3wqt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gahpC-0005K6-26 for emacs-orgmode@gnu.org; Sat, 22 Dec 2018 09:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gahpB-0002e9-9h for emacs-orgmode@gnu.org; Sat, 22 Dec 2018 09:00:18 -0500 Received: from mail-yw1-xc44.google.com ([2607:f8b0:4864:20::c44]:36136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gahpB-0002bG-2D for emacs-orgmode@gnu.org; Sat, 22 Dec 2018 09:00:17 -0500 Received: by mail-yw1-xc44.google.com with SMTP id i73so3282111ywg.3 for ; Sat, 22 Dec 2018 06:00:15 -0800 (PST) In-Reply-To: <87mupg3wqt.fsf@gmail.com> 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: Carlos Pita , emacs-orgmode@gnu.org Hi, I found out that there is already code doing what I proposed but just when the backend is not dvipng. If you want to keep using dvipng you can set: (let ((dvipng (alist-get 'dvipng org-preview-latex-process-alist))) (plist-put dvipng :image-converter '("dvipng -D %D -T tight -o %O %f")) (plist-put dvipng :use-xcolor t)) The first setting is necessary to remove -F and -B from the command line since otherwise the mix of xcolor and color arguments makes dvipng abort with segmentation fault. Otherwise, use another backend like imagemagick. Best regards -- Carlos