emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) o


From: Miguel Ruiz
Subject: Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip
Date: Sun, 1 Dec 2013 09:44:37 +0000 (GMT)

Thank you, Jambunathan.

I was exploring

(defconst org-file-apps-defaults-cygwin
  '((remote . emacs)
    (t . "cygstart %s")
    (system . "cygstart %s")
    ("ps.gz"  . "gv %s")
    ("eps.gz" . "gv %s")
    ("dvi"    . "xdvi %s")
    ("fig"    . "xfig %s")))
(defun org-default-apps ()
  "Return the default applications for this operating system."
  (cond
   ((eq system-type 'darwin)     org-file-apps-defaults-macosx)
((eq system-type 'cygwin) org-file-apps-defaults-cygwin)
 ((eq system-type 'windows-nt) org-file-apps-defaults-windowsnt) (t org-file-apps-defaults-gnu)))
And it works for me so far. Your code is more compact but an ad-hoc solution as well. It is worth to take into consideration. Thanks again.

I suppose you would like to know I have also tweaked your directions about odt-mathml for cygwin:

(setq org-latex-to-mathml-convert-command
  "java -jar $(cygpath -pw %j) -unicode -force -df %o %I")
(setq org-latex-to-mathml-jar-file 
"/home/user/tmp-odt/mathtoweb.jar")

with great success (Java 1.7 update 25, mathtoweb 4.0.0).

Miguel.



reply via email to

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