Hello, I was wondering if someone had been able to reproduce this, and if so should I file it as a bug? Thanks, Alan On 2015-11-16 13:59, Alan Schmitt writes: > Hello, > > I want to export some code for a custom language environment (to be able > to use minted's global customization), and I find there is a strange > interaction with adding a name to the block. Here is an ECM. > > Init file: > (defvar emacsd-dir "~/.emacs.d/") > (add-to-list 'load-path (concat emacsd-dir "org/emacs/site-lisp/org")) > (require 'org) > > (require 'ox-latex) > > (setq org-latex-listings 'minted) > > (setq org-latex-custom-lang-environments > '((emacs-lisp "common-lisp-code"))) > > Org file: > #+name: test > #+BEGIN_SRC emacs-lisp > (message "hello") > #+END_SRC > > Exported latex (only for the source block): > \begin{common-lisp-code} > (message "hello") > \label{orgsrcblock1} > > \end{common-lisp-code} > > The problem is the “\label” in the middle of the source block, which > plays badly with minted. > > Is this a known bug? > > Thanks, > > Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO₂ (Updated November 9, 2015, Mauna Loa Obs.): 399.06 ppm