On 3/27/07, Johannes Kuester
Dear all,
I'm trying to typeset a rather simple list or table where each line should keep the overall grid of my page design. For this I tried "tabulate", "table", and "TABLE", but all failed.
What I need is the following: 4 columns, each with a fixed width. One of the columns may contain a paragraph (i.e. more than one line), like:
Axxx yyyy first entry with zzz more text Bxxx yyyy next entry zzz
The line starting with "B" does not keep the grid -- at least in most cases; I couldn't trace down when and why this fails.
(The specific environment is not important (whether tabulate, table, TABLE, or some other solution), as all entries are supplied by a macro which I could adapt easily). If I understand well (but a your example should be better) you can try to put something like this %%%%%%%%%%%%%%%%% \CellWidth=0.2\textwidth %% or whatever is good \CellHeightOne=3em %% or whatever is good \CellHeightTwo=2\CellHeightOne \CellHeightThree=3\CellHeightOne \CellHeightFour=4\CellHeightOne %%%%%%%%%%%%%%% \setbox100=\vbox{\hsize=\CellWidth% %put your material here} Now \box100 has the natural height of you material \ifdim\ht100<\CellHeightOne \setbox100=\vbox to \CellHeightOne{\hsize=\CellWidth% %put your material here}\else \ifdim\ht100<\CellHeightTwo \setbox100=\vbox to \CellHeightTwo{\hsize=\CellWidth% %put your material here}\else \ifdim\ht100<\CellHeightThree \setbox100=\vbox to \CellHeightThree{\hsize=\CellWidth% %put your material here}\else \ifdim\ht100<\CellHeightFour \setbox100=\vbox to \CellHeightFour{\hsize=\CellWidth% %put your material here}\fi\fi\fi\fi %%% %%Now use your macro \SetCellContent to set cell content with \box100 as argument \setCellContent{\box100}
luigi