[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) |
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 <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")
> #+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
signature.asc
Description: PGP signature
- [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Alan Schmitt, 2015/11/16
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex,
Alan Schmitt <=
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Rasmus, 2015/11/20
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Alan Schmitt, 2015/11/20
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Alan Schmitt, 2015/11/23
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Rasmus, 2015/11/23
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Alan Schmitt, 2015/11/24
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Rasmus, 2015/11/24
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Alan Schmitt, 2015/11/25
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Rasmus, 2015/11/25
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Alan Schmitt, 2015/11/27
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, Rasmus, 2015/11/27