[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: |
Mon, 30 Nov 2015 13:12:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
Hi,
On 2015-11-27 22:05, Rasmus <address@hidden> writes:
>>> Also, you need to denote that the defcustom was changed.
>>>
>>> :version "25.1"
>>> :package-version '(Org . "9.0")
>>>
>>> When you are at it, please add the missing tags, :group and :type.
>>
>> It's not a defcustom but a defvar. (But maybe it should be a defcustom …)
>
> It should be a defcustom. Feel free to fix it, preferably in a separate
> patch.
Here is a patch to do so.
From b94b5ba0bdb619cb9047efb19432216812eaf6a2 Mon Sep 17 00:00:00 2001
From: Alan Schmitt <address@hidden>
Date: Mon, 30 Nov 2015 13:07:56 +0100
Subject: [PATCH] ox-latex: Make org-latex-custom-lang-environments a defcustom
* ox-latex.el (org-latex-custom-lang-environments): Change from defvar
into a defcustom.
---
lisp/ox-latex.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index eaad29f..407df6b 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1021,7 +1021,7 @@ block-specific options, you may use the following syntax:
(string :tag "Minted option name ")
(string :tag "Minted option value"))))
-(defvar org-latex-custom-lang-environments nil
+(defcustom org-latex-custom-lang-environments nil
"Alist mapping languages to language-specific LaTeX environments.
It is used during export of src blocks by the listings and minted
@@ -1062,7 +1062,14 @@ will produce
\\end{minted}
\\caption{<caption>}
\\label{<label>}
- \\end{listing}")
+ \\end{listing}"
+ :group 'org-export-latex
+ :type '(repeat
+ (list
+ (symbol :tag "Language name ")
+ (string :tag "Environment name or format string")))
+ :version "25.1"
+ :package-version '(Org . "9.0"))
;;;; Compilation
--
2.6.3
> The rest looks good to me. Feel free to push (modulus someone else saying
> otherwise).
Thanks a lot, I pushed it.
Best,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated November 29, 2015, Mauna Loa Obs.): 400.37 ppm
signature.asc
Description: PGP signature
- Re: [O] interaction between org-latex-custom-lang-environments and name when exporting to latex, (continued)
- 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
- 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/30