Re: [O] LaTeX export with listings: multicolumn support broken?
Hello, James Harkins jamshar...@gmail.com writes: On Wed, Dec 11, 2013 at 11:22 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Your first attr_latex line applies to the figure special block, not to the source block. I did eventually figure that out. As far as I can see, this is the only reference to figure* environments in the manual: ~~ multicolumn: if you wish to include an image which spans multiple columns in a page. This will export the image wrapped in a figure* environment. ~~ It's a reasonable (though wrong) conclusion from this that multicolumn is /the/ way to get figure*. It is /the/ way for images. I think it would be worth noting in the Special blocks in LaTeX export section that * is valid as a character in special block identifiers. That, or provide an example that uses such a special block. Do you want to provide a patch? Regards, -- Nicolas Goaziou
[O] LaTeX export with listings: multicolumn support broken?
A few months ago, I wrote an academic paper with code examples, using the listings environment like so: #+ATTR_LaTeX: :starred t :options [htb] #+BEGIN_figure #+CAPTION: Simple sequencer, implementing the musical flow from Figure [[basicseq_graph]]. #+NAME: basicseq #+BEGIN_SRC {} -i TLSequenceIterator([ bpCmd: (name: \rumble, dur: 40), 15, bpCmd: (name: \whine, dur: 20) ]); #+END_SRC #+END_figure Now I need to submit revisions for the same paper, and :starred t is ignored. I get \begin{figure}, not \begin{figure*} as before. I have also tried #+ATTR_LaTeX: :float multicolumn :options [htb] per documentation at [1]. I still get \begin{figure}, not \begin{figure*}. What happened? My paper is due on Sunday (Dec. 15). Need a fix fairly soon. If nothing else, I will downgrade via git. hjh
Re: [O] LaTeX export with listings: multicolumn support broken?
Hello, James Harkins jamshar...@gmail.com writes: A few months ago, I wrote an academic paper with code examples, using the listings environment like so: #+ATTR_LaTeX: :starred t :options [htb] #+BEGIN_figure #+CAPTION: Simple sequencer, implementing the musical flow from Figure [[basicseq_graph]]. #+NAME: basicseq #+BEGIN_SRC {} -i TLSequenceIterator([ bpCmd: (name: \rumble, dur: 40), 15, bpCmd: (name: \whine, dur: 20) ]); #+END_SRC #+END_figure Now I need to submit revisions for the same paper, and :starred t is ignored. I get \begin{figure}, not \begin{figure*} as before. I have also tried #+ATTR_LaTeX: :float multicolumn :options [htb] per documentation at [1]. I still get \begin{figure}, not \begin{figure*}. What happened? I could be a suggested feature that didn't make it into code base. Anyway, you can use: #+begin_figure* ... #+end_figure* instead. Regards, -- Nicolas Goaziou
Re: [O] LaTeX export with listings: multicolumn support broken?
On Wednesday, December 11, 2013 10:54:37 PM HKT, James Harkins wrote: I have also tried #+ATTR_LaTeX: :float multicolumn :options [htb] per documentation at [1]. I still get \begin{figure}, not \begin{figure*}. Forgot the footnote: it's http://orgmode.org/manual/LaTeX-specific-attributes.html#LaTeX-specific-attributes Anyway, I've tested 8.2, 8.1.2, 8.1.0 and a previous sandbox branch I used at some point in the past. None of them give me multicolumn figures for code blocks. Well, certainly it worked back in August... hjh
Re: [O] LaTeX export with listings: multicolumn support broken?
Nicolas Goaziou n.goaziou at gmail.com writes: I could be a suggested feature that didn't make it into code base. Anyway, you can use: #+begin_figure* ... #+end_figure* instead. OK, relief. That did it. Should #+begin_something* be documented under special blocks here? http://orgmode.org/manual/LaTeX-specific-attributes.html#LaTeX-specific-attributes hjh
Re: [O] LaTeX export with listings: multicolumn support broken?
James Harkins jamshar...@gmail.com writes: On Wednesday, December 11, 2013 10:54:37 PM HKT, James Harkins wrote: I have also tried #+ATTR_LaTeX: :float multicolumn :options [htb] per documentation at [1]. I still get \begin{figure}, not \begin{figure*}. Forgot the footnote: it's http://orgmode.org/manual/LaTeX-specific-attributes.html#LaTeX-specific-attributes Anyway, I've tested 8.2, 8.1.2, 8.1.0 and a previous sandbox branch I used at some point in the past. None of them give me multicolumn figures for code blocks. Well, certainly it worked back in August... Your first attr_latex line applies to the figure special block, not to the source block. Regards, -- Nicolas Goaziou
Re: [O] LaTeX export with listings: multicolumn support broken?
On Wed, Dec 11, 2013 at 11:22 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Your first attr_latex line applies to the figure special block, not to the source block. I did eventually figure that out. As far as I can see, this is the only reference to figure* environments in the manual: ~~ multicolumn: if you wish to include an image which spans multiple columns in a page. This will export the image wrapped in a figure* environment. ~~ It's a reasonable (though wrong) conclusion from this that multicolumn is /the/ way to get figure*. I think it would be worth noting in the Special blocks in LaTeX export section that * is valid as a character in special block identifiers. hjh