# vimtex and subfiles [closed]

I'm sure this is extremely simple but I just can't figure it out.

I have the following directory structure:

main.tex
sections
|
section1.tex


where main.tex contains

\documentclass{article}
\usepackage{subfiles}
\begin{document}
\section{Section 1}
\subfile{sections/section1}
\end{document}


and

section1.tex looks like

\documentclass[../main.tex]{subfiles}
\begin{document}
Hello World
\end{document}


My impression from the docs is that while editing section1.tex, by default \ll and then \lv should result in main.tex being compiled and opened by my pdf viewer. However, instead I just get that section1.tex is being compiled and opened. Any advice on how to obtain the first behaviour?

Edit: Thanks @DaiBowen for giving the always salient advice of 'is your up to date' - that's resolved it.

## closed as off-topic by ChrisS, egreg, Heiko Oberdiek, Zarko, user13907 Dec 14 '16 at 0:29

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• @DaiBowen I had seen that issue, and it seem to me like in the resolution lervag makes a commit which should make things work as expected in my situation with no additional work, though I may be misunderstanding – ira Dec 13 '16 at 21:25
• Do things work if you place section1.tex in the same directory as main.tex? Also you've tagged this question vim-latex which is a different vim plugin, unless you are actually using vim-latex you should retag the question. – Dai Bowen Dec 13 '16 at 21:40
• Doesn't seem to change anything, nope. My bad on the tags - unfortunately I don't have a high enough score to change tags. – ira Dec 13 '16 at 21:50
• I'm voting to close this question as off-topic because the problem solved by software updates. – ChrisS Dec 13 '16 at 23:54