From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Re: Captions for src and example blocks Date: Mon, 16 Jan 2012 10:00:51 +0900 Message-ID: <4F1376C3.2020806@gmail.com> References: <878vlawu6d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmawL-00078n-Cd for emacs-orgmode@gnu.org; Sun, 15 Jan 2012 20:00:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmawJ-00025p-6p for emacs-orgmode@gnu.org; Sun, 15 Jan 2012 20:00:49 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:47420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmawJ-00025k-2i for emacs-orgmode@gnu.org; Sun, 15 Jan 2012 20:00:47 -0500 Received: by iadj38 with SMTP id j38so245132iad.0 for ; Sun, 15 Jan 2012 17:00:46 -0800 (PST) In-Reply-To: <878vlawu6d.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: Org Mode Mailing List Hi Nicolas, Thanks for your answer. On 2012-01-14 17:43, Nicolas Goaziou wrote: > Hello, > > Christian Wittern writes: > >> There was a thread last April about a way to introduce captions and >> labels to src and example blocks (see >> http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00877.html). >> Now I would like to use captions in a similar way, but not just for >> LaTex, but also for the ODT export. So a generic org-mode solution >> would be much more helpful. I wonder if somebody has any idea about >> how to achieve this. > The new export engine has support for captions and labels for almost any > element, through the use of affiliated keywords. Thus, the following > special block will have ":caption" and ":name" properties attached to > it: It seems that the current LaTeX and ODT backends do not support this out of the box, also there is no word of this in the manual, so I assume it is still experimental? > [..] > > > Now, it doesn't mean that it will do anything during export, as > back-ends can choose to make use of those properties or ignore them. > > With regards to the previous special block, the e-latex back-end > currently makes use of the :name property, but ignore the :caption one. > Though it's not hard to support this by modifying accordingly the > `org-e-latex-special-block' function. Excuse my ignorance, but what is e-latex? Is that different from the standard Latex export called with C-c C-e l? Christian -- Christian Wittern, Kyoto