Re: [O] Different kinds of enumerate in the same latex export
Eric S Fragawrites: > 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.
Re: [O] Different kinds of enumerate in the same latex export
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 signature.asc Description: PGP signature
Re: [O] Different kinds of enumerate in the same latex export
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
[O] Different kinds of enumerate in the same latex export
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.