Below image shows part of a document prepared with a word processor. Gray lines mark table borders and are only visible in edit mode (they will not be visible when document is printed but have been preserved as a hint at text layout). My question is how I can prepare a similar layout–text in two columns–with TeX (preferrably plain TeX).
[Tex/LaTex] Table-like layout in plain TeX
plain-textables
Best Answer
If you want it centered,
Just to see what happens without the
$$
for the centering:If you want the columns to occupy half of the line width, here's how to do it:
If you omit the
$$
, add\noindent
in front of\vbox
; but this will not leave space above and below the table.If you want line breaking, change
\hbox to .5\hsize{#\hfil}
intofor bottom alignment or
\vtop
for to alignment. Of course this won't leave space between the two boxes. This can be obtained by reducing the\hsize
inside the two boxes and adding some\tabskip
glue between them.For more information about tables in Plain TeX, see TeX by Topic (
texdoc texbytopic
on TeX Live) or this link