The example works for me too. But the command doesn’t work in my file. I can’t find out why.

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