[%# vars: notepos, note, sect %] [% UNLESS all_notepos; note_index = 0; all_notepos = []; END; next_note_index = note_index + 1; prev_note_index = note_index - 1 %] [% UNLESS notepos && ! notepos.is_visible %]
[% END %] [% note_index = note_index + 1 %]