From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giles Chamberlin Subject: src blocks, listings package and captions Date: Wed, 24 Aug 2011 16:58:35 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwFwz-00047b-Gg for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 12:05:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwFwy-00081x-Gn for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 12:05:09 -0400 Received: from lo.gmane.org ([80.91.229.12]:59243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwFwy-00080h-Bd for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 12:05:08 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwFww-0005Tu-DF for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 18:05:06 +0200 Received: from 64.103.94.44 ([64.103.94.44]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Aug 2011 18:05:06 +0200 Received: from giles.chamberlin by 64.103.94.44 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Aug 2011 18:05:06 +0200 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 I'm using the listings package and org-version 7.4 to generate latex/pdf output including source snippets. I'd like to add captions: "Figure 1: My code" and tried with the following to no avail: #+caption: My code #+begin_src clojure ;; stuff #+end_src Do I have to wrap this in \begin{figure}\caption{} or is there a simpler way? -- Giles Chamberlin Engineering Director Cisco Systems Ltd