Re: [O] src blocks, listings package and captions

2011-08-31 Thread Giles Chamberlin
t...@tsdye.com (Thomas S. Dye) writes: > A caption-aware LaTeX environment is provided by the minted package. Thanks to Eric, Bastien and Thomas for their help. I've switched from listings to minted as I wasn't particularly wed to either and have successfully implemented Thomas' suggestions.

Re: [O] src blocks, listings package and captions

2011-08-25 Thread Thomas S. Dye
Bastien writes: > Hi Giles, > > Giles Chamberlin writes: > >> 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 >> #+be

Re: [O] src blocks, listings package and captions

2011-08-25 Thread Eric Schulte
Giles Chamberlin writes: > 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 >

Re: [O] src blocks, listings package and captions

2011-08-25 Thread Bastien
Hi Giles, Giles Chamberlin writes: > 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 >

[O] src blocks, listings package and captions

2011-08-24 Thread Giles Chamberlin
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}\