Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 21:26:
Am 24.08.2021 um 21:17 schrieb Wolfgang Schuster via ntg-context
: Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31:
Hi, I’m typesetting a textbook that contains numbered and indented exercises. They must not float.
Which structure should I use for them? There must be an easy answer, but I draw a blank.
Use an enumeration.
Thank you, but how can I define a title/caption for the enumeration and its reference?
\defineenumeration [Exercise] [text=Exercise, title=yes, titleleft=, titleright=, way=bytext, margin=1em] \starttext \samplefile{lorem} \startExercise [title={Something to do},reference=ex:something] \samplefile{lorem} \stopExercise \stoptext Wolfgang