From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Table caption in Latex export with :float nil Date: Thu, 12 Mar 2015 19:06:32 +0530 Message-ID: <0935B34F-25B2-4CF4-8DA6-3A8B6752162C@agrarianresearch.org> References: <7FE04555-FBB1-4A43-A50C-EF81E8F37308@agrarianresearch.org> <87r3svudbt.fsf@gmx.us> <239B1E00-B975-4FEA-9826-DDB82D7B4C8B@agrarianresearch.org> <87sidbr5yx.fsf@gmx.us> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3JH-00029A-Ko for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 09:38:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW3JC-0001uv-MK for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 09:37:59 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:37231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW3JC-0001uF-Gd for emacs-orgmode@gnu.org; Thu, 12 Mar 2015 09:37:54 -0400 Received: by paceu11 with SMTP id eu11so20662337pac.4 for ; Thu, 12 Mar 2015 06:37:53 -0700 (PDT) In-Reply-To: <87sidbr5yx.fsf@gmx.us> 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: Rasmus Cc: org-mode mailing list >>=20 >> We need to consider the scenario that if we need a captioned table >> without a floating environment, what is the right way of obtaining >> it. >=20 > Is that a question? A right approach is to use the float package as = you > did. I don't like it cause it redefines floats. Another right = approach > is not to make it a float if you don't want it to float.... Then you > could use something like capt-of to get a caption and increase the = counter > in question. This can be dangerous as floats could get out of order. >=20 > ATM for your example you could use either: >=20 > #+begin_mdframed > #+attr_latex: :float nil > #+LATEX: \captionof{table}{\label{milk-consumption-india}Average = consumption of milk, India, kilograms per capita per annum} > | Year | Rural | Urban | All | > |---------------------------------+-------+-------+------| > | 1983 | 38.7 | 55.6 | 44.7 | > | 1993=E2=80=931994 | 50.3 | 66.4 | 54.3 | > | 2004=E2=80=932005 | 50.2 | 69.3 | 55 | > | 2009=E2=80=932010 | 51.7 | 71.6 | 57.1 | > #+end_mdframed >=20 >=20 Thanks, that is what I was trying to do for several days :). > Which relies on package-float's H. >=20 >> That is needed if you want to insert a table in an mdframed block. >=20 > The previous discussion is here: >=20 > http://thread.gmane.org/gmane.emacs.orgmode/95224/focus=3D95229 >=20 I did see this, but needed an example to understand what was going to = work. Specifying \captionof in a separate line did not occur to me. >=20 > You are using the float package. It's heretic, but don't worry about > it=E2=80=A6 >=20 :) Thanks Vikas=