From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julian M. Burgos" Subject: Re: Extending ODT export Date: Tue, 07 May 2013 15:41:39 +0000 Message-ID: References: <162AA118-3C0D-4E3D-BA96-90CBB47003A0@ieee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZk1S-0000pw-Fc for emacs-orgmode@gnu.org; Tue, 07 May 2013 11:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZk1Q-0005R3-Oq for emacs-orgmode@gnu.org; Tue, 07 May 2013 11:41:46 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:37846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZk1Q-0005Qm-DY for emacs-orgmode@gnu.org; Tue, 07 May 2013 11:41:44 -0400 In-reply-to: <162AA118-3C0D-4E3D-BA96-90CBB47003A0@ieee.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Takaaki ISHIKAWA Cc: emacs-orgmode@gnu.org Hi Takaaki, Many thanks, but no luck. I tried adding the complete path to soffice as= you did below (of course with the right path in my machine) and no luck. If I do it just like you, the export format does not change and is still ODT. If instead of using (setq org-export-odt-preferred-output-format "pdf") I use (setq org-odt-preferred-output-format "pdf"), I get the same error message as before. Julian Takaaki ISHIKAWA writes: > Dear Julian, > > When I use "soffice" with exec-path setting, > the ODT export is failed like you. > So currently, I use the following setting: > > #+BEGIN_SRC emacs-lisp > (setq org-export-odt-preferred-output-format "pdf") > (setq org-export-odt-convert-processes > '(("LibreOffice" > "/Applications/LibreOffice.app/Contents/MacOS/soffice --h= eadless --convert-to %f%x --outdir %d %i") > ("unoconv" "unoconv -f %f -o %d %i"))) > #+END_SRC > > It works fine for me. > > Best regards, > Takaaki Ishikawa > > > On May 7, 2013, at 10:51 PM, "Julian M. Burgos" wrote= : > >> Hi Christian, >> The value >> for org-odt-convert-processes is (("LibreOffice" "soffice --headless -= -convert-to %f%x --outdir %d %i") >> ("unoconv" "unoconv -f %f -o %d %i")) >>=20 >> "soffice" is in my path, so I can run it from any directory. =20 >>=20 >> Carsten, I have permission in /home. That is where I had my trial org >> file. I have the same problem if I put my org file in other directory. >>=20 >> Julian >>=20 >>=20 >>=20 >> Carsten Dominik writes: >>=20 >>> On 7 mei 2013, at 14:29, Christian Moe wrote: >>>=20 >>>>=20 >>>> Hi, >>>>=20 >>>> Possible checks: What value do you have for org-odt-convert-processe= s? >>>> Does the command it provide launch LibreOffice services on your syst= em? >>>>=20 >>>> On my Mac, the default "soffice" command is not recognized out of th= e >>>> box; providing the full path to soffice >>>> ("/Applications/LibreOffice.app/Contents/MacOS/soffice") helps. Also= , it >>>> only seems to work when LibreOffice isn't already running, though I = may >>>> be wrong about that (I just tried this for the first time). >>>>=20 >>>=20 >>> Another check: Do you have write permissions in /home ? >>>=20 >>> Why is it trying to write the file to that location? >>>=20 >>> - Carsten >>>=20 >>>> Yours, >>>> Christian >>>>=20 >>>> Julian M. Burgos writes: >>>>=20 >>>>> By the way, it also fails with the "pdf" and "doc" options... >>>>>=20 >>>>> Julian M. Burgos writes: >>>>>=20 >>>>>> Hello everyone, >>>>>> I want to export via ODT directly into a "docx" format. Following= the >>>>>> instructions in the manual, I added=20 >>>>>> (setq org-odt-preferred-output-format "docx") >>>>>> to my .emacs file. But if I try to do an export I get the followi= ng >>>>>> error message: >>>>>>=20 >>>>>> "Export to /home/trial.docx failed" >>>>>>=20 >>>>>> I am using org-mode 8.0.2, LibreOffice 3.5.7.2, and Fedora 17. >>>>>>=20 >>>>>> Any ideas? >>>>>>=20 >>>>>> Julian >>>>=20 >>>>=20 >>=20 >>=20 >> --=20 >> Julian Mariano Burgos, PhD >> Hafranns=C3=B3knastofnunin/Marine Research Institute >> Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland >> S=C3=ADmi/Telephone : +354-5752037 >> Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 >> Netfang/Email: julian@hafro.is >>=20 > > -- > Takaaki ISHIKAWA > GITI, Waseda University > :) http://about.me/takaxp --=20 Julian Mariano Burgos, PhD Hafranns=C3=B3knastofnunin/Marine Research Institute Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland S=C3=ADmi/Telephone : +354-5752037 Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 Netfang/Email: julian@hafro.is