From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: the role of org-odt-preferred-output-format etc Date: Sun, 10 Apr 2016 11:09:45 -0400 Message-ID: References: <87mvp139fh.fsf@mat.ucm.es> <87y48liony.fsf@ericabrahamsen.net> <8760vp37k4.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apGzm-00008M-OO for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 11:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apGzl-00076E-I0 for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 11:09:50 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:36433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apGzl-000767-CM for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 11:09:49 -0400 Received: by mail-qg0-x22f.google.com with SMTP id f52so126374423qga.3 for ; Sun, 10 Apr 2016 08:09:49 -0700 (PDT) In-reply-to: <8760vp37k4.fsf@mat.ucm.es> 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" To: Uwe Brauer Cc: emacs-orgmode@gnu.org I convert to DOC with the following on OS X: (use-package ox-odt :ensure nil :config (progn (setq org-odt-preferred-output-format "doc") (setq org-odt-convert-processes '(("LibreOffice" "/path/to/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to %f%x %i"))))) It fails if LibreOffice is running, but works if it is not running. -k. On 2016-04-10 at 09:41, Uwe Brauer wrote: >>>> "Eric" == Eric Abrahamsen writes: > > > Uwe Brauer writes: > >> Hello > >> > >> Maybe I misunderstood the manual > >> http://orgmode.org/manual/Extending-ODT-export.html > >> and > >> http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter > >> > >> I can successfully convert a org file to odt, but sometimes I need it to > >> be directly in doc format. > >> > >> So I thought I set org-odt-preferred-output-format > >> to «doc». > > > I set that option to the string "rtf", and everything works as expected. > > You don't actually specify the preferred output, you just export to ODT, > > and then the secondary conversion happens automtically. Ie, I now just > > export to ODT, and automatically end up with an RTF file. I haven't > > tried that programmatically, but I'd guess it works the same way: just > > don't put the "doc" in there at all. Does that work? > > I made some progress, I tried out docx and it failed I went back to doc > format in in the message buffer, the following lines > > Executing soffice --headless --convert-to doc:"MS Word 97" --outdir /home/oub/tex/Proy-MTM-2016/LaTeX-org/ /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt > > Export to /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.doc failed > > Indicate that it fails again, but I don't understand why. > > I tried rtf and got > > Executing soffice --headless --convert-to doc:"MS Word 97" --outdir /home/oub/tex/Proy-MTM-2016/LaTeX-org/ /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt > > Export to /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.doc failed > > He also claims that the directory > /home/oub/tex/Proy-MTM-2016/LaTeX-org/rft does not exist. Why the heck > he needs it is beyond me. > > What I understand is that he uses soffice, which is the official old > version from my ubuntu version, I have newer versions which I installed > in /opt/libreoffice4.3 and /opt/libreoffice5.1. > > How can I tell org to use those? > > Uwe Brauer