From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Table caption in Latex export with :float nil Date: Wed, 11 Mar 2015 11:24:29 +0530 Message-ID: <7FE04555-FBB1-4A43-A50C-EF81E8F37308@agrarianresearch.org> References: 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]:39678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVZbM-0004To-5F for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 01:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVZbI-0005mV-Vo for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 01:54:40 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:44162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVZbI-0005mN-R6 for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 01:54:36 -0400 Received: by pdjz10 with SMTP id z10so8349875pdj.11 for ; Tue, 10 Mar 2015 22:54:35 -0700 (PDT) Received: from [10.10.2.183] ([202.41.10.93]) by mx.google.com with ESMTPSA id tg14sm3937025pac.15.2015.03.10.22.54.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Mar 2015 22:54:35 -0700 (PDT) In-Reply-To: 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: org-mode mailing list This seems to work: #+name: milk-consumption-india #+attr_latex: :placement [H] :environment tabular :caption = \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 | | <4colc>Source: citet:anjani2014 | | | | Is :float deprecated? Vikas > On 11-Mar-2015, at 7:46 am, Vikas Rawal = wrote: >=20 > I need to insert a table in an mdframed box, for which I need to turn = off :float. The following, however, does not give me the caption: >=20 > #+name: milk-consumption-india > #+attr_latex: :float nil :environment tabular :caption = \caption{\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 | > | <4colc>Source: citet:anjani2014 | | | | >=20 >=20 > I have also tried (along with #+latex_header: \usepackage{caption}) >=20 > #+name: milk-consumption-india > #+attr_latex: :float nil :environment tabular :caption = \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 | > | <4colc>Source: citet:anjani2014 | | | | >=20 > Vikas >=20 >=20