From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] Captions for tables made by source blocks Date: Wed, 06 Mar 2013 11:05:19 +0100 Message-ID: <87k3pk268w.fsf@gmail.com> References: <20130306095512.GA1489@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDBEC-0003gn-1O for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 05:05:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDBE5-00057a-JL for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 05:05:39 -0500 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:36149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDBE5-00057T-CW for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 05:05:33 -0500 Received: by mail-we0-f175.google.com with SMTP id x8so7733269wey.6 for ; Wed, 06 Mar 2013 02:05:32 -0800 (PST) In-Reply-To: <20130306095512.GA1489@panahar> (Vikas Rawal's message of "Wed, 6 Mar 2013 15:25:12 +0530") 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 Hello, Vikas Rawal writes: > There has been some change in the behaviour of #+CAPTION in case of > tables made by source blocks. In the old exporter, #+CAPTION just > before #+BEGIN_SRC was sufficient to place the caption before the > table when the file was exported. > > The new exporter does not produce captions the same way. > > When I looked through the list archives, I found some discussion ( > http://list-archives.org/2012/08/20/emacs-orgmode-gnu-org/o-new-exporter-and-latex-attributes/f/2837855005, > and http://www.mail-archive.com/emacs-orgmode@gnu.org/msg57188.html ) > > It is, however, not clear if the problem was finally resolved and what > is the recommended practice. Could somebody explain? CAPTION keyword above a source block applies to the source block only. If the source block generates a table, you have to put a CAPTION above it, as it will not inherit the caption of the source block. It also implies that you need to name the results. Otherwise, source block will not recognize its own production, due to the CAPTION keyword above it. HTH, Regards, -- Nicolas Goaziou