From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: numbered exercises
Date: Tue, 24 Aug 2021 21:46:48 +0200 [thread overview]
Message-ID: <190840A6-7D6F-45CD-8AE4-D6B94FE849A8@fiee.net> (raw)
In-Reply-To: <3c3f26bc-a3f7-6da3-985e-91f380a687e0@gmail.com>
> 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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-08-24 19:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 18:31 Henning Hraban Ramm via ntg-context
2021-08-24 19:17 ` Wolfgang Schuster via ntg-context
2021-08-24 19:26 ` Henning Hraban Ramm via ntg-context
2021-08-24 19:34 ` Wolfgang Schuster via ntg-context
2021-08-24 19:46 ` Henning Hraban Ramm via ntg-context [this message]
2021-08-24 20:07 ` Henning Hraban Ramm via ntg-context
2021-08-24 19:43 ` Gavin via ntg-context
2021-08-24 22:19 ` Aditya Mahajan via ntg-context
2021-08-25 8:03 ` Henning Hraban Ramm via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=190840A6-7D6F-45CD-8AE4-D6B94FE849A8@fiee.net \
--to=ntg-context@ntg.nl \
--cc=texml@fiee.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).