Hi,

Qqwy/Wiebe-Marten <q...@gmx.com> writes:

> However, the LaTeX that is exported will still create normal `enumerize`
> lists that do /not/ show up as alphabetical but rather still use `1.`,
> `2.`, `3.` for numbering.
>
> I think this current behaviour is at the very least surprising, and
> possibly unintended.

I use the enumitem package
(http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf) for
lists in LaTeX. For an alphabetical list, for example:

#+begin_src org
  ,#+LaTeX_Header: \usepackage{enumitem}
  ,#+ATTR_LaTeX: :options [label=\alph*.,widest=a]
  a. Lorem
  b. ipsum
  c. dolor
#+end_src

And to export to LaTeX and HTML, you can define a macro like this:

#+begin_src org
  ,#+MACRO: alphalist (eval (if (org-export-derived-backend-p 
org-export-current-backend 'latex) "#+ATTR_LaTeX: :options 
[label=\\alph*.,widest=a]" "#+ATTR_HTML: :type a"))

  {{{alphalist}}}
  a. Lorem
  b. ipsum
  c. dolor'
#+end_src

Best regards,

Juan Manuel 


Reply via email to