6

The ConTeXt wiki article on enumerations shows many solutions for creating an enumerated list, however, I see no examples for creating an in-paragraph enumeration, e.g.:

Five animals lived in the forest: (1) bears, (2) snakes, (3) fish, (4) birds, and (5) wolves.

How can I create in-paragraph enumerations in ConTeXt?

1 Answer 1

8

Use the text key:

\setupitemize [stopper=]
\starttext

Five animals lived in the forest:
\startitemize [n,text]
  \startitem
    bears,
  \stopitem
  \startitem
    snakes,
  \stopitem
  \startitem
    fish,
  \stopitem
  \startitem
    birds, and
  \stopitem
  \startitem
    wolves.
  \stopitem
\stopitemize

\stoptext

Result:

result

The stopper key is necessary to remove the trailing dot. You can adjust the distance with textdistance key.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .