Open simoncozens opened 8 years ago
Won't this need to introduce some alignment parameters too? Sort of like display: inline-block
in CSS? Or `\begin{minipage]| in TeX. If I'm understanding this correctly the same layout logic would also be useful for image positioning.
Not really. The idea is that you put a vbox onto the horizontal list (which is supported but the output routine doesn't quite work).
Consider the following piece of plain TeX:
hello
\qquad \vbox to 20pt {\hbox to 40pt{Stuff in a}\hbox to 25pt{vbox}}
\qquad \vbox to 20pt {\hbox to 40pt{Stuff in a}\hbox to 25pt{vbox}}
\qquad world.
\end
(This is, essentially, how minipage is implemented under the hood.)
First \vbox should put a box into the typesetter's queue. Second, this should make two columns: