5

Is it possible to have an enumerate- or description-like environment, with \item redefined in such a way so that each \item puts its content inside a minipage? Ideally, including the item number/title within the minipage?

Failing this, is the same possible with \parbox{} instead of minipage?

For background, I'd use this in conjunction with this answer, so that I could have paragraph-like items that are stuffed into boxes that are say for example, (1/3-epsilon)\textwidth wide, and could then progress the items horizontally, 3 to a row. And then the next row would begin low enough to clear the tallest of the previous row's items.

alex.jordan
  • 2,179
  • 1
    You don't need minipages for that. You can use either the shortlst package or the tasks package. See myanswer to a similar question. Note shorlst, albeit on CTAN, is not part of TeX Live nor MiKTeX, for licensing reasons. – Bernard Jul 21 '15 at 23:55
  • @Bernard Without getting into detail, I can't use something that's not part of the standard distributions. Also I'm looking for the functionality of your \paritem, but I need it to be used as \item is used, without requirement of braces. – alex.jordan Jul 22 '15 at 00:01
  • 1
    tasks is in standard distributions, though. – cfr Jul 22 '15 at 00:03
  • I need its usage to be \item This is my item, not \item{This is my item}. It looks like \paritem has to work in the latter way, to pass its argument to the \parbox. – alex.jordan Jul 22 '15 at 00:15
  • 1
    @alex.jordan: tasks has the same functionalities with the \task* and \task! commands. See §3.2 of the documentation. – Bernard Jul 22 '15 at 00:20
  • @Bernard Thanks, the tasks package is great. Is it there an easy option to get runin style tasks? I don't see it in the documentation. But perhaps if exsheets is loaded too? – alex.jordan Jul 22 '15 at 04:16
  • @alex.jordan: What do you call a runin style? Something like a runin list, i. e. not arranged in fixed width columns, but rather with items separated by a fixed horizontal length? – Bernard Jul 22 '15 at 07:37
  • @Bernard I mean so that when an item moves on to a second line, the second line starts left flush with the item label. – alex.jordan Jul 22 '15 at 16:25
  • @alex.jordan: Isn't that already the case without doing anything? – Bernard Jul 22 '15 at 17:08
  • @Bernard No, unless I'm not explaining myself well. If you load enumitem and make an enumerate list with an item that extends to a second line, the option itemindent=1.2em simulates what I mean (but only for single digit enumerated items). – alex.jordan Jul 22 '15 at 18:00
  • @alex.jordan: I've got it! I'll see if this is possible with tasks. – Bernard Jul 22 '15 at 18:34
  • @cgnieder, how a question from 2015 can be duplicate to question from 2019? – Zarko Jan 15 '21 at 05:47
  • @Zarko It's the same question and the other one has answers. The time of writing is not relevant for that. Only the question itself – cgnieder Jan 15 '21 at 05:50

0 Answers0