From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: org-preview-latex-fragment + Emacs Themes + tikz Date: Tue, 31 May 2011 18:43:08 -0300 Message-ID: <4de560ef.634dec0a.595d.4823@mx.google.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRWia-0005g7-3n for emacs-orgmode@gnu.org; Tue, 31 May 2011 17:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRWiY-0002u6-Hl for emacs-orgmode@gnu.org; Tue, 31 May 2011 17:43:15 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:48375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRWiY-0002u1-6t for emacs-orgmode@gnu.org; Tue, 31 May 2011 17:43:14 -0400 Received: by ywa1 with SMTP id 1so2618121ywa.0 for ; Tue, 31 May 2011 14:43:12 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Orgmode Mailing List Hello list, One of the many features I regularly enjoy with org-mode is org-preview-latex-fragment, but after I started using a dark theme with white text it haven't work so great. org-preview-latex-fragment is smart and it tries to get my background color and default text color so that the generated images for the latex fragments can have the same appearance as rest of the text (this is REALLY nice). However, while the background changes accordingly the text in the generated images does not. That is, the text is still black as in the default theme, while the background is dark following my theme (the Naquadah theme by Julien Danjou). After investigating this I found out the problem was my org-export-latex-default-packages-alist variable. Particularly, if I include the tikz package the problem occurs, but if tikz is not included (at least not for preview latex) then org-preview-latex-fragment works as it should. Does this problems occur with anyone else? The code I use to set org-export-latex-default-packages-alist is shown below #+begin_src emacs-lisp (setq org-export-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" "fontenc" t) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "soul" t) ("" "textcomp" t) ("" "marvosym" t) ;;("" "wasysym" t) ; Conflicts with amsmath ("" "latexsym" t) ("" "amssymb" t) ("" "amsmath" t) ;; ("" "tikz" t) ; uncomment to see the bug ("" "hyperref" nil) ("" "MathDefinitions" t) "\\tolerance=1000")) #+end_src -- Darlan Cavalcante