From mboxrd@z Thu Jan 1 00:00:00 1970 From: AW Subject: Re: latex export of org-mode: verbatim block in a figure Date: Fri, 15 Mar 2013 11:03:38 +0100 Message-ID: <2065216.rjxAuvMVhd@linux-ik7b.site> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGRQh-00024C-NF for emacs-orgmode@gnu.org; Fri, 15 Mar 2013 06:00:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGRQf-0002Li-Vy for emacs-orgmode@gnu.org; Fri, 15 Mar 2013 06:00:03 -0400 Received: from mailout10.t-online.de ([194.25.134.21]:49866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGRQf-0002H3-Po for emacs-orgmode@gnu.org; Fri, 15 Mar 2013 06:00:01 -0400 In-Reply-To: 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 Am Donnerstag, 14. M=E4rz 2013, 15:33:50 schrieb Rob Stewart: > 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: >=20 > #+CAPTION: My caption > #+LABEL: fig:my-api > #+ATTR_LaTeX: width=3D130mm,height=3D30mm > #+BEGIN_SRC haskell > foo :: Int -> String > bar :: String -> Int > #+END_SRC >=20 > How would I achieve this? >=20 > -- > Rob There are some things I don't quite understand: Would you like to expor= t to=20 LaTeX, or would you simply like to have a <> to refer to in an = orgmode=20 file? And why have a figure, instead of -- in LaTeX terminology -- a listing?=