[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] interaction between org-latex-custom-lang-environments and name

From: Alan Schmitt
Subject: Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex
Date: Fri, 20 Nov 2015 08:55:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)


I was wondering if someone had been able to reproduce this, and if so
should I file it as a bug?



On 2015-11-16 13:59, Alan Schmitt <address@hidden> 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")
> 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

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]