* Different kinds of enumerate in the same latex export
@ 2017-09-05 9:41 Julien Cubizolles
2017-09-05 9:52 ` Rasmus
2017-09-05 9:58 ` Eric S Fraga
0 siblings, 2 replies; 4+ messages in thread
From: Julien Cubizolles @ 2017-09-05 9:41 UTC (permalink / raw)
To: emacs-orgmode
I have to use two different enumerate items in the same document, one
numbered (the default enumerate) and the other one ordered
alphabetically (which I will now call "plickers"). In my LaTeX class,
I've defined the "plickers" environment
--8<---------------cut here---------------start------------->8---
\RequirePackage{enumitem}
\newlist{plickers}{enumerate}{2}
\setlist[plickers]{label=\alph*.}
--8<---------------cut here---------------end--------------->8---
But I don't know how to have org-mode use one or the other to export an
ordered list. With:
--8<---------------cut here---------------start------------->8---
(setq org-beamer-environments-extra
'(
("Plickers" "P" "\\begin{plickers}%a%U" "\\end{plickers}")))
--8<---------------cut here---------------end--------------->8---
The following obviously creates a enumerate environment nested within a
plickers one, not what's intended.
--8<---------------cut here---------------start------------->8---
**** essai :B_Plickers:
:PROPERTIES:
:BEAMER_env: Plickers
:END:
1. 1st item
2. 2nd item
--8<---------------cut here---------------end--------------->8---
Does orgmode allow to pass some properties to a list that could be used
to alter its format ?
Julien.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Different kinds of enumerate in the same latex export
2017-09-05 9:41 Different kinds of enumerate in the same latex export Julien Cubizolles
@ 2017-09-05 9:52 ` Rasmus
2017-09-05 9:58 ` Eric S Fraga
1 sibling, 0 replies; 4+ messages in thread
From: Rasmus @ 2017-09-05 9:52 UTC (permalink / raw)
To: emacs-orgmode
Hi Julien,
You could do it like this:
#+latex_header: \usepackage{enumitem}
#+latex_header: \newlist{plickers}{enumerate}{2} \setlist[plickers]{label=\alph*.}
#+attr_latex: :environment plickers
1. A
2. B
Hope it helps,
Rasmus
--
One thing that is clear: it's all down hill from here
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Different kinds of enumerate in the same latex export
2017-09-05 9:41 Different kinds of enumerate in the same latex export Julien Cubizolles
2017-09-05 9:52 ` Rasmus
@ 2017-09-05 9:58 ` Eric S Fraga
2017-09-05 13:09 ` Julien Cubizolles
1 sibling, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2017-09-05 9:58 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
On Tuesday, 5 Sep 2017 at 11:41, Julien Cubizolles wrote:
> Does orgmode allow to pass some properties to a list that could be used
> to alter its format ?
Try maybe:
#+attr_latex: :environment plickers
1. first
2. second
Works for me with the etaremune environment (reverse ordered numbering).
--
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Different kinds of enumerate in the same latex export
2017-09-05 9:58 ` Eric S Fraga
@ 2017-09-05 13:09 ` Julien Cubizolles
0 siblings, 0 replies; 4+ messages in thread
From: Julien Cubizolles @ 2017-09-05 13:09 UTC (permalink / raw)
To: emacs-orgmode, Eric S Fraga
Eric S Fraga <esflists@gmail.com> writes:
> On Tuesday, 5 Sep 2017 at 11:41, Julien Cubizolles wrote:
>> Does orgmode allow to pass some properties to a list that could be used
>> to alter its format ?
>
> Try maybe:
>
> #+attr_latex: :environment plickers
> 1. first
> 2. second
>
> Works for me with the etaremune environment (reverse ordered numbering).
It does, thanks. However my plickers environment depends on enumitem that
doesn't play nice with beamer. It turns out that
--8<---------------cut here---------------start------------->8---
#+attr_latex: :options [a)]
1. first
2. second
--8<---------------cut here---------------end--------------->8---
works as well, without the need to define a new enumerate-like
environment.
Julien.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-05 13:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05 9:41 Different kinds of enumerate in the same latex export Julien Cubizolles
2017-09-05 9:52 ` Rasmus
2017-09-05 9:58 ` Eric S Fraga
2017-09-05 13:09 ` Julien Cubizolles
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).