From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Stewart Subject: latex export of org-mode: verbatim block in a figure Date: Thu, 14 Mar 2013 15:33:50 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGAAh-0001dO-Lm for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 11:34:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGAAZ-0006Vs-8M for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 11:34:23 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:53891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGAAZ-0006Vg-1g for emacs-orgmode@gnu.org; Thu, 14 Mar 2013 11:34:15 -0400 Received: by mail-pb0-f47.google.com with SMTP id rp2so2386912pbb.34 for ; Thu, 14 Mar 2013 08:34:13 -0700 (PDT) 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 What I would like to do is simple: wrap a verbatim code block within a Figure, so that I can refer to it elsewhere in my org-mode file. How is this achieved? A naive solution, which does not work, looks like: #+CAPTION: My caption #+LABEL: fig:my-api #+ATTR_LaTeX: width=130mm,height=30mm #+BEGIN_SRC haskell foo :: Int -> String bar :: String -> Int #+END_SRC How would I achieve this? -- Rob