Am 27.06.23 um 21:01 schrieb Wolfgang Schuster via ntg-context:
Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55:
\defineregister[todos]

% add a "todos" index entry with the current section title
\define[1]\TODO{\todos{\structurevariable{title}}}

\chapter{Something}
\TODO{This is still empty!}

% at the end of the book
\chapter{work list}
\placetodos

\define[1]\TODO{\expanded{\todos{\structurevariable{title}}}}

Thank you, that works.
I thought I tried that, but probably forgot the braces.

What is the purpose of the argument for \TODO when you don't use it?

I simplified too much, the actual definition is (now):

\define[1]\TODO{\inouter{\tt\color[ColTodo]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[ColTodo]{\bf #1}\autoinsertnextspace}

Hraban
___________________________________________________________________________________
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 via email to