2016-04-12 20:27:42 +02:00
|
|
|
Execute (Assert b:vimtex.tex = latexmain.tex):
|
2016-09-01 22:29:23 +02:00
|
|
|
call writefile(['\include{test.tex}'], 'latexmain.tex')
|
2016-04-10 23:13:20 +02:00
|
|
|
call system('touch latexmain.tex.latexmain')
|
2016-04-10 22:03:14 +02:00
|
|
|
new test.tex
|
2016-04-10 23:13:20 +02:00
|
|
|
AssertEqual 'latexmain.tex', fnamemodify(b:vimtex.tex, ':t')
|
|
|
|
bdelete!
|
|
|
|
call system('rm latexmain.tex*')
|
2016-04-10 22:03:14 +02:00
|
|
|
|
2016-06-20 22:36:57 +02:00
|
|
|
Execute (Assert b:vimtex.tex = main_texroot.tex):
|
|
|
|
call system('touch main_texroot.tex')
|
|
|
|
call writefile(['%! TeX Root = main_texroot.tex'], 'test.tex')
|
2016-09-01 22:29:23 +02:00
|
|
|
new test.tex
|
2016-06-20 22:36:57 +02:00
|
|
|
AssertEqual 'main_texroot.tex', fnamemodify(b:vimtex.tex, ':t')
|
|
|
|
bdelete!
|
|
|
|
call system('rm main_texroot.tex')
|
|
|
|
|
2016-09-17 20:11:25 +02:00
|
|
|
Execute (Clean up):
|
|
|
|
call system('rm -f test.tex')
|
|
|
|
|