this is an example of what i mean:
#+begin_src org
#+name: fig-switching-circuit-kmap-1
#+caption: karnaugh table of \(p\)
\begin{tikzpicture}
\karnaughmap[function=, defaultmap=8, omitzeros=false, omitidx, variables=xyz]{01101001}
\end{tikzpicture}
#+end_src
i vaguely recall org mode automatically turning captioned tikzpicture's into figures by wrapping them in a figure environment. currently, this is what i get when i export to latex:
#+begin_src latex
\begin{tikzpicture}
\karnaughmap[function=, defaultmap=8, omitzeros=false, omitidx, variables=xyz]{01101001}
\caption{\label{fig-switching-circuit-kmap-1}karnaugh table of \(p\)}
\end{tikzpicture}
a tikzpicture environment doesnt expect a \caption and therefore this gives an error. to avoid this the environment has to be wrapped manually by the user by a \begin{figure} environment, but i think this may be redundant because anything that takes a #+caption is expected to be a figure.
also, ox-html doesnt handle those anymore, it used to handle #+caption: and insert it into the generated html output, it simply ignores that now. example:
#+begin_src org
#+name: fig-switching-circuit-1
#+caption: implementation of \(p\)
[[attachment:circuit.svg]]
#+end_src
ox-html generates the following html:
#+begin_src html
<img src="" /><br />
#+end_src
its not a different problem, its basically that after the new overhaul figures are being handled differently than i recall, but i cant say for sure. although the report above about the exported circuit.svg img does make sense even if it wasnt handled the way i'd expect before the overhaul.
thanks