emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: org-preview-latex-fragment + Emacs Themes + tikz
Date: Tue, 31 May 2011 18:43:08 -0300	[thread overview]
Message-ID: <4de560ef.634dec0a.595d.4823@mx.google.com> (raw)

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
#+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)

Darlan Cavalcante

                 reply	other threads:[~2011-05-31 21:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4de560ef.634dec0a.595d.4823@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).