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

Reply via email to