From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: preview latex fragments Date: Thu, 24 May 2012 14:18:30 +0200 Message-ID: <87ehq9wz55.fsf@med.uni-goettingen.de> References: <8762bmy5m6.fsf@med.uni-goettingen.de> <87obpej65q.fsf@gnu.org> <87ipflwzqc.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXX18-0000Ge-LO for emacs-orgmode@gnu.org; Thu, 24 May 2012 08:19:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXX12-0006nB-DC for emacs-orgmode@gnu.org; Thu, 24 May 2012 08:19:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:40706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXX12-0006mw-2f for emacs-orgmode@gnu.org; Thu, 24 May 2012 08:19:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SXX0t-0006me-AR for emacs-orgmode@gnu.org; Thu, 24 May 2012 14:19:31 +0200 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 May 2012 14:19:31 +0200 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 May 2012 14:19:31 +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 Andreas Leha writes: > Hi Bastien, > > Bastien writes: > >> Hi Andreas, >> >> Andreas Leha writes: >> >>> I experience a problem with the preview of latex fragments: I can not >>> change the foreground color (in org-format-latex-options). On a dark >>> background, the black fragments are barely visible. >>> >>> The settings for background and scale (in the same variable) are >>> honored, though. >> >> Can you post a reproducible case with a specific Org version? > > Thanks a lot for looking into this, but: > No, I can not. Now it works as it should. No clue what happened > actually. Sorry for the noise. > > - Andreas Actually, now I can again reproduce it. The problem seems to be tikz: With tikz in the latex header, foreground is always black. So probably more a LaTeX-issue? Example: Change the :foreground color in org-format-latex-options to "Red" and do the preview (C-c C-x C-l) on this subtree: #+begin_org #+LATEX_HEADER: \usepackage{tikz} * Test Hi, set :foreground in org-format-latex-options to "Red" and take this fragment $1 = 2$ and press C-c C-x C-l. #+end_org So the question becomes: Can I make the foreground changing work even with tikz loaded in the latex document? Cheers, Andreas