From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Charpentier Subject: Slight problems with links Date: Mon, 29 Apr 2019 09:35:50 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:45975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL0vq-0007am-Et for emacs-orgmode@gnu.org; Mon, 29 Apr 2019 03:42:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hL0pO-0002ah-MM for emacs-orgmode@gnu.org; Mon, 29 Apr 2019 03:35:55 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]:21118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hL0pO-0002aI-GY for emacs-orgmode@gnu.org; Mon, 29 Apr 2019 03:35:54 -0400 Received: from zen-book-flip (unknown [82.228.67.28]) (Authenticated sender: emm.charpentier) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 66214B005A9 for ; Mon, 29 Apr 2019 09:35:51 +0200 (CEST) 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: emacs-orgmode Dear list, one of my uses od org-mode is to prepare documents wrapping R (and sometimes Sagemath) call results in interpretation text. My reference output is .pdf documents, but I *have* to prepare a .docx version (for use in managerial spheres, where computer literacy is *very* low. Cross-references and citations are a sine qua non, maths are useful. I have been annoyed by a couple of deficiencies and inconsistencies between exporters, so I prepared a test document testing various cases. This documents and some exports are too big to be atached but can be downloaded from https://drive.google.com/open?id=1T6N_-WwphlnL2mB4f6BgX0u1K5mLnz4i (NE = Native exporter, PE= ox-pandoc exporter). TL;DR : * I tested the built-in latex/pdf exporter as well as ox-pandoc, the latter both for .pdf and .docx export. The built-in ODT exporter doesn't export citations ; therefore, I didn't test it further. * org-ref's :labels and :refs do not export to anything but the built-in latex exporter. The native system of #+NAME:s and #+CAPTION:s, a bit on the heavy side, seems not to fail (except that they do not expand in a caption...). * Maths, tables, figures are unproblematic. * The requirements of org-reftex, the built-in latex exporter and ox- pandoc being mutually incompatible, and some ingenuity is required. see the org source. Org-ref's requirements do not simplify the situation... * Code snippets (i. e. source blocks exporting code) have a captioning/numbering problem : - With the built-in latex exporter, they are numbered and labeled as figures. - The pandoc latex exporter numbers them separately (as seen by referencing them), but do not output this number (nor the category) before the caption. - The pandoc .docx exporter works as advertised. So I have a couple of questions: * What can be done to reconcile org-ref's, latex-exporter's and ox- pandoc's requirements for bibliographies ? * How to fix the pdf exporters' quirks with code snippets ? HTH, -- Emmanuel Charpentier