From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [bug] latex fragment preview with dvipng ignores :foreground specification Date: Fri, 25 Jan 2013 19:11:56 -0500 Message-ID: <11054.1359159116@alphaville> References: <878v7g27f7.fsf@ucl.ac.uk> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TytNO-0001tM-JJ for emacs-orgmode@gnu.org; Fri, 25 Jan 2013 19:12:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TytNM-0004O4-LV for emacs-orgmode@gnu.org; Fri, 25 Jan 2013 19:12:06 -0500 Received: from g4t0016.houston.hp.com ([15.201.24.19]:46243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TytNM-0004Nn-Em for emacs-orgmode@gnu.org; Fri, 25 Jan 2013 19:12:04 -0500 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0016.houston.hp.com (Postfix) with ESMTP id 3C56614428 for ; Sat, 26 Jan 2013 00:11:57 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (alphaville.americas.hpqcorp.net [16.117.226.11]) by g4t0009.houston.hp.com (Postfix) with ESMTP id 18ABFC05B for ; Sat, 26 Jan 2013 00:11:57 +0000 (UTC) Received: from alphaville (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id 84ED947111 for ; Fri, 25 Jan 2013 19:11:56 -0500 (EST) In-Reply-To: Message from Eric S Fraga of "Sat, 26 Jan 2013 09:32:04 +1030." <878v7g27f7.fsf@ucl.ac.uk> 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 Eric S Fraga wrote: > Hello, > > I am trying to use org-tree-slide for an interactive session I have to > facilitate soon. This works quite well, in a geeky kind of way ;-) > > However, I do want to display a couple of equations and using latex > fragments is the most appealing mechanism. When I try to use > org-preview-latex-fragment, the latex image is > generated. Unfortunately, as I use a black background on my display, I > cannot see the fragment as it is being generated with black text on a > transparent background by default. Note, I am using dvipng for the > image conversion. > > I can customise org-format-latex-options to fix this, or so I > thought. No matter what I do, the resulting latex fragment has black > text. The problem appears to be that the -fg option to dvipng does not > work so it doesn't matter how I customise org-format-latex-options. > I think that's true. Using dvipng from the command line, I can change the background but not the foreground. > Can anybody suggest a workaround (without changing the actual latex > itself)? I can customise the above variable to set the background for > latex images to white, which at least allows the equations to be seen, > but this is a mildly ugly solution. :( And ruins any geek street cred I > might have had ;-) > Use a light background emacs for the presentation. And don't tell anybody that you switched. Street creds intact, you can switch back to the cool dark background afterwards. If you get caught, you can argue that you switched for projection purposes (assuming that you are going to use a projector): studies show that dark letters on a light background are easier to see from a distance (citation: J.WhlClthFab, Vol. 3.14159, p. 2.7182818, Apr. 1, 1999) Nick