From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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: Thu, 06 Dec 2018 00:38:20 +0100 Message-ID: <87d0qfa6j7.fsf@nicolasgoaziou.fr> References: <878t13n5qo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUgkN-0006PB-Fu for emacs-orgmode@gnu.org; Wed, 05 Dec 2018 18:38:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUgkJ-0000Wc-NZ for emacs-orgmode@gnu.org; Wed, 05 Dec 2018 18:38:27 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:43961) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUgkJ-0000TX-Bj for emacs-orgmode@gnu.org; Wed, 05 Dec 2018 18:38:23 -0500 In-Reply-To: <878t13n5qo.fsf@gmail.com> (Carlos Pita's message of "Wed, 05 Dec 2018 16:17:03 -0300") 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 Cc: emacs-orgmode@gnu.org Hello, Carlos Pita writes: > As a more robust solution, I suggest to explicitly set the colors in the > tex fragment for the preview instead of passing them as arguments to > dvipng. This can be done easily: > > ... > \usepackage{xcolor} > ... > \begin{document} > \definecolor{bg}{rgb}{0,0,0} > \definecolor{fg}{rgb}{1,1,1} > \color{fg} > \pagecolor{bg} > ... > > Where fg and bg might be replaced by randomly generated string or > whatever you see fit to prevent name clashes. > > Notice that the syntax for rgb color is the same than the one for dvipng > so it shouldn't be much of a refactoring. Would you want to provide a patch for that? Regards, -- Nicolas Goaziou