[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Manually enable package completion
From: |
Denis Bitouzé |
Subject: |
Re: Manually enable package completion |
Date: |
Mon, 30 May 2022 16:20:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Le 30/05/22 à 15h30, Denis Bitouzé a écrit :
>> I was thinking about the missing definition for environments like
>> ltx-code and such. Also other macros like \package, \software, \file,
>> \letgutacro etc.
>
> Okay :)
Well, not that easy when you don't know anything to `elisp` :$
Looking at `tcolorbox.el` and `listings.el`, I tried the following for
the environments `ltx-code` and friends:
┌────
│ (defvar LaTeX-ltx-code-keyval-options
│ '(("title")
│ ("notitle")
│ ("adjusted title")))
│
│ (defun LaTeX-ltx-code-keyval-options ()
│ "Return an updated list of key=vals from letgut class."
│ (append
│ ;; Standard key=vals:
│ LaTeX-listings-key-val-options))
│
│ (LaTeX-add-environments
│ '("bookreview" LaTeX-env-args
│ (TeX-arg-key-val (("title")
│ ("reviewer")
│ ("bibkey")
│ ("frontcover")
│ ("price"))))
│ '("ltx-code" LaTeX-env-args
│ [TeX-arg-key-val (LaTeX-ltx-code-keyval-options)])
│ '("ltx-code-result" LaTeX-env-args
│ [TeX-arg-key-val (LaTeX-ltx-code-keyval-options)])
│ '("ltx-code-external-result" LaTeX-env-args
│ [TeX-arg-key-val (LaTeX-ltx-code-keyval-options)]
│ TeX-arg-file))
└────
but it doesn't work:
┌────
│ mapcar: Wrong type argument: listp, LaTeX-ltx-code-keyval-options
└────
--
Denis
- Manually enable package completion, Denis Bitouzé, 2022/05/13
- Re: Manually enable package completion, Arash Esbati, 2022/05/13
- Re: Manually enable package completion, Denis Bitouzé, 2022/05/13
- Re: Manually enable package completion, Arash Esbati, 2022/05/13
- Re: Manually enable package completion, Denis Bitouzé, 2022/05/23
- Re: Manually enable package completion, Arash Esbati, 2022/05/24
- Re: Manually enable package completion, Denis Bitouzé, 2022/05/30
- Re: Manually enable package completion,
Denis Bitouzé <=
- Re: Manually enable package completion, Arash Esbati, 2022/05/30
Re: Manually enable package completion, Mandar Mitra, 2022/05/13