Re: [O] Exporting source code blocks as LaTeX figures

2013-05-20 Thread Thomas S. Dye
Aloha James, James Harkins jamshar...@gmail.com writes: On Sat, May 18, 2013 at 3:39 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: instead? I.e., why don't you apply caption to src block? You can tweak the position of the caption with captionpos option in listings environment. Wow, I

Re: [O] Exporting source code blocks as LaTeX figures

2013-05-20 Thread James Harkins
On Mon, May 20, 2013 at 2:30 PM, Thomas S. Dye t...@tsdye.com wrote: Then the next problem... I'm going to have some figures that need to span two columns. According to [1], I should use \begin{figure*} ... \end{figure*}. Is there a way to do that using a special block? (First guess,

Re: [O] Exporting source code blocks as LaTeX figures

2013-05-20 Thread Nicolas Goaziou
Hello, James Harkins jamshar...@gmail.com writes: The other reference to multicolumn is for table export, and this isn't a table either. So I think, as currently designed, :multicolumn simply doesn't apply. Correct. The first attached patch implements :float multicolumn and :float figure

Re: [O] Exporting source code blocks as LaTeX figures

2013-05-20 Thread James Harkins
On May 20, 2013 4:54 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, James Harkins jamshar...@gmail.com writes: The other reference to multicolumn is for table export, and this isn't a table either. So I think, as currently designed, :multicolumn simply doesn't apply. Correct.

Re: [O] Exporting source code blocks as LaTeX figures

2013-05-19 Thread James Harkins
On Sat, May 18, 2013 at 3:39 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: instead? I.e., why don't you apply caption to src block? You can tweak the position of the caption with captionpos option in listings environment. Wow, I hadn't thought of that. Actually that works better in a lot of

Re: [O] Exporting source code blocks as LaTeX figures

2013-05-18 Thread Nicolas Goaziou
Hello, James Harkins jamshar...@gmail.com writes: Couple of questions about exporting LaTeX figures that are neither tables nor images -- specifically, source code blocks using the listings package. 1. Is there any way to use #+CAPTION with a #+BEGIN_figure block, so that the caption will

[O] Exporting source code blocks as LaTeX figures

2013-05-17 Thread James Harkins
Couple of questions about exporting LaTeX figures that are neither tables nor images -- specifically, source code blocks using the listings package. 1. Is there any way to use #+CAPTION with a #+BEGIN_figure block, so that the caption will be rendered underneath the text in the figure? It seems