Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:

>> Figures inside tables will be inlined. They are not floats and cannot
>> have caption, name, be referenced.
> Isn’t that a bit too … restrictive?

That's mostly a limitation of Org syntax (current Org syntax; I hope
that will change in future).

We currently work around this fact by re-using affiliated keywords from
the parent element as attributes for image (see how ATTR is computed in
`org-latex--inline-image'). But there is no way we can have, for
example, a reference to such image or put a caption - we risk ambiguity
about caption/reference being assigned to the containing
paragraph/table/etc or even other inline images inside.

Maybe ox-latex can allow inlined floats. But I have a hard time
understanding how an image can be both float and also a part of the
containing paragraph/table/minipage/etc.

>>> What approach would fit best
>>> 
>>> 1. Keep tables and figures separate, which may imply a good amount of Lisp, 
>>> still to be investigated.
>>> 2. Make everything with tables and have
>>>   a) headings starting with ’Table’ for figures
>>>   b) non consecutive figure numbering
>> 
>> Just \includegraphics will do.
>> Basically, leave things as they are now. The main problem is not
>> including image, but using \begin{center} ... where it cannot be used.
> Will see, but it sounds rather poor to me…

I actually do no oppose more sophisticated behavior.
But we at least need to fix the reproducer not compiling at all.
Anything else is a nice-to-have extra.

For your suggestion about separating tables and figures, I am not
sure. I see images inside tables as a legitimate use-case.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>

Reply via email to