Re: [O] src-blocks with captions do not respect attr_latex :placement options

2018-02-26 Thread Nicolas Goaziou
Hello, John Kitchin writes: > org-latex-default-figure-position is defined as "htbp" > > where as :placement is usually defined as "[H]". One has brackets, and > one doesn't. This is reflected in ox-latex too. > > For example in this code (line 3219. ox-latex.el) > >

Re: [O] src-blocks with captions do not respect attr_latex :placement options

2018-02-25 Thread John Kitchin
Nicolas Goaziou writes: > Hello, > > John Kitchin writes: > >> A block like this: >> >> #+attr_latex: :placement [H] >> >> #+caption: A test block >> #+BEGIN_SRC ipython >> >> 'hello' >> #+END_SRC >> >> exports to latex as: >> >> \begin{listing}[htbp] >>

Re: [O] src-blocks with captions do not respect attr_latex :placement options

2018-02-19 Thread Nicolas Goaziou
Hello, John Kitchin writes: > A block like this: > > #+attr_latex: :placement [H] > > #+caption: A test block > #+BEGIN_SRC ipython > > 'hello' > #+END_SRC > > exports to latex as: > > \begin{listing}[htbp] >

[O] src-blocks with captions do not respect attr_latex :placement options

2018-02-14 Thread John Kitchin
A block like this: #+attr_latex: :placement [H] #+caption: A test block #+BEGIN_SRC ipython 'hello' #+END_SRC exports to latex as: \begin{listing}[htbp] \begin{minted}[frame=lines,fontsize=\scriptsize,linenos]{ipython} 'hello' \end{minted} \caption{A test block} \end{listing} The root of this