Re: [O] BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures.

2019-05-01 Thread Nicolas Goaziou
Hello, Emmanuel Charpentier writes: > Dunno. Maybe \captionof{listing} ? I don't know either, but the above raises an error: LaTeX Error: No counter 'listing' defined. It could work, but the complete solution is probably a bit more involved. If you can write a setup that produces the desire

Re: [O] BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures.

2019-04-30 Thread Emmanuel Charpentier
Dear John, This does *not* work for me. See the attached files. I begin to suspect a very recent bug : I'm following MELPA, which updates about once a week. My org-version says: Org mode version 9.2.3 (9.2.3-11-g42abf5-elpaplus @ /home/charpent/.emacs.d/elpa/org-plus- contrib-20190429/). Cordially,

Re: [O] BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures.

2019-04-30 Thread John Kitchin
This works as expected in LaTeX for me with org-ref (you could probably use raw latex if you wanted): #+caption: The first source block. label:src-1 #+BEGIN_SRC ipython print('Hello world') #+END_SRC Later we refer to the code in Listing ref:src-1 or ref:src-2. That is different than Figure ref:

Re: [O] BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures.

2019-04-30 Thread Emmanuel Charpentier
Hi, Nicolas ! Le mardi 30 avril 2019 à 19:05 +0200, Nicolas Goaziou a écrit : > Hello, > > Emmanuel Charpentier writes: > > > Whereas the HTML exporter correctly recognize a source block as > > such, > > the LaTeX/PDF exporter does not. > > > > This can be demonstrated in a (minimal) org file

Re: [O] BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures.

2019-04-30 Thread Nicolas Goaziou
Hello, Emmanuel Charpentier writes: > Whereas the HTML exporter correctly recognize a source block as such, > the LaTeX/PDF exporter does not. > > This can be demonstrated in a (minimal) org file using *only* the > built-in tools (no external packages), where a source block is labelled > as such

[O] BUG: the builtin LaTeX/P DF exporter mislabels source blocks as figures.

2019-04-30 Thread Emmanuel Charpentier
I shall report formally the problems mentioned in http://lists.gnu.org/archive/html/emacs-orgmode/2019-04/msg00240.html, trying to isolate them as much as possible. I'll start with the simplest (and, IMHO, the most annoying). Whereas the HTML exporter correctly recognize a source block as such, t