ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* numbered exercises
@ 2021-08-24 18:31 Henning Hraban Ramm via ntg-context
  2021-08-24 19:17 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-08-24 18:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

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.

At the moment I’m using heads, derived from 'section', but the exercises should have independent numbers, and I’m unsure how I should setup the indentation. With 'narrower' the numbered titles would be difficult.


\setuplabeltext[en][Exercise=Exercise~]

\definehead[Exercise][section]
\setuphead[Exercise][
  bodypartlabel=Exercise,
  number=yes,
  ownnumber=yes, % ??
  way=bytext, % ??
]

\starttext

\startExercise[title={Something to do},reference=ex:something]

This can have several paragraphs and maybe images etc.

\stopExercise

\stoptext



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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-25  8:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 18:31 numbered exercises 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
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

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).