From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Extending ODT export Date: Wed, 08 May 2013 09:11:21 +0200 Message-ID: <878v3q7xpi.fsf@med.uni-goettingen.de> 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: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZyXR-0007JK-Ba for emacs-orgmode@gnu.org; Wed, 08 May 2013 03:11:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZyXM-0006J7-O8 for emacs-orgmode@gnu.org; Wed, 08 May 2013 03:11:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:37397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZyXM-0006In-Er for emacs-orgmode@gnu.org; Wed, 08 May 2013 03:11:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UZyXJ-0006BC-B1 for emacs-orgmode@gnu.org; Wed, 08 May 2013 09:11:37 +0200 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 May 2013 09:11:37 +0200 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 May 2013 09:11:37 +0200 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: emacs-orgmode@gnu.org Hi all, 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 --headless --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, >> >> 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 --headless --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")) >>> >>> "soffice" is in my path, so I can run it from any directory. >>> >>> 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. >>> >>> Julian >>> >>> >>> >>> Carsten Dominik writes: >>> >>>> On 7 mei 2013, at 14:29, Christian Moe wrote: >>>> >>>>> >>>>> Hi, >>>>> >>>>> Possible checks: What value do you have for org-odt-convert-processes? >>>>> Does the command it provide launch LibreOffice services on your system? >>>>> >>>>> On my Mac, the default "soffice" command is not recognized out of the >>>>> 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). >>>>> >>>> >>>> Another check: Do you have write permissions in /home ? >>>> >>>> Why is it trying to write the file to that location? >>>> >>>> - Carsten >>>> >>>>> Yours, >>>>> Christian >>>>> >>>>> Julian M. Burgos writes: >>>>> >>>>>> By the way, it also fails with the "pdf" and "doc" options... >>>>>> >>>>>> Julian M. Burgos writes: >>>>>> >>>>>>> Hello everyone, >>>>>>> I want to export via ODT directly into a "docx" format. Following the >>>>>>> instructions in the manual, I added >>>>>>> (setq org-odt-preferred-output-format "docx") >>>>>>> to my .emacs file. But if I try to do an export I get the following >>>>>>> error message: >>>>>>> >>>>>>> "Export to /home/trial.docx failed" >>>>>>> >>>>>>> I am using org-mode 8.0.2, LibreOffice 3.5.7.2, and Fedora 17. >>>>>>> >>>>>>> Any ideas? >>>>>>> >>>>>>> Julian >>>>> >>>>> >>> >>> >>> -- >>> Julian Mariano Burgos, PhD >>> Hafrannsóknastofnunin/Marine Research Institute >>> Skúlagata 4, 121 Reykjavík, Iceland >>> Sími/Telephone : +354-5752037 >>> Bréfsími/Telefax: +354-5752001 >>> Netfang/Email: julian@hafro.is >>> >> >> -- >> Takaaki ISHIKAWA >> GITI, Waseda University >> :) http://about.me/takaxp >> >> >> >> >> >> >> >> > > -- > Takaaki ISHIKAWA > GITI, Waseda University > :) http://about.me/takaxp I did not follow closely, but I remember that I had problems to use LibreOffice to convert a *already open* document. So, if you are viewing the doc in LibreOffice while you try your export, you might run into problems. This is a reported bug in LibreOffice. The suggested work-around is to use a temporary profile as in: libreoffice "-env:UserInstallation=file:///tmp/LibO_Conversion" --headless --invisible --convert-to txt:text "$FILENAME" >/dev/null ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You might try to add that to the conversion command and see whether it helps. Best, Andreas