Hi,

the command “\strc_constructions_initialize\currentnote” is here necessary to 
ensure \currentconstructionhandler etc. are set when 
\strc_constructions_stored_start is called.

\def\handlenoteitself#1#2% tg, id
  {\edef\currentnote{#1}%
   \edef\currentnotenumber{#2}%
   
\edef\currentconstructionlistentry{\ctxlua{tex.write(structures.notes.listindex("#1",#2))}}%
 index in list cache
   % as we can have collected notes (e.g. in tables) we need to recover
   % \currentdescriptionattribute and \currentdescriptionsynchronize
   %
  %\reinstateconstructionnumberentry\currentconstructionlistentry % we could 
store the number in the entry
   %
   \dontcomplain
%  \begingroup
   \strc_notes_interaction_check_display
   \strc_notes_set_reference_attribute_text
+  \strc_constructions_initialize\currentnote
   \strc_constructions_stored_start
   \begstrut
   \strc_notes_set_destination_attribute_text
   \strc_notes_inject_text
   \endstrut
   \strc_constructions_stored_stop
%  \endgroup
   }

Wolfgang
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to