emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Qqwy/Wiebe-Marten <qqwy@gmx.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)]
Date: Fri, 05 Mar 2021 13:01:15 +0100	[thread overview]
Message-ID: <87mtvhvmgk.fsf@posteo.net> (raw)
In-Reply-To: <44d3ced9-e96e-6fe0-7635-706addb62e49@gmx.com> (qqwy@gmx.com's message of "Thu, 4 Mar 2021 16:38:09 +0100")

Hi,

Qqwy/Wiebe-Marten <qqwy@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 



      parent reply	other threads:[~2021-03-05 12:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 15:38 Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)] Qqwy/Wiebe-Marten
2021-03-05  2:45 ` Timothy
2021-03-05  3:06   ` Josiah Schwab
2021-03-05 12:01 ` Juan Manuel Macías [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtvhvmgk.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=qqwy@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).