From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [RFC] Extend :float attribute to src blocks and normalize syntax Date: Fri, 31 May 2013 16:47:34 -0400 Message-ID: <877gie98rd.fsf@pierrot.dokosmarshall.org> References: <878v2v17pj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiWEl-0000ym-Ha for emacs-orgmode@gnu.org; Fri, 31 May 2013 16:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiWEk-00009k-FD for emacs-orgmode@gnu.org; Fri, 31 May 2013 16:47:47 -0400 Received: from plane.gmane.org ([80.91.229.3]:53097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiWEk-00009f-82 for emacs-orgmode@gnu.org; Fri, 31 May 2013 16:47:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UiWEi-0001eJ-Qa for emacs-orgmode@gnu.org; Fri, 31 May 2013 22:47:44 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 May 2013 22:47:44 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 May 2013 22:47:44 +0200 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > The following patch extends :float attribute to src blocks (so they are > on par with tables and images). It also slightly changes syntax for this > attribute: > > | | Old | New | > |--------+---------------+----------| > | Tables | :float table | :float t | > | Images | :float figure | :float t | > > With this patch :float attribute also accepts a nil value in all cases, > preventing any floating mechanism, even if a caption is provided. In > particular, it replaces :long-listing attribute for src blocks: > > | | Old | New | > |------------+-----------------+------------| > | Src blocks | :long-listing t | :float nil | > > Overall, it makes :float syntax a bit more regular, but it implies some > gotchas. > > WDYT? > Is a binary value for :float enough? I thought (maybe incorrectly) that the value of :float would determine (at least for latex export) the floating environment for the table, giving one the option to use longtable or sidewaystable e.g. Is that the case? If so, how would you handle it in the new regime? -- Nick