![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 8/4/2023 7:42 PM, Alex Leray wrote:
Hello,
I'm trying to figure out why this is not working (whereas \startlines\stoplines works):
``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}]
\starttext
\startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem
\stoptext ```
I get the following traceback:
``` tex error > tex error on line 6 in file /home/ali/work/being_human/test.tex: ! Undefined control sequence
\strc_sectioning_initialize_increment ->\edef \currentheadincrement verbatim is tricky because it changes the catcodes
here is a trick: \definehead [poem] [section] \setuphead [poem] [after=\startlines\tt, % after the head is placed aftersection=\stoplines] % when we end this section \startpoem[title={Glijden}] Lorem ipsum dolor sit amet consectetur. Lorem ipsum dolor sit amet consectetur. \stoppoem it is not pretty coding but it seems to work ok Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------