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

2013-05-20 Thread James Harkins
On May 20, 2013 4:54 PM, "Nicolas Goaziou" wrote: > > Hello, > > James Harkins 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 i

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

2013-05-20 Thread Nicolas Goaziou
Hello, James Harkins 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 handling for source b

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 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, "#+BEGIN_figure*

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

2013-05-19 Thread Thomas S. Dye
Aloha James, James Harkins writes: > On Sat, May 18, 2013 at 3:39 PM, Nicolas Goaziou 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

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 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 ways. Then the

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

2013-05-18 Thread Nicolas Goaziou
Hello, James Harkins 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 be rendered und

[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 (