From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: interaction between org-latex-custom-lang-environments and name when exporting to latex Date: Mon, 16 Nov 2015 13:59:47 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyJNv-0006bj-Qu for emacs-orgmode@gnu.org; Mon, 16 Nov 2015 07:59:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyJNq-0000oA-Mf for emacs-orgmode@gnu.org; Mon, 16 Nov 2015 07:59:51 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:21192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyJNq-0000o4-HD for emacs-orgmode@gnu.org; Mon, 16 Nov 2015 07:59:46 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: =2D-8<---------------cut here---------------start------------->8--- (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"))) =2D-8<---------------cut here---------------end--------------->8--- Org file: =2D-8<---------------cut here---------------start------------->8--- #+name: test #+BEGIN_SRC emacs-lisp (message "hello") #+END_SRC =2D-8<---------------cut here---------------end--------------->8--- Exported latex (only for the source block): =2D-8<---------------cut here---------------start------------->8--- \begin{common-lisp-code} (message "hello") \label{orgsrcblock1} \end{common-lisp-code} =2D-8<---------------cut here---------------end--------------->8--- The problem is the =E2=80=9C\label=E2=80=9D in the middle of the source blo= ck, which plays badly with minted. Is this a known bug? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated November 9, 2015, Mauna Loa Obs.): 399.06= ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWSdNDAAoJEAQNCjtO0uXHr64IAKjZyy7bxI+HyI0WGxlv+Nkm bfVOP8TPV6dl/UIKv16QFNgmYYjxW02BOJEbdM2+BmYAzNb3IrcCI7MekKUn+5ur 30vkWXr0PWcOdHrQqnEd6XpveJ29/bz41hTRjqa9g+Lei/j0J4GNdDJLEqUhgrXW r06AlKJdO6EfWKOxIcPLuGHCe7NqR5ey6RjMHeRNJxxODcFejDRFkfFCK2kaLBJU Zdpv620eG6VnRfYjJmA2Albd4OnSeDS+aDqThSnpNgc0tqO66TX/zSy6P6Vadnms 4pafS7sp0gGnPOaQmUCaRg8aHLZQ/0OJhM4Ap6T7IbbPd790CEBAfyzDVoR/uP8= =bZcB -----END PGP SIGNATURE----- --=-=-=--