emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] Re: Mathematics in Muse


From: Na Li
Subject: [emacs-wiki-discuss] Re: Mathematics in Muse
Date: Thu, 13 Oct 2005 10:54:05 -0500
User-agent: Emacs Gnus

On 12 Oct 2005, Michael Olson wrote:

> Chris Lowis <address@hidden> writes:
> 
> > What is the current state of publishing mathematics in Muse ? Does
> > Ganesh Swami's latex2png package work with muse-mode ?
> > (http://www.sfu.ca/~gswamina/EmacsWikiBlog.html) .
> 
> I've adapted it and added it to the /contrib directory in the Muse
> development tarball as muse-latex2png.el.

This doesn't work as intended. Namely, the 'latex' directory is created at the
current directory, not the publishing directory (where the html files
reside).  And the name of the created png file is 'latex_xxx.png'.

First, a '/' is missing here at:

--- orig/contrib/muse-latex2png.el
+++ mod/contrib/muse-latex2png.el
@@ -64,7 +64,7 @@
   (let ((end-marker (set-marker (make-marker) (1+ end)))
         (pubdir (concat (file-name-directory
                          muse-publishing-current-file)
-                        "/latex")))
+                        "/latex/")))
     (save-restriction
       (narrow-to-region beg end)


Secondly, `muse-publishing-current-file' seems to evaluate to nil.  I couldn't
figure out an easy of finding out that the output directory should be for
current file.

While MathML is nice, it is not well supported (not by Safari, or IE AFAIK).
Firefox has some font problems as well (on Mac anyway).  So I think latex2png
is a good way to go at the moment. Plus LaTeX can do a lot more than just math
(e.g., diagrams) and the output looks much nicer.

Cheers,

Michael





reply via email to

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