Hi Karl, > Is it cur_file or what? How was this supposed to work? This works like a charm: https://raw.githubusercontent.com/igor-liferenko/tex/master/editor.ch Regards, Igor