From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Charpentier Subject: Problem with references to babel source blocks (possible bug). Date: Wed, 19 Dec 2018 20:26:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZhU4-0008FB-IZ for emacs-orgmode@gnu.org; Wed, 19 Dec 2018 14:26:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZhTz-0006LT-JU for emacs-orgmode@gnu.org; Wed, 19 Dec 2018 14:26:20 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:37912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZhTz-0006Kj-4K for emacs-orgmode@gnu.org; Wed, 19 Dec 2018 14:26:15 -0500 Received: by mail-wm1-x334.google.com with SMTP id m22so7661382wml.3 for ; Wed, 19 Dec 2018 11:26:14 -0800 (PST) Received: from asus16-ec (vol75-6-82-228-67-28.fbx.proxad.net. [82.228.67.28]) by smtp.gmail.com with ESMTPSA id j76sm14672174wmf.26.2018.12.19.11.26.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Dec 2018 11:26:12 -0800 (PST) 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 I wish to be able to reference (i. e cross-references, lists) both some tables or figures AND the code producing the objects. To this effect, I added (distinct) #+caption:s to the source blocks AND to the results, adorned with (distinct) org-ref's labels. An example ( Min-Ref.org) is included in this Google Drive directory*: https://drive.google.com/drive/folders/1T6N_-WwphlnL2mB4f6BgX0u1K5mLnz4i?usp=sharing . The comparison of this source, the LaTeX code obtained by org-latex export-to latex (Min-Ref.tex) and the resultant PDF (Min-Ref exported by org-latex-export-to-pdf.pdf) show that the labels attributed to source blocks are mislabeled as figures. Furthermore, while the org source requests a list of figure, a list of table and a list of listings (in that order), the list of figures appears *after* the list of tables. I am tempted to conclude that there is some confusion between figures and listings. Further attempts tend to show that the problem may live n the core org's code, rather than any specific exporter : The ODT "native" exporter (org-odt-export-to-odt) is much less capable, as shown in Min-Ref exported by org-odt-export-to-odt.odt. Attempts to export via Pandoc to PDF (Min-Ref exported by org-pandoc- export-to-latex-pdf.pdf), ODT (Min-Ref exported by org-pandoc-export- to-odt.odt) and DOCX (Min-Ref.docx) show that these exporters may need some specific configurations in order to be even vaguely usable. Previous trials, using #+names: rather than org-ref's labels, gave similar failures. If needed, I can reproduce these trials. So I have a couple questions : 1) Is the confusion of source blocks and figures a bug, or do I miss a subtle point ? 2) Is there some introductory material to the care and feeding of ox- pandoc demonstrating the use of this exporter's options to enable the addition of the needed features (figure inclusion, tables of tables / figures / listings, etc...) ? The "manual" available as a README is way too terse to be usable without diving in the source code and pandoc's documentation. Sincerely, -- Emmanuel Charpentier * Six attempts at posting those files attached to the present mail have convinced me that the list manager rejects at least the messages containing some attachments (docx ? dot ?) ; I'm a little bit fed up with this...