[NTG-context] \beginBLOCKS and \endBLOCKS do not work in \dorecurse
Hi, I cannot make \beginBLOCKS and \endBLOCKS work in a \dorecurse loop. Is it possible? Here is a minimum non working exemple (from https://wiki.contextgarden.net/Command/defineblock): %% \startdocument \defineblock[question] \hideblocks[question] % We don't want to print blocks where we define them \dorecurse{2}{ \beginquestion[first] To be, or not to be? \endquestion \section{Let's see what blocks we've got.} \useblocks[question] \section{We've seen what blocks we've got. Let's take another look at that first question.} \useblocks[question][first] \beginquestion[last] Mais o\`u sont les neiges d'antan? \endquestion } \stopdocument %% Thank you in advance. Best. -- Romain Diss ___ 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 ___
[NTG-context] Formatting in toc
This morning, I realised what I needed to do, and it works. Before \starttext put: \define[2]\hymn{\bf Hymn #1 \hspace[big] \it #2}\par} After \starttext put stuff like \hymn{34}{We three kings} or \hymn{10}{In the bleak midwinter} etc. This does near enough what I am after: creates a template style command, and replicates formatting in toc. No doubt, there might be tweaks or even cleverer ways to improve on my efforts. Thanks to all who took the trouble to read, and consider; and especially Hraban, who took the trouble to offer a suggestion, which inspired me to think more clearly. Thanks, Calum ___ 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 ___