From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julian M. Burgos" Subject: Re: Extending ODT export Date: Fri, 10 May 2013 10:04:05 +0000 Message-ID: References: <162AA118-3C0D-4E3D-BA96-90CBB47003A0@ieee.org> <969F330B-BF74-4C3F-A166-13BE3DFF2EF6@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]:34772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UakBV-0000kp-7p for emacs-orgmode@gnu.org; Fri, 10 May 2013 06:04:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UakBT-0004xx-FN for emacs-orgmode@gnu.org; Fri, 10 May 2013 06:04:17 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:47776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UakBT-0004xR-45 for emacs-orgmode@gnu.org; Fri, 10 May 2013 06:04:15 -0400 In-reply-to: <969F330B-BF74-4C3F-A166-13BE3DFF2EF6@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 mailing list Org" Thanks Takaaki! That did the trick. Now things work as they should. :) Takaaki ISHIKAWA writes: > Dear Julian, > > Sorry, the code is an old setting for the previous org. > Please try org-odt-preferred-output-format. > > #+BEGIN_SRC emacs-lisp > (setq org-odt-preferred-output-format "pdf") > (setq org-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 > > Best, > Takaaki > > On May 8, 2013, at 12:06 AM, Takaaki ISHIKAWA wrote: > >> Dear Julian, >>=20 >> When I use "soffice" with exec-path setting, >> the ODT export is failed like you. >> So currently, I use the following setting: >>=20 >> #+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 >>=20 >> It works fine for me. >>=20 >> Best regards, >> Takaaki Ishikawa >>=20 >>=20 >> On May 7, 2013, at 10:51 PM, "Julian M. Burgos" wrot= e: >>=20 >>> 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 or= g >>> 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-process= es? >>>>> Does the command it provide launch LibreOffice services on your sys= tem? >>>>>=20 >>>>> On my Mac, the default "soffice" command is not recognized out of t= he >>>>> box; providing the full path to soffice >>>>> ("/Applications/LibreOffice.app/Contents/MacOS/soffice") helps. Als= o, 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. Followin= g 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 follow= ing >>>>>>> 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 >>=20 >> -- >> Takaaki ISHIKAWA >> GITI, Waseda University >> :) http://about.me/takaxp >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=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