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