From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: interaction between org-latex-custom-lang-environments and name when exporting to latex Date: Fri, 20 Nov 2015 08:55:41 +0100 Message-ID: References: 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]:43628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzgXs-00070T-M3 for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 02:55:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzgXo-0001Hp-LK for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 02:55:48 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:21660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzgXo-0001H9-2y for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 02:55:44 -0500 In-Reply-To: (Alan Schmitt's message of "Mon, 16 Nov 2015 13:59:47 +0100") 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 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 =E2=80=9C\label=E2=80=9D in the middle of the source b= lock, 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 iQEcBAEBCgAGBQJWTtH9AAoJEAQNCjtO0uXHjJoH/2p6QnHt4m1xbRJEJmTY5+mK LKy4pQytwYj1b+RmSC5A74E8IQhOTSHqCN2zKnLy+gy2Tu/CXnLXxIaBDbp9qc+7 v1srp+i6oXTmPtKuBhs3z9zOo+8JQnqfx4JmuG8pfCzOORusCoJqN7IFHkfBur4h 16Y5HpAdrJfYPr8mHpOHVtrX/8pM7epF1qsQpy61edml4wdbTru4R1R6ntVfwX8b 3FxJbeiwqMU44LCq8ZhhlpoAybLafzyYkX9VfnEYTQqxzzZ3gLtDYkmSi69L5aZe q7mFNOzlMm/KXMK5BW7jmiW4GdFyztQkUEcZXMmBXybyQ4FQJE9jq2xQ1uT7o/w= =sGk3 -----END PGP SIGNATURE----- --=-=-=--