emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Xemacs: org-preview-latex-fragment, png not readable.


From: Uwe Brauer
Subject: [O] Xemacs: org-preview-latex-fragment, png not readable.
Date: Sat, 28 Jan 2012 21:20:48 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) XEmacs/21.5-b29 (linux)

Hello

I made some progress in getting the function to work in
Xemacs.


The main problem seemed to be the function 
org-dvipng-color which is called in
org-create-formula-image.

The original formulation was 

(defun org-dvipng-color (attr)
  "Return an rgb color specification for dvipng."
  (apply 'format "rgb %s %s %s"
         (mapcar 'org-normalize-color
                 (color-values (face-attribute 'default attr
                 nil)))))



Which does not work for Xemacs. Thanks to Julian Bradfield,
the solution seems to be:

(defun org-dvipng-color (attr)
  "Return an rgb color specification for dvipng."
  (apply 'format "rgb %s %s %s"
         (mapcar 'org-normalize-color
 (color-rgb-components
     (face-property 'default (intern (substring (symbol-name attr) 1)))))))


However the png which were generated where to small to be
readable. I attach one at the end of the message.

So I tried out in GNU Emacs 21.3 to comment out
org-dvipng-color in org-create-formula-image.
org-preview-latex-fragment then still works, so  is not
necessary for generating the pngs.

So I tried to do the same in Xemacs but the formulas in the
png files keep being  too small.

What could be the reason for this behavior?

Uwe Brauer 

The following attachment should be an integral. 

Xemacs:

Attachment: test3_7801a85c58c7aabc4553724e826b458ba08dda90.png
Description: PNG image

Gnu Emacs 

Attachment: test_7ceb32811fbcd1322f595ca60dcc47456c20b5fe.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]