From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [ANN] e-latex back-end: changes to attributes syntax Date: Wed, 28 Nov 2012 14:27:35 +0100 Message-ID: <20121128132735.GA5988@kuru.dyndns-at-home.com> References: <87haoiewwr.fsf@gmail.com> <20121126003917.GB9942@kuru.dyndns-at-home.com> <87fw3w2jc6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdhg3-0003Rj-2j for emacs-orgmode@gnu.org; Wed, 28 Nov 2012 08:27:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tdhfw-0000SA-6z for emacs-orgmode@gnu.org; Wed, 28 Nov 2012 08:27:47 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:61752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdhfw-0000Rq-05 for emacs-orgmode@gnu.org; Wed, 28 Nov 2012 08:27:40 -0500 Received: by mail-ee0-f41.google.com with SMTP id d41so8927383eek.0 for ; Wed, 28 Nov 2012 05:27:39 -0800 (PST) Content-Disposition: inline In-Reply-To: <87fw3w2jc6.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Wed, Nov 28, 2012 at 01:58:09PM +0100, Nicolas Goaziou wrote: > Hello, > > Suvayu Ali writes: > > > >> Images accept `:float', `:placement' and `:options' as attributes. > >> `:float' accepts a symbol among `wrap', `multicolumn', and > >> `figure', which defines the float environment for the table (if > >> unspecified, an image with a caption will be set in a "figure" > >> environment). `:placement' is a string that will be used as > >> argument for the environment chosen. `:options' is a string that > >> will be used as the optional argument for "includegraphics" macro. > >> > > Since Beamer back-end doesn't redefine how images are handled, you can > use the same properties as above, within an attr_latex keyword. > Okay thanks. :) > About special environments for plain lists, I'm unsure if this is a good > idea. AFAIK many don't support overlay specifications so it would lead > to errors when one provides both a special environment and an overlay, > i.e.: > > --8<---------------cut here---------------start------------->8--- > #+attr_beamer: :environment inparaenum :overlay "+-" > - item 1 > - item 2 > --8<---------------cut here---------------end--------------->8--- > > Also, Beamer has its own way to render standard lists (through themes) > and it could cause problems with foreign packages. > > On the other hand, I can still make it easy for an user to shoot himself > in the foot: code-wise, it is cheap. What do you think? > Personally I think having the option to shoot myself in the foot is preferable over not being able to configure. But then others may not agree. Is it possible to disallow :overlay when :environment is provided? If so you could generate a warning during export. That said, the way I see it, most widely used list-like environments are of the "new item on a new line" kind (which are supported by overlays). I wanted to use inparaenum for ease of editing, in my slide I wanted an inline list (where overlays aren't really needed). So setting the two attributes simultaneously is probably very unlikely. I am quoting my use case below in case that helps the discussion. Something like item (1) would have been nice, however I ended up using (2). 1) Asymmetries can be constructed that are, #+attr_beamer: :environment "inparaenum" :options "i)" 1. CP-odd, 2. CPT-odd and 3. T-odd 2) Asymmetries can be constructed that are, i) CP-odd, ii) CPT-odd and iii) T-odd. Anyone else have any thoughts on this? -- Suvayu Open source is the future. It sets us free.