Certain macros or whole environments which are themselves not equations, like whole tikz diagrams can be placed in the equation environment and compile. For example Diagram displayed as an equation
Some other objects, like text generated by macros, apparently General way to split a line by a rule of thumb and displaying results, cause the equation environment to not compile. There are quite a few of them.
1) Is there some particular kind of macro (due to its structure or use of particular symbols...) that cannot be compiled inside an equation environment?
2) If a given macro does cause (1)-type problems, are there one or more environments (call them E*) which
a) each by itself can be (placed inside and) compiled inside the equation environment,
b) E* does not much change the output of what is placed inside of E*, and
c) E* can have a macro using symbols or structure (1) that crash the equation environment but not E* placed inside of it and then have E* placed inside the equation environment and compile?
[I observe generally that, for example, tikzpicture does compile always inside the equation environment for every (1)-type macro placed inside it but tikpicture is not a (2)-type environment, because the only thing printed in such cases inside the equation environment with the tikzpicture in it with the macro in it is an empty line that is numbered, so tikzpicture for example is a) and c) but not b) for obvious reasons. Does a (2)-type environment exist? I would imagine it would have to output an image which is treated as such and then loaded as a picture if the macros used otherwise do not compile inside the equation environment. Oh, yes, custom counters that replicate the equation functionality and center whatever is displayed are easy to make, and can replace equation mode, but journals typically dislike that sort of adhoc solution.]