[O] Latex Listings Floats
Folks, I've had to fight in the past to set placement on every graphic I include in a Latex document to insert *RIGHT HERE* instead of floating to the end of the section. I just encountered this issue on source listings (listing / lstlisting), and can't seem to get the placement to stick. Does anyone know how to force a global default to force all placements to *RIGHT HERE*? I am including the float package, because it adds the H option versus h. Now I just need a way to set a global default. Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] Latex Listings Floats
Russell Adams rlad...@adamsinfoserv.com wrote: Folks, I've had to fight in the past to set placement on every graphic I include in a Latex document to insert *RIGHT HERE* instead of floating to the end of the section. I just encountered this issue on source listings (listing / lstlisting), and can't seem to get the placement to stick. I don't understand: from the docs, it seems you *can* make listings float by adding a [float,caption=foo] option to the lstlisting environment, but they do not float by default. So why do yours float? A small org example (plus the tex file) might help. Does anyone know how to force a global default to force all placements to *RIGHT HERE*? I am including the float package, because it adds the H option versus h. Now I just need a way to set a global default. From a cursory read of the float doc, I don't think you can. Nick
Re: [O] Latex Listings Floats
Hi Russell, Russell Adams wrote: I've had to fight in the past to set placement on every graphic I include in a Latex document to insert *RIGHT HERE* instead of floating to the end of the section. I just encountered this issue on source listings (listing / lstlisting), and can't seem to get the placement to stick. I never experienced it -- while I don't have (let's say, I don't find) any particular custom which I'd have done!? Would you have an ECM? Does anyone know how to force a global default to force all placements to *RIGHT HERE*? If really, really, really right here: same as the one you propose -- there is no other better. I am including the float package, because it adds the H option versus h. Now I just need a way to set a global default. #+BIND: org-latex-default-figure-position H for a value local to a file. setq for a global value for all files... Best regards, Seb -- Sebastien Vauban