ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alex Leray <alexandre@stdin.fr>
To: Alan Braslau via ntg-context <ntg-context@ntg.nl>
Subject: [NTG-context] Using
Date: Fri, 4 Aug 2023 19:42:27 +0200	[thread overview]
Message-ID: <52ddb9e4-af1d-fb6c-91ce-822147bc3df9@stdin.fr> (raw)

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
 
{\headparameter \c!incrementnumber }\ifcsname \??headincrement 
\currentheadincrement \endcsname \lastnamedcs \else \settrue 
\c_strc_sectioning_increment \settrue \c_strc_sectionin...
\strc_sectioning_handle ... \currentheadsection 
}\strc_sectioning_initialize_autolevel 
\strc_sectioning_initialize_increment
 
 
\strc_sectioning_initialize_placement \strc_sectioning_initialize_number 
\the \everybeforesectionheadhandle \let \getheadn...
\strc_sectioning_start_named_section ...parameter \c!beforesection \the 
\everybeforehead \strc_sectioning_handle {#1}{#2}{#3}
 
                                                      \headparameter 
\c!insidesection
l.6 \startpoem[title={Glijden}][]


  1     \definehead[poem][section]
  2     \setuphead[poem][beforesection={\starttyping}, 
aftersection={\stoptyping}]
  3
  4     \starttext
  5
  6 >>  \startpoem[title={Glijden}][]
  7     Lorem ipsum dolor sit amet consectetur.
  8     \stoppoem
  9
10     \stoptext
11

mtx-context     | fatal error: return code: 256
```

Any idea?

thanks a lot!

Alex
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2023-08-04 18:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-04 17:42 Alex Leray [this message]
2023-08-04 21:21 ` [NTG-context] Using Hans Hagen
2023-08-05 15:30   ` Alex Leray

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=52ddb9e4-af1d-fb6c-91ce-822147bc3df9@stdin.fr \
    --to=alexandre@stdin.fr \
    --cc=ntg-context@ntg.nl \
    /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).