emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] latex export of org-mode: verbatim block in a figure


From: AW
Subject: Re: [O] latex export of org-mode: verbatim block in a figure
Date: Fri, 15 Mar 2013 11:03:38 +0100
User-agent: KMail/4.10 (Linux/3.7.10-1.1-desktop; KDE/4.10.0; x86_64; ; )

Am Donnerstag, 14. März 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:
> 
> #+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

There are some things I don't quite understand: Would you like to export to 
LaTeX, or would you simply like to have a <<target>> to refer to in an orgmode 
file?

And why have a figure, instead of -- in LaTeX terminology -- a listing?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]