Hmm... That’s really strange, What I did:

  1. I deleted the line with \writebetweenlist and compiled the file. It worked.
  2. I put back the line and triode to compile -> fatal error
  3. I commented out all the lines which had something to do with the table of contend -> fatal error
  4. I changed all back -> fatal error (as expected)
  5. I commented out all the lines in my project files (all the lines with \input and compiled and got an empty file witour errors.
  6. I deleted the comment signs one after the other and compiled every time -> no error
  7. All was how it was, so I entered the \writebetweenlist (absolutely the same: copy and paste) and ... Tatarata! It works...

An enigma. I effectively changed nothing, all is now as it was before. Very, very strange...

Anyway: It works. Thanks for the help!

WH

On 28 Aug 2014, at 16:46, Wolfgang Schuster wrote:

Am 28.08.2014 um 16:17 schrieb Werner Hintze w.hintze@posteo.eu:

Some old fashioned novels have a chapter précis in the table of contents. In Latex exists the command \chapterprecis to put the text at the beginning of the chapter and in the able of contents. I thought, I can realize this in ConTeXt with

\writebetweenlist[chapter]{XYZ}

or with

\weitetolist[chapter]{XYZ}

But both produce only a fatal error. What’s wrong here?

Hard to tell without a example which demonstrates the error because the following works for me.

\starttext

\completecontent

\chapter{This is a chapter}

\writetolist[chapter]{}{This is a summary of the chapter with \tex{writetolist}.}

\writebetweenlist[chapter][location=here]{This is a summary of the chapter with \tex{writebetweenlist}.}

\chapter{This is another chapter}

\stoptext

Wolfgang


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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net