> Am 24.08.2021 um 21:34 schrieb Wolfgang Schuster via ntg-context > <ntg-context@ntg.nl>: > > 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 >>> <ntg-context@ntg.nl>: >>> >>> 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
Thank you, I didn’t even try, since the wiki looked like it wasn’t possible. Sorry! I’ll wikify that. Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________