From mboxrd@z Thu Jan 1 00:00:00 1970 From: RJ Cunningham Subject: issues with export of LaTeX figure captions Date: Mon, 06 May 2013 08:50:08 +0800 Message-ID: <87y5bt9bjz.fsf@iinet.net.au> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ9cx-0002uN-1L for emacs-orgmode@gnu.org; Sun, 05 May 2013 20:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZ9cw-00008e-3p for emacs-orgmode@gnu.org; Sun, 05 May 2013 20:50:02 -0400 Received: from icp-osb-irony-out2.external.iinet.net.au ([203.59.1.218]:56998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ9cv-0008Vw-N8 for emacs-orgmode@gnu.org; Sun, 05 May 2013 20:50:02 -0400 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 G'day fellow orgmode users, I've encountered an issue/difference with the way the recent "babel processor" handles captions. In versions prior to 8 the following WORKED (on export produced a figure environment with a caption): #+CAPTION: Fails to produce table environment and so caption in the new orgmode #+LABEL: fig:fails #+begin_src R :session :results graphics :file fails.pdf :exports results plot(1:10) #+end_src Under orgmode version 8.0.2 (8.0.2-2-g93da18-elpa the same code does not work, the includegraphics is exported sans the figure environment. Under this latest orgmode the following does work: #+begin_src R :session :results graphics :file ok.pdf :exports results plot(1:10) #+end_src #+CAPTION: Succeeds to produce table environment and so caption #+LABEL: fig:OK #+RESULTS[2d39a23f088d95e808bb867f97a0ecd2df621bbd]: [[file:ok.pdf]] However, this second construction of code has the following issues: 1. it is different to prior method which worked 2. it is ugly to have the caption sandwiched between the code and the results 3. often, but not always, when the code is re-executed the caption and label is lost I also see that HTML export also fails to produce a caption. Is this an issue in orgmode that can be addressed or is it an issue with my understanding? I must admit as much as I like org-babel I have long found the options for headers and arguments hard to understand well. Cheers, Robert Cunningham