From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: org-ref exports nicely to html but not to odt Date: Fri, 04 Jan 2019 22:52:05 +0100 Message-ID: <87tvioyttm.fsf@geus3064linuxwsm.geus.dk> References: <87tviouz88.fsf@mat.ucm.es> <87va34yw6s.fsf@geus3064linuxwsm.geus.dk> <87zhsgf6ju.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [208.118.235.92] (port=59919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfXO9-0003WZ-AO for emacs-orgmode@gnu.org; Fri, 04 Jan 2019 16:52:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfXNy-0007DO-AQ for emacs-orgmode@gnu.org; Fri, 04 Jan 2019 16:52:14 -0500 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:39571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfXNy-0007BN-2Z for emacs-orgmode@gnu.org; Fri, 04 Jan 2019 16:52:10 -0500 Received: by mail-lj1-x22d.google.com with SMTP id t9-v6so33579112ljh.6 for ; Fri, 04 Jan 2019 13:52:09 -0800 (PST) In-reply-to: <87zhsgf6ju.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 On 2019-01-04 at 22:37 +0100, Uwe Brauer wrote: > I exported the org file in question to latex (I could also start > directly with latex for that matter.) Yes. > Could I stick with bibtex? Yes. No need to use biber + biblatex, you can stick with bibtex. I only run that command because my massive 3000+ bib file contains things that pandoc has trouble with (accents? Not sure). That command extracts the bibtex entries used in the current document. As I write this I realize this means you don't even need to compile the PDF and/or run bibtex. If you have a TeX file and an appropriate accompanying BiBTeX file, that should work. > pandoc -f latex -t docx -o test.docx --bibliography /home/oub/texmf/bibtex/bib/bibgraf.bib test.tex > > /home/oub/texmf/bibtex/bib/bibgraf.bib is my main bibtex date base. > > But this did not work pandoc gets frozen. > > What do I miss. I don't know. Try with a small bib file with 1 entry (and a TeX file that only cites that one entry). Does that work? Then maybe your bibgraf.bib has the same problem mine does (although I recall pandoc issuing an error and crashing, not just freezing). If this method works with a MWE, then the issue my be your full bib file. In this case you need to extract the entries used in this document (e.g. my method). Presumably this subset does not cause the pandoc issue. I also find extracting the entries useful for archiving a project. You can extract entries as I showed, or "bibexport .aux" (requires a compiled PDF), or http://korrekt.org/page/Note:How_to_Extract_Used_Entries_From_BibTeX_Files or other methods... -k.