Skip to content

Instantly share code, notes, and snippets.

@jnwhiteh
Created March 13, 2012 10:13
Show Gist options
  • Save jnwhiteh/2027977 to your computer and use it in GitHub Desktop.
Save jnwhiteh/2027977 to your computer and use it in GitHub Desktop.
Add support for %! TEX root = foo.tex to LatexBox
" 2a. scan current file for %! TEX root = foo.tex
let texfile = matchlist(getline(1), '%!TEX root = \(.*\)')[1]
if texfile != ""
return texfile
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment