[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Problem with references to babel source blocks (possible bug).
From: |
Emmanuel Charpentier |
Subject: |
[O] Problem with references to babel source blocks (possible bug). |
Date: |
Wed, 19 Dec 2018 17:05:11 +0100 |
[ Sixth '!) attempt to send this question to emacs-orgmode. Sorry for the
possible duplicates... ]
I wish to be able to reference (i. e cross-references, lists) both sometables or figures AND the code producing the objects.To this effect, I added (distinct) #+caption:s to the source blocks ANDto the results, adorned with (distinct) org-ref's labels. An example isincluded in the enclosed file Min-Ref.org.The comparison of this source, the LaTeX code obtained by org-latexexport-to latex (Min-Ref.tex) and the resultant PDF (Min-Ref exportedby org-latex-export-to-pdf.pdf) show that the labels attributed tosource blocks are mislabeled as figures. Furthermore, while the orgsource requests a list of figure, a list of table and a list oflistings (in that order), the list of figures appears *after* the listof tables.I am tempted to conclude that there is some confusion between figuresand listings. Further attempts tend to show that the problem may live nthe 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 needsome specific configurations in order to be even vaguely usable.Previous trials, using #+names: rather than org-ref's labels, gavesimilar 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 asubtle 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 theaddition of the needed features (figure inclusion, tables of tables /figures / listings, etc...) ? The "manual" available as a README is waytoo terse to be usable without diving in the source code and pandoc'sdocumentation.Sincerely,--Emmanuel Charpentier
Min-Ref.org
Description: Binary data
Min-Ref.docx
Description: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Min-Ref.tex
Description: Text Data
Min-Ref exported by org-pandoc-export-to-odt.odt
Description: application/vnd.oasis.opendocument.text
Min-Ref exported by org-latex-export-to-pdf.pdf
Description: Adobe PDF document
Min-Ref exported by org-odt-export-to-odt.odt
Description: application/vnd.oasis.opendocument.text
Min-Ref exported by org-pandoc-export-to-latex-pdf.pdf
Description: Adobe PDF document