Juan Manuel Macías <maciasch...@posteo.net> writes: > Ihor Radchenko writes: > >>> In tables there is more consistency because :float is a float >>> environment (table or any arbitrary value) and :environment is a table >>> environment (tabular or any arbitrary value). Here :placement :options >>> and :align act as what is expected of them: >>> >>> #+ATTR_LaTeX: :environment foo :float var :placement [!h] :options [blah] >>> :align cccc >>> |a|a|a|a| >> ... >> This is not documented and is possibly a bug. > > I would say that it is the expected behavior: :float is for a float > environment and :environment is for the environment that builds the > table (by default tabular). According to the manual:
Oops. You are indeed right. I missed that both :float and :environment are documented for tables. > The difference is that with images, except in cases of somewhat more > complex constructions where there are subfigures, there is only one > environment, "figure" by default or any other arbitrary one. There was a > commit a while ago, I don't remember when, that allowed :float to > support any arbitrary string as the float environment name, in images > and tables. In images ':float t' is figure (by default) and in tables it > is table (also by default). So, the difference between :environment and :float is that :float also encapsulates \caption in addition to the actual environment (like tabularx or includegraphics) used for transcoded exported element. I can see how :float+:placement can be imprecise and that the existing :environment indeed serves a different purpose. (It might be worth clarifying this distinction in the manual - it seems arbitrary from the first glance). But what would be the better name then? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>