I am writing a paper divided into several sections. I would like to have one master file and then several file which I will only include. I would like to do it properly, since I am sending it to my professor and he has to work with on it too.
Let me show, what I mean.
The folder structure is:
Project/
|-master.tex
|-subFolder/
|-section_one.tex
|-anotherFolder/
|-section_two.tex
The master.tex
file:
\documentclass[a4paper]{article}
% preamble
\begin{document}
\include{subFolder/section_one}
\include{anotherFolder/section_two}
\end{document}
And for example section_one.tex
:
\section{Section 1}
Lorem ipsum
Questions
I am working in Sublime Text 2 with Latexing. I would like to
- create the project in recommended intelligent way (if such exists)
- while working on lets say
section_one.tex
be able to press Ctrl + b (standard for shortcut for building the project) and build themaster.tex
file notsection_one.tex
since it does not contain preamble and throws bunch of errors. Also I don't want to have to switch to themaster.text
file in ST2 every time I want to build.
Best Answer
From the LaTeXing documentation:
Now, if you have specified a
root
file, you'll be able to edit the current.tex
file and LaTeXing will build the main file upon compilation.