Thanks for the update, this looks good! On the defcustom comment I made, I
think you can do both predefined and user-provided values like this (maybe
Ihor or another elisp expert can confirm?):
(defcustom org-latex-descriptive-environment "description"
"The environment to use for lists tagged as descriptive.
Set this variable to \"itemize\" or \"enumerate\" if using
- tag ::
upsets the typesetting of a list."
:group 'org-export-latex
:package-version '(Org . "10.0")
:type '(choice (const :tag "description (default)" "description")
(const :tag "itemize" "itemize")
(const :tag "enumerate" "enumerate")
(string :tag "Custom")))
I think it would require dropping the ":safe" tag. Honestly, it might be
simpler to use your original implementation.
Cheers,
Derek
On Sat, Apr 25, 2026 at 11:15 AM Pedro Andres Aranda Gutierrez <
[email protected]> wrote:
> Hi
>
> sending a delta to the patch to make sure everything is addressed. Answers
> inline...
>
> On Sat, 25 Apr 2026 at 15:38, Derek Chen-Becker <[email protected]>
> wrote:
>
>> Hi Pedro,
>>
>> Thanks for sending the patch. I have a couple of comments (mostly minor)
>> on the patch:
>>
>>
>> - Could you please include a unit test for this?
>>
>> Will do.
>
>>
>> - Sho uld the new defcustom go somewhere up in the "User Configurable
>> Variables" section (around line 325 of ox-latex.el)? You could probably
>> add
>> a new ";;; Lists" section
>>
>> Why not
>
>>
>> - Should the defcustom provide a list of defaults, e.g.
>> "description", "itemize", "custom" for people using the customize
>> interface?
>>
>> I was more inclined to leave it open, so that people could write the
> string in the customisation interface. May just a reaction to an
> over-hardcoded default ;-) Will see how to implement...
>
>>
>> - There's a typo in the org-manual.org change ("configguration")
>>
>> Woops...
>
>>
>> - I think that in the defcustom you want to quote "itemize" and
>> probably indent "- tag ::" to better indicate a setting and code block
>>
>> WIll take a look....
>
>>
>> - There seems to be an extra space in "#+begin_src emacs-lisp", and
>> an extra line after the defcustom
>>
>> The extra line is because I felt the file looks too crowded...
>
>
>> Cheers,
>>
>> Derek
>>
>>
>> On Thu, Apr 23, 2026 at 3:06 AM Pedro A. Aranda <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> Attached is a patch that allows users to customise the environment they
>>> want for descriptive lists. This gives us more flexibility when
>>> exporting to LaTeX,
>>>
>>> Best, /PA
>>>
>>> PS: hopefully fixed the template
>>> --
>>> Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
>>>
>>> 2nd year of the New Koprocracy
>>>
>>
>>
>> --
>> +---------------------------------------------------------------+
>> | Derek Chen-Becker |
>> | GPG Key available at https://keybase.io/dchenbecker and |
>> | https://pgp.mit.edu/pks/lookup?search=derek%40chen-becker.org |
>> | Fngrprnt: EB8A 6480 F0A3 C8EB C1E7 7F42 AFC5 AFEE 96E4 6ACC |
>> +---------------------------------------------------------------+
>>
>>
> Cheers, /PA
>
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
> Year 2 of the New Koprocracy
>
>
--
+---------------------------------------------------------------+
| Derek Chen-Becker |
| GPG Key available at https://keybase.io/dchenbecker and |
| https://pgp.mit.edu/pks/lookup?search=derek%40chen-becker.org |
| Fngrprnt: EB8A 6480 F0A3 C8EB C1E7 7F42 AFC5 AFEE 96E4 6ACC |
+---------------------------------------------------------------+