[texhax] Enumerate lists inside "tables"?

Uwe Lueck uwe.lueck at web.de
Thu Jun 16 17:12:29 CEST 2011

"Hubert Lam" <hubert at hubertlam.info> wrote 16.06.2011 04:27:25:
> I’m pretty sure it’s been asked to death – are there any packages
> that assist with enumerated lists inside tables?

Essentially, I think you best typeset the list inside a minipage environment
or a \parbox. If you want to use a tabular-like environment
(in order to get the rules), you can use the p column type
that forms cells that are very much like \parbox'es.

An alternative heading to find ready-made macros for such a purpose
may be "constructing forms with LaTeX". I cannot afford performing
a search for this right now, it just comes to my mind that Peter Wilson
once demonstrated a complex form in his TUGboat column.

For the present task, it need not be that complex.

> I want to typeset some syllabus/program documents,
> and at the same time, from that source, modify the document
> to have tickboxes for each dot point/enumerated item for other teachers to tick off.
> [... screenshot, cf. http://tug.org/pipermail/texhax/2011-June/017704.html]

Many list readers are no readers of HTML postings, they may be
unable to see your example, and therefore able answerers may not answer.

> Can anyone suggest where to start? I’m completely stumped at
> how LaTeX is far more difficult than Word in this regard –
> and I would consider myself an “experienced” user of 8 years.
> (I post this to the PSTricks forum so that someone might be able to help
> with drawing a quasi table using psline or something like that)

The TeX program has primitive commands \hrule and \vrule for
drawing straight horizontal/vertical lines between or around text blocks.
Using PostScript for this purpose therefore seems to me like
[... please someone help me finding an impressing continuation]

It may be true that with LaTeX you need tabular-like environments to get
the surrounding rules, but if you are smart, you may get them with
\framebox commands (and proper choices of dimension parameters).

So you may try indeed a tabular-like environment with 4 columns,
some of them of type p to specify the widths, and for the actual content
you use \multicolumn{1}{|p|}{CONTENT}, such as:

\\ \hline
\item oh
\item no
\\ \hline

-- tested!

I have another idea ...


More information about the texhax mailing list