I modified the latex2png-move2pubdir function to this (with an extra line to move the png file to the output-dir ) . Sorry, I am still learning how to contribute to the project, and am not sure how to submit a "patch".
(defun latex2png-move2pubdir (file prefix pubdir) "Move FILE to the PUBDIR folder. This is done so that the resulting images do not clutter your main publishing directory. Old files with PREFIX in the name are deleted." (if (and (file-exists-p file) (file-directory-p pubdir)) (progn (let ((files (file-expand-wildcards (concat pubdir prefix "_*") t))) (copy-file file (concat pubdir (file-name-nondirectory file)) t) (copy-file file (concat output-dir "/latex/" (file-name-nondirectory file)) t) (delete-file file) (concat "./latex/" (file-name-nondirectory file)))) (message "The latex folder does not exist!"))) Should a subdirectory of images in the wiki directory be moved to the publishing directory ? Is that a feature of muse-mode publishing ? On 10/13/05, Na Li <[EMAIL PROTECTED]> wrote: > On 12 Oct 2005, Michael Olson wrote: > > > Chris Lowis <[EMAIL PROTECTED]> 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 > > > > _______________________________________________ > emacs-wiki-discuss mailing list > emacs-wiki-discuss@nongnu.org > http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss > -- Chris Lowis Research Student http://www.chrislowis.co.uk/ _______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@nongnu.org http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss