2 ms·
No. Tex is procedural. It's an execute-only language, not a declarative one. It would result in documents as rigid as PDF documents. The other direction, const
by Animats 5y ago
No. Tex is procedural. It's an execute-only language, not a declarative one. It would result in documents as rigid as PDF documents.
The other direction, constraint-based layout, is more useful. A is above B, C is to the right of D. Put all those into a constraint analyzer and come up with a layout. This is a 2D geometry problem and should be solved graphically, not procedurally. Nobody knew how to write constraint solvers thirty years ago, and they can be compute-intensive, but those are solved problems now.
A good example of a system which does this is the 2D sketch system in Autodesk Inventor and Fusion 360. Those are true parametric constraint solving systems. Plus, unlike web systems, they can do curves.