org.el: Option to get LaTeX preview in the same color as text face
commit149cc04782651e74764eb3188f6a6f178fe25f64
authorAbdó Roig-Maranges <abdo.roig@gmail.com>
Wed, 1 Aug 2012 22:50:24 +0000 (2 00:50 +0200)
committerBastien Guerry <bzg@altern.org>
Wed, 12 Sep 2012 10:45:44 +0000 (12 12:45 +0200)
treeb8625046388717aa0f5296db33be0e6e4e1d8104
parentdaf7cd98eadf5b814b1e7102c6bc831a929a456e
org.el: Option to get LaTeX preview in the same color as text face

* org.el (org-format-latex-options): Add `auto' to docstring.
(org-format-latex): Get face colors at point and put them inside opt.
(org-create-formula-image-with-dvipng): Fix bug when colors are not
`default'.
(org-create-formula-image-with-imagemagick): Fix bug when handling
"Transparent" bg color.
(org-dvipng-color-format): Same as `org-latex-color-format' for
dvipng-style color specification.

If `auto' is used for the :foreground or :background value in
org-format-latex-options, the the appropriate color is chosen
from the face in which the formula is displayed.
lisp/org.el