Pedro Andres Aranda Gutierrez <[email protected]> writes:
> OK, done (hopefully.)
I have a few more comments.
> Subject: [PATCH] ox-latex.el: New variable org-latex-descriptive-environment
>
> lisp/ox-latex.el: (org-latex-descriptive-environment): New custom
> variable with options for the custom interface.
> (org-latex-plain-list): use it instead of the hard-coded value.
use->Use
> +*** Description lists in LaTeX export
> +#+cindex: description lists, in @LaTeX{} export
> +#+vindex: org-latex-descriptive-environment
> +
> +Description lists are exported using the LaTeX environment
> +~description~ by default. You can change it setting custom variable
> +~org-latex-descriptive-environment~. You may need to do so, if you
> +mix plain list items with descriptive items like in:
> +
> +#+begin_src org
> +- Note :: this is a list of things I need
> +- Water
> +- Sleep
> +- Silence
> +#+end_src
> +
> +To use environment ~itemize~ in this case, add this to your
> +configuration
> +
> +#+begin_src emacs-lisp
> +(setq-default org-latex-descriptive-environment "itemize")
> +#+end_src
It is worth noting that
#+attr_latex: :environment itemize
will still work on per-list basis.
> +(defcustom org-latex-descriptive-environment "description"
> + "The environment to use for lists tagged as descriptive.
> +
> +Set this variable 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 "User defined"))
> + :safe #'stringp)
We might also provide in-buffer keyword for this option.
That's not super-important, but would be cleaner.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>